It essentially means you have you lost your mind? or it can be used to express your hatred or dislike for a particular activity or person, similar to kms.
"Moe's is better than Chipotle."
"Have you bumped your head?!?"
or
Boys who enjoy yaoi (a genre in Japan that contains sexual and/or romantic relations between two men); literally translates to "rotten boy"; corresponding female : fujoshi