beat one's brains out

Verb

 * 1)  to think very hard about.