//
// cocos2d::CCMenu::removeChild from 0x100270778 to 0x1002707e8 (112 bytes)
//
// 4 xrefs:
// > ??> @ 0x1008e4280
// > ??> @ 0x100917928
// > ??> @ 0x10093e690
// > ??> @ 0x10093f6c8
//
// This function is hookable on this platform (idp: arm, 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 11:01:46 +0000
//
__int64 __fastcall cocos2d::CCMenu::removeChild(__int64 a1, void *lpsrc, __int64 a3)
{
void *v6; // x0
if ( lpsrc )
v6 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCMenuItem,
0);
else
v6 = nullptr;
if ( *(void **)(a1 + 432) == v6 )
*(_QWORD *)(a1 + 432) = 0;
return cocos2d::CCNode::removeChild(a1, lpsrc, a3);
}