//
// cocos2d::ccArrayRemoveAllObjects from 0x7f7826 to 0x7f7844 (30 bytes)
//
// 5 xrefs:
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x7b5b1c
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x7c02e2
// > cocos2d::CCArray::removeAllObjects @ 0x7c9282
// > cocos2d::ccArrayFree @ 0x7f784c
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x803958
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:11 +0000
//
_DWORD *__fastcall cocos2d::ccArrayRemoveAllObjects(int *a1)
{
_DWORD *result; // r0
int v3; // r2
int v4; // r3
result = (_DWORD *)cocos2d::ccArrayUpdateChildIndexes((int)a1);
while ( *a1 )
{
v3 = a1[3];
v4 = *a1 - 1;
*a1 = v4;
result = cocos2d::CCObject::release(*(_DWORD **)(v3 + 4 * v4));
}
return result;
}