//
// cocos2d::ccArrayRemoveAllObjects from 0xd92014 to 0xd92058 (68 bytes)
//
// 7 xrefs:
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0xd24790
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0xd376c4
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0xd3770c
// > cocos2d::CCArray::removeAllObjects @ 0xd47460
// > cocos2d::ccArrayFree @ 0xd92070
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0xdaaa9c
// > ??> @ 0xd4578
//
// This function is hookable on this platform (idp: arm, 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 13:08:19 +0000
//
__int64 __fastcall cocos2d::ccArrayRemoveAllObjects(unsigned int *a1)
{
__int64 result; // x0
unsigned int v3; // w0
__int64 v4; // x1
cocos2d::ccArrayUpdateChildIndexes((__int64)a1);
for ( result = *a1; (_DWORD)result; result = *a1 )
{
v3 = result - 1;
v4 = *((_QWORD *)a1 + 2);
*a1 = v3;
cocos2d::CCObject::release(*(_DWORD **)(v4 + 8LL * v3));
}
return result;
}