//
// sub_18009DD50 from 0x18009dd50 to 0x18009dd81 (49 bytes)
//
// 6 xrefs:
// > cocos2d::CCArray::removeAllObjects @ 0x1800071e4
// > cocos2d::CCActionManager::removeAllActions @ 0x1800387fa
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003897e
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacc7
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26a4
// > ??> @ 0x1801b74a0
//
// 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_18009DD50(unsigned int *a1)
{
__int64 result; // rax
__int64 v3; // rcx
unsigned int v4; // eax
sub_18009E0E0(a1);
for ( result = *a1; (_DWORD)result; result = *a1 )
{
v3 = *((_QWORD *)a1 + 2);
v4 = result - 1;
*a1 = v4;
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v3 + 8LL * v4));
}
return result;
}