//
// cocos2d::ccArrayRemoveAllObjects from 0x5ec7ec to 0x5ec80a (30 bytes)
//
// 5 xrefs:
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x5af510
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x5b9a2e
// > cocos2d::CCArray::removeAllObjects @ 0x5c2136
// > cocos2d::ccArrayFree @ 0x5ec812
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x5f6de8
//
// 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 cocos2d::ccArrayRemoveAllObjects(int *a1)
{
int v2; // r2
int v3; // r3
cocos2d::ccArrayUpdateChildIndexes((int)a1);
while ( *a1 )
{
v2 = a1[3];
v3 = *a1 - 1;
*a1 = v3;
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v2 + 4 * v3));
}
}