brains out, knock (one's)
(colloquial) labor strenuously with the mind, often with a sense of having failed.