//
// cocos2d::ccArrayFastRemoveObjectAtIndex from 0xd921c4 to 0xd92214 (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0xd47468
// > cocos2d::ccArrayFastRemoveObject @ 0xd92308
// > ??> @ 0x82b88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:19 +0000
//
__int64 __fastcall cocos2d::ccArrayFastRemoveObjectAtIndex(__int64 a1, unsigned int a2)
{
__int64 v3; // x20
__int64 v4; // x2
_QWORD *v5; // x3
_DWORD *v6; // x0
unsigned int v7; // w0
__int64 result; // x0
v3 = 8LL * a2;
v4 = *(_QWORD *)(a1 + 16);
v5 = (_QWORD *)(v4 + v3);
v6 = *(_DWORD **)(v4 + v3);
if ( v6 )
{
cocos2d::CCObject::release(v6);
v4 = *(_QWORD *)(a1 + 16);
v5 = (_QWORD *)(v4 + v3);
}
v7 = *(_DWORD *)a1 - 1;
*(_DWORD *)a1 = v7;
result = *(_QWORD *)(v4 + 8LL * v7);
*v5 = result;
return result;
}