If the primary catalytic converter, the 1st one off the manifold is gone, that will give a code. The MAF code could be a loose wire to the connector or a bad pin.
@Enki @Easter Bunny ,thoughts?
I am guessing you read the posts here (several) about them. https://www.mazdaspeeds.org/threads/help-diagnosing-negative-fuel-trims-p2178-p2188-rich-off-at-idle-codes.11429/