//
// cocos2d::ccArrayFastRemoveObjectAtIndex from 0x5ec89c to 0x5ec8c0 (36 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0x5c213c
// > cocos2d::ccArrayFastRemoveObject @ 0x5ec928
//
// 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
//
void __fastcall cocos2d::ccArrayFastRemoveObjectAtIndex(int *a1, int a2)
{
cocos2d::CCObject *v4; // r0
int v5; // r2
int v6; // r3
v4 = *(cocos2d::CCObject **)(a1[3] + 4 * a2);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = a1[3];
v6 = *a1 - 1;
*a1 = v6;
*(_DWORD *)(v5 + 4 * a2) = *(_DWORD *)(v5 + 4 * v6);
}