//
// cocos2d::CCNode::insertChild from 0x10023b904 to 0x10023b95c (88 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::addChild @ 0x10023b878
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCNode::insertChild(cocos2d::CCNode *a1, int a2)
{
__int64 v2; // x2
__int64 v3; // x19
__int64 v4; // x20
_BOOL4 m_bUseChildIndex; // w8
cocos2d::ccArray *data; // x0
v3 = v2;
v4 = *(_QWORD *)&a2;
a1->m_bReorderChildDirty = 1;
m_bUseChildIndex = a1->m_bUseChildIndex;
data = a1->m_pChildren->data;
if ( m_bUseChildIndex )
sub_100353774(data);
else
sub_100353730(data);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 96LL))(v4, v3);
}