//
// cocos2d::CCNode::detachChild from 0x1002d89dc to 0x1002d8a8c (176 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::removeChild @ 0x1002d89d4
//
// 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:02:43 +0000
//
__int64 __fastcall cocos2d::CCNode::detachChild(__int64 a1, unsigned int *a2, int a3)
{
__int64 v6; // x0
if ( *(_BYTE *)(a1 + 272) == 1 )
{
(*(void (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 728LL))(a2);
(*(void (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 720LL))(a2);
}
if ( a3 )
(*(void (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 736LL))(a2);
(*(void (__fastcall **)(unsigned int *, _QWORD))(*(_QWORD *)a2 + 504LL))(a2, 0);
v6 = *(_QWORD *)(a1 + 208);
if ( *(_BYTE *)(a1 + 312) == 1 )
return cocos2d::CCArray::removeObjectAtIndexChild(v6, a2[9], 1);
else
return sub_1002E765C(v6, a2, 1);
}