//
// sub_1800A1670 from 0x1800a1670 to 0x1800a16d2 (98 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndexNew @ 0x180007034
// > ??> @ 0x1801c1704
//
// This function is hookable on this platform (idp: pc, 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 11:22:13 +0000
//
__int64 __fastcall sub_1800A1670(__int64 a1, unsigned int a2)
{
__int64 v3; // rdi
__int64 v4; // rsi
cocos2d::CCObject *v5; // rcx
__int64 v6; // rcx
__int64 result; // rax
v3 = 8LL * (unsigned int)--*(_DWORD *)a1;
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + v3) + 32LL) = a2;
v4 = 8LL * a2;
v5 = *(cocos2d::CCObject **)(v4 + *(_QWORD *)(a1 + 16));
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *(_QWORD *)(a1 + 16);
result = *(_QWORD *)(v6 + v3);
*(_QWORD *)(v6 + v4) = result;
return result;
}