have one's ass handed to one

From Wiktionary, the free dictionary