//
// sub_1800A19E0 from 0x1800a19e0 to 0x1800a1a11 (49 bytes)
//
// 6 xrefs:
// > cocos2d::CCArray::removeAllObjects @ 0x180007334
// > cocos2d::CCActionManager::removeAllActions @ 0x180038f1d
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x1800390b1
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800ae4c7
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c5fa7
// > ??> @ 0x1801c1740
//
// 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
//
__int64 __fastcall sub_1800A19E0(unsigned int *a1)
{
__int64 result; // rax
__int64 v3; // rcx
unsigned int v4; // eax
sub_1800A1D70(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;
}