//
// cocos2d::CCNode::setUseChildIndex from 0x7c49c0 to 0x7c49fe (62 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::setupLayers @ 0x59acdc
//
// 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::setUseChildIndex(int this, int a2)
{
int v2; // r4
int *v3; // r3
int v4; // r1
int v5; // r2
int i; // r3
v2 = this;
if ( *(unsigned __int8 *)(this + 260) != a2 )
{
*(_BYTE *)(this + 260) = a2;
if ( a2 )
{
this = *(_DWORD *)(this + 192);
if ( this )
{
this = cocos2d::CCArray::count((cocos2d::CCArray *)this);
if ( this )
{
v3 = *(int **)(*(_DWORD *)(v2 + 192) + 52);
v4 = *v3;
v5 = v3[3];
for ( i = 0; i < v4; ++i )
{
this = *(_DWORD *)(v5 + 4 * i);
*(_DWORD *)(this + 32) = i;
}
}
}
}
}
return this;
}