Completely distorted audio when recording via mic

Can anyone check if they are getting completely distorted recordings when recording anything needing the AGC (automatic gain control)?

I have an iPad Pro and the recordings are distorted as if AGC doesn't work anymore. It's pure distortion over a certain level.

I have confirmed this with code and with Garage Band.

My iPhone 6S Plus doesn't seem to have this problem.