//
// cocos2d::ccArrayRecreateNewIndexes from 0xb2154c to 0xb21578 (44 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::recreateNewIndexes @ 0xad4194
// > ??> @ 0x7cf98
//
// 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::ccArrayRecreateNewIndexes(__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) + 32LL) = result;
++result;
}
while ( v1 > (int)result );
}
return result;
}