//
// cocos2d::CCNode::insertChild from 0x7c48f6 to 0x7c4926 (48 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::addChild @ 0x7c4944
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:23 +0000
//
int __fastcall cocos2d::CCNode::insertChild(cocos2d::CCNode *this, cocos2d::CCNode *a2, int a3)
{
int v4; // r2
int v6; // r0
*((_BYTE *)this + 240) = 1;
v4 = *((unsigned __int8 *)this + 260);
v6 = *(_DWORD *)(*((_DWORD *)this + 48) + 52);
if ( v4 )
cocos2d::ccArrayAppendObjectWithResizeChild(v6);
else
cocos2d::ccArrayAppendObjectWithResize(v6);
return (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a2 + 48))(a2, a3);
}