It's not quite "ass", but "petard" does also suggest "fart". The French still use "pet" to mean "fart". Including an amusingly named pastry: Pete De Soeur, "nun's fart".
Shakespeare definitely loved his fart jokes. And if I ever get around to directing Hamlet, I'm gonna see if a fart joke works at that line. It would be hilarious to break the tension.