//
// cocos2d::CCNode::setUseChildIndex from 0x10023bc38 to 0x10023bca8 (112 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::setupLayers @ 0x1001dd704
//
// 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::setUseChildIndex(cocos2d::CCNode *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x10
__int64 num; // x8
__int64 v6; // x9
cocos2d::CCObject **arr; // x10
if ( a1->m_bUseChildIndex != a2 )
{
a1->m_bUseChildIndex = a2;
if ( a2 )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( (unsigned int)sub_10024A36C(m_pChildren) )
{
data = a1->m_pChildren->data;
num = data->num;
if ( (int)num >= 1 )
{
v6 = 0;
arr = data->arr;
do
{
arr[v6]->m_uUnknown = v6;
++v6;
}
while ( num != v6 );
}
}
}
}
}
}