//
// sub_1800A16E0 from 0x1800a16e0 to 0x1800a1742 (98 bytes)
//
// 25 xrefs:
// > cocos2d::CCArray::CCArray @ 0x180006865
// > cocos2d::CCArray::CCArray @ 0x1800068be
// > cocos2d::CCArray::~CCArray @ 0x1800068f7
// > sub_180006910 @ 0x18000697c
// > cocos2d::CCArray::copyWithZone @ 0x180006a60
// > cocos2d::CCArray::copyWithZone @ 0x180006a83
// > cocos2d::CCArray::create @ 0x180006be0
// > cocos2d::CCArray::create @ 0x180006c00
// > cocos2d::CCArray::createWithCapacity @ 0x180006c97
// > cocos2d::CCArray::createWithCapacity @ 0x180006cb7
// > cocos2d::CCArray::createWithObject @ 0x180006f28
// > cocos2d::CCArray::createWithObject @ 0x180006f48
// > cocos2d::CCArray::createWithObject @ 0x180006f51
// > cocos2d::CCArray::init @ 0x18000705d
// > cocos2d::CCArray::initWithArray @ 0x180007099
// > cocos2d::CCArray::initWithArray @ 0x1800070a7
// > cocos2d::CCArray::initWithCapacity @ 0x1800070f3
// > cocos2d::CCArray::initWithObject @ 0x180007124
// > cocos2d::CCArray::initWithObject @ 0x18000712c
// > cocos2d::CCArray::initWithObjects @ 0x18000717b
// > cocos2d::CCActionManager::deleteHashElement @ 0x180038553
// > cocos2d::CCParallaxNode::~CCParallaxNode @ 0x1800ae128
// > sub_1800AE150 @ 0x1800ae1c8
// > cocos2d::CCScheduler::removeHashElement @ 0x1800c4d0c
// > ??> @ 0x1801c1710
//
// 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_1800A16E0(void **a1)
{
_QWORD *v1; // rbx
int i; // eax
__int64 v4; // rcx
unsigned int v5; // eax
v1 = *a1;
if ( *a1 )
{
sub_1800A1D70(*a1);
for ( i = *(_DWORD *)v1; *(_DWORD *)v1; i = *(_DWORD *)v1 )
{
v4 = v1[2];
v5 = i - 1;
*(_DWORD *)v1 = v5;
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v4 + 8LL * v5));
}
free(*((void **)*a1 + 2));
free(*a1);
*a1 = nullptr;
}
}