// // cocos2d::ccArrayUpdateChildIndexes from 0x5ec77c to 0x5ec7b4 (56 bytes) // // 3 xrefs: // > cocos2d::CCNode::updateChildIndexes @ 0x5bdf6c // > cocos2d::ccArrayAppendObjectChild @ 0x5ec7ba // > cocos2d::ccArrayRemoveAllObjects @ 0x5ec7f0 // // 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 // int __fastcall cocos2d::ccArrayUpdateChildIndexes(int result) { int v1; // r4 int v2; // r3 int v3; // r2 int v4; // r5 int v5; // r6 v1 = *(_DWORD *)(result + 8); if ( v1 != -1 ) { v2 = 0; v3 = 0; while ( v2 < v1 ) { v4 = *(_DWORD *)(result + 12); v5 = *(_DWORD *)(v4 + 4 * v2); if ( v5 ) { if ( v3 ) { *(_DWORD *)(v4 + 4 * (v2 - v3)) = v5; *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(result + 12) + 4 * (v2 - v3)) + 32) = v2 - v3; } } else { ++v3; } ++v2; } *(_DWORD *)(result + 8) = -1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source