//
// cocos2d::ccArrayFastRemoveObjectAtIndex from 0xb21628 to 0xb21678 (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0xad4648
// > cocos2d::ccArrayFastRemoveObject @ 0xb21764
// > ??> @ 0x5fbe0
//
// 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::ccArrayFastRemoveObjectAtIndex(__int64 a1, unsigned int a2)
{
__int64 v2; // x2
__int64 v4; // x20
cocos2d::CCObject *v5; // x0
_QWORD *v6; // x3
unsigned int v7; // w0
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 16);
v4 = 8LL * a2;
v5 = *(cocos2d::CCObject **)(v2 + v4);
v6 = (_QWORD *)(v2 + v4);
if ( v5 )
{
cocos2d::CCObject::release(v5);
v2 = *(_QWORD *)(a1 + 16);
v6 = (_QWORD *)(v2 + v4);
}
v7 = *(_DWORD *)a1 - 1;
*(_DWORD *)a1 = v7;
result = *(_QWORD *)(v2 + 8LL * v7);
*v6 = result;
return result;
}