//
// cocos2d::CCMenu::removeChild from 0xd65450 to 0xd654dc (140 bytes)
//
// 6 xrefs:
// > ??> @ 0x5bb40
// > ??> @ 0x1416328
// > ??> @ 0x141df88
// > ??> @ 0x14c3338
// > ??> @ 0x14e2c58
// > ??> @ 0x1524168
//
// 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 13:07:53 +0000
//
__int64 __fastcall cocos2d::CCMenu::removeChild(cocos2d::CCMenu *this, cocos2d::CCNode *lpsrc, unsigned __int8 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 ( v6 == *((void **)this + 54) )
*((_QWORD *)this + 54) = 0;
return cocos2d::CCNode::removeChild((__int64)this, lpsrc, a3);
}