//
// cocos2d::CCMenu::removeChild from 0x100793140 to 0x1007931aa (106 bytes)
//
// 2 xrefs:
// > ??> @ 0x10090c3f0
// > ??> @ 0x10098c258
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCMenu::removeChild(cocos2d::CCMenu *a1, cocos2d::CCNode *a2, bool a3)
{
if ( !a2 )
{
if ( a1->m_pSelectedItem )
goto LABEL_4;
goto LABEL_3;
}
if ( a1->m_pSelectedItem == __dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCMenuItem,
0) )
LABEL_3:
a1->m_pSelectedItem = nullptr;
LABEL_4:
cocos2d::CCNode::removeChild(a1, (bool)a2);
}