//
// cocos2d::CCNode::detachChild from 0xd3e890 to 0xd3e95c (204 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::removeChild @ 0xd3e968
// > ??> @ 0x90088
//
// 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:29 +0000
//
__int64 __fastcall cocos2d::CCNode::detachChild(cocos2d::CCArray **this, cocos2d::CCNode *a2, unsigned __int8 a3)
{
int v5; // w21
v5 = a3;
if ( !*((_BYTE *)this + 272) )
{
if ( !a3 )
goto LABEL_3;
LABEL_6:
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 736LL))(a2);
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 504LL))(a2, 0);
if ( !*((_BYTE *)this + 312) )
return cocos2d::CCArray::removeObject(*(this + 26), a2, 1);
return cocos2d::CCArray::removeObjectAtIndexChild(*(this + 26), *((_DWORD *)a2 + 9), 1);
}
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 728LL))(a2);
(*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 720LL))(a2);
if ( v5 )
goto LABEL_6;
LABEL_3:
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 504LL))(a2, 0);
if ( !*((_BYTE *)this + 312) )
return cocos2d::CCArray::removeObject(*(this + 26), a2, 1);
return cocos2d::CCArray::removeObjectAtIndexChild(*(this + 26), *((_DWORD *)a2 + 9), 1);
}