//
// sub_1800A1C90 from 0x1800a1c90 to 0x1800a1cf1 (97 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0x180007384
// > ??> @ 0x1801c17ac
//
// 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
//
void __fastcall sub_1800A1C90(__int64 a1, unsigned int a2, char a3)
{
__int64 v4; // rdi
__int64 v5; // rdx
cocos2d::CCObject *v6; // rcx
v4 = 8LL * a2;
*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + v4) + 36LL) = -1;
v5 = *(_QWORD *)(a1 + 16);
if ( a3 )
{
v6 = *(cocos2d::CCObject **)(v5 + v4);
if ( v6 )
{
cocos2d::CCObject::release(v6);
v5 = *(_QWORD *)(a1 + 16);
}
}
if ( *(_DWORD *)(a1 + 8) == -1 )
*(_DWORD *)(a1 + 8) = *(_DWORD *)a1;
--*(_DWORD *)a1;
*(_QWORD *)(v4 + v5) = 0;
}