//
// cocos2d::ccArrayRecreateChildIndexes from 0xb21520 to 0xb2154c (44 bytes)
//
// 3 xrefs:
// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0xacde34
// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0xacde60
// > ??> @ 0x7f8d8
//
// 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
//
__int64 __fastcall cocos2d::ccArrayRecreateChildIndexes(__int64 result)
{
int v1; // w2
__int64 v2; // x3
v1 = *(_DWORD *)result;
if ( *(int *)result > 0 )
{
v2 = *(_QWORD *)(result + 16);
result = 0;
do
{
*(_DWORD *)(*(_QWORD *)(v2 + 8 * result) + 36LL) = result;
++result;
}
while ( v1 > (int)result );
}
return result;
}