//
// cocos2d::CCMenu::removeChild from 0x100873ad0 to 0x100873b3a (106 bytes)
//
// 4 xrefs:
// > ??> @ 0x100b13dd0
// > ??> @ 0x100b800a8
// > ??> @ 0x100b8a008
// > ??> @ 0x100ba07a0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:52 +0000
//
__int64 __fastcall cocos2d::CCMenu::removeChild(__int64 a1, unsigned int *a2, char a3)
{
if ( !a2 )
{
if ( *(_QWORD *)(a1 + 432) )
return cocos2d::CCNode::removeChild(a1, a2, a3);
goto LABEL_3;
}
if ( *(void **)(a1 + 432) == __dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCMenuItem,
0) )
LABEL_3:
*(_QWORD *)(a1 + 432) = 0;
return cocos2d::CCNode::removeChild(a1, a2, a3);
}