//
// cocos2d::CCNode::insertChild from 0xd3e970 to 0xd3e9ec (124 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::addChild @ 0xd3ea14
// > ??> @ 0xf1a08
//
// 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::insertChild(cocos2d::CCNode *this, cocos2d::CCNode *a2, unsigned int a3)
{
int v4; // w3
__int64 v5; // x0
*((_BYTE *)this + 288) = 1;
v4 = *((unsigned __int8 *)this + 312);
v5 = *(_QWORD *)(*((_QWORD *)this + 26) + 56LL);
if ( v4 )
cocos2d::ccArrayAppendObjectWithResizeChild(v5);
else
cocos2d::ccArrayAppendObjectWithResize(v5);
return (*(__int64 (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 96LL))(a2, a3);
}