Green’s Dictionary of Slang

a.h. n.

also A.H.

[1910s–60s] (US) a euph. abbr. of asshole n.; thus in the pig’s a.h., in very great trouble.