//
// cocos2d::CCNode::insertChild from 0x1002d8900 to 0x1002d8958 (88 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::addChild @ 0x1002d8874
//
// 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:42 +0000
//
__int64 __fastcall cocos2d::CCNode::insertChild(__int64 a1, __int64 a2, __int64 a3)
{
int v5; // w8
__int64 v6; // x0
*(_BYTE *)(a1 + 288) = 1;
v5 = *(unsigned __int8 *)(a1 + 312);
v6 = *(_QWORD *)(*(_QWORD *)(a1 + 208) + 56LL);
if ( v5 == 1 )
sub_1003F3064(v6);
else
sub_1003F3020(v6);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 96LL))(a2, a3);
}