//
// cocos2d::CCNode::insertChild from 0x100273060 to 0x1002730ae (78 bytes)
//
// 0 xrefs:
//
// 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)
{
unsigned int v2; // edx
unsigned int v3; // ebx
cocos2d::ccArray *data; // rdi
v3 = v2;
a1->m_bReorderChildDirty = 1;
data = a1->m_pChildren->data;
if ( a1->m_bUseChildIndex )
sub_100667780(data, a2);
else
sub_1006676C0(data, a2);
(*(void (__fastcall **)(int, _QWORD))(**(_QWORD **)&a2 + 96LL))(a2, v3);
}