//
// cocos2d::CCNode::insertChild from 0x1800036a0 to 0x1800036ed (77 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad2dc
//
// 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
//
void __fastcall cocos2d::CCNode::insertChild(cocos2d::CCNode *this, struct cocos2d::CCNode *a2, unsigned int a3)
{
cocos2d::CCArray *m_pChildren; // rax
bool v5; // zf
cocos2d::ccArray *data; // rcx
m_pChildren = this->m_pChildren;
v5 = !this->m_bUseChildIndex;
this->m_bReorderChildDirty = 1;
data = m_pChildren->data;
if ( v5 )
sub_18009D610(data, a2);
else
sub_18009D6F0(data, a2);
((void (__fastcall *)(struct cocos2d::CCNode *, _QWORD))a2->_setZOrder)(a2, a3);
}