//
// sub_18009DA50 from 0x18009da50 to 0x18009dab2 (98 bytes)
//
// 25 xrefs:
// > cocos2d::CCArray::CCArray @ 0x180006725
// > cocos2d::CCArray::CCArray @ 0x18000677e
// > cocos2d::CCArray::~CCArray @ 0x1800067b7
// > sub_1800067D0 @ 0x18000683c
// > cocos2d::CCArray::copyWithZone @ 0x180006920
// > cocos2d::CCArray::copyWithZone @ 0x180006943
// > cocos2d::CCArray::create @ 0x180006aa0
// > cocos2d::CCArray::create @ 0x180006ac0
// > cocos2d::CCArray::createWithCapacity @ 0x180006b57
// > cocos2d::CCArray::createWithCapacity @ 0x180006b77
// > cocos2d::CCArray::createWithObject @ 0x180006dd8
// > cocos2d::CCArray::createWithObject @ 0x180006df8
// > cocos2d::CCArray::createWithObject @ 0x180006e01
// > cocos2d::CCArray::init @ 0x180006f0d
// > cocos2d::CCArray::initWithArray @ 0x180006f49
// > cocos2d::CCArray::initWithArray @ 0x180006f57
// > cocos2d::CCArray::initWithCapacity @ 0x180006fa3
// > cocos2d::CCArray::initWithObject @ 0x180006fd4
// > cocos2d::CCArray::initWithObject @ 0x180006fdc
// > cocos2d::CCArray::initWithObjects @ 0x18000702b
// > cocos2d::CCActionManager::deleteHashElement @ 0x180037e43
// > cocos2d::CCParallaxNode::~CCParallaxNode @ 0x1800aa928
// > sub_1800AA950 @ 0x1800aa9c8
// > cocos2d::CCScheduler::removeHashElement @ 0x1800c143c
// > ??> @ 0x1801b7470
//
// 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_18009DA50(void **a1)
{
_QWORD *v1; // rbx
int i; // eax
__int64 v4; // rcx
unsigned int v5; // eax
v1 = *a1;
if ( *a1 )
{
sub_18009E0E0(*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;
}
}