//
// cocos2d::CCNode::detachChild from 0x10025f7d0 to 0x10025f862 (146 bytes)
//
// 0 xrefs:
//
// 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 12:27:30 +0000
//
__int64 __fastcall cocos2d::CCNode::detachChild(__int64 a1, unsigned int *a2, char a3)
{
__int64 v5; // rdi
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);
v5 = *(_QWORD *)(a1 + 208);
if ( *(_BYTE *)(a1 + 312) == 1 )
return cocos2d::CCArray::removeObjectAtIndexChild(v5, a2[9], 1);
else
return sub_1007FF140(v5, a2, 1);
}