Find the word definition

Wiktionary
take leave of one's senses

vb. (context idiomatic English) To go crazy; to stop behaving rationally.