//
// cocos2d::CCNode::detachChild from 0x1800032a0 to 0x18000333a (154 bytes)
//
// 3 xrefs:
// > cocos2d::CCNode::removeChild @ 0x1800047a8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b72b8
//
// 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 11:21:17 +0000
//
void __fastcall cocos2d::CCNode::detachChild(cocos2d::CCNode *this, struct cocos2d::CCNode *a2, char a3)
{
cocos2d::CCArray *v6; // rcx
if ( *((_BYTE *)this + 272) )
{
(*(void (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 720LL))(a2);
(*(void (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 712LL))(a2);
}
if ( a3 )
(*(void (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 728LL))(a2);
(*(void (__fastcall **)(struct cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 496LL))(a2, 0);
v6 = *((cocos2d::CCArray **)this + 26);
if ( *((_BYTE *)this + 312) )
cocos2d::CCArray::removeObjectAtIndexChild(v6, *((_DWORD *)a2 + 9), 1);
else
cocos2d::CCArray::removeObject(v6, a2, 1);
}