//
// cocos2d::ccArrayRecreateChildIndexes from 0xd92098 to 0xd920cc (52 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0xd40294
// > ??> @ 0xa9ee8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:19 +0000
//
__int64 __fastcall cocos2d::ccArrayRecreateChildIndexes(__int64 result)
{
int v1; // w4
__int64 v2; // x2
int v3; // w1
__int64 v4; // x3
v1 = *(_DWORD *)result;
v2 = 0;
v3 = 0;
if ( *(int *)result > 0 )
{
do
{
v4 = *(_QWORD *)(*(_QWORD *)(result + 16) + v2);
v2 += 8;
*(_DWORD *)(v4 + 36) = v3++;
}
while ( v1 != v3 );
}
return result;
}