mit seinem Latein am Ende sein

Etymology
lit. 'to be with one's Latin at the end'. Cp. 🇨🇬.

Verb

 * 1)  to be at one's wits' end