//
// sub_18009D920 from 0x18009d920 to 0x18009d964 (68 bytes)
//
// 2 xrefs:
// > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0x180006ec4
// > ??> @ 0x1801b744c
//
// 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
//
__int64 __fastcall sub_18009D920(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;
}