From 媽的/妈的 (māde, “your mother”), using the vulgar word 蛋 (dàn, “egg; balls”).
Alternatively, from English madman.
媽蛋