//
// cocos2d::ccArrayFastRemoveObjectAtIndexNew from 0xb21678 to 0xb216d8 (96 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndexNew @ 0xad4650
// > ??> @ 0x94098
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::ccArrayFastRemoveObjectAtIndexNew(__int64 a1, unsigned int a2)
{
__int64 v3; // x2
unsigned int v4; // w19
__int64 v5; // x21
_QWORD *v6; // x3
cocos2d::CCObject *result; // x0
__int64 v8; // x2
v3 = *(_QWORD *)(a1 + 16);
v4 = *(_DWORD *)a1 - 1;
v5 = 8LL * a2;
*(_DWORD *)a1 = v4;
v6 = (_QWORD *)(v3 + v5);
result = *(cocos2d::CCObject **)(v3 + v5);
v8 = *(_QWORD *)(v3 + 8LL * v4);
*(_DWORD *)(v8 + 32) = a2;
if ( result )
{
cocos2d::CCObject::release(result);
result = *(cocos2d::CCObject **)(a1 + 16);
v6 = (cocos2d::CCObject_vtbl **)((char *)&result->__vftable + v5);
v8 = *((_QWORD *)&result->__vftable + v4);
}
*v6 = v8;
return result;
}