//
// sub_1800A15B0 from 0x1800a15b0 to 0x1800a15f4 (68 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0x180007014
// > ??> @ 0x1801c16ec
//
// 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_1800A15B0(unsigned int *a1, unsigned int a2)
{
__int64 v3; // rdi
cocos2d::CCObject *v4; // rcx
__int64 v5; // rcx
__int64 result; // rax
v3 = 8LL * a2;
v4 = *(cocos2d::CCObject **)(v3 + *((_QWORD *)a1 + 2));
if ( v4 )
cocos2d::CCObject::release(v4);
--*a1;
v5 = *((_QWORD *)a1 + 2);
result = *(_QWORD *)(v5 + 8LL * *a1);
*(_QWORD *)(v5 + v3) = result;
return result;
}