//
// sub_18009E000 from 0x18009e000 to 0x18009e061 (97 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::removeObjectAtIndexChild @ 0x180007234
// > ??> @ 0x1801b750c
//
// 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
//
void __fastcall sub_18009E000(__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;
}