//
// cocos2d::ccArrayRemoveAllObjects from 0xb2149c to 0xb214e0 (68 bytes)
//
// 7 xrefs:
// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0xab2c88
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0xac57e0
// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0xac5828
// > cocos2d::CCArray::removeAllObjects @ 0xad4640
// > cocos2d::ccArrayFree @ 0xb214f8
// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0xb38330
// > ??> @ 0xa1730
//
// 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 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(*(cocos2d::CCObject **)(v4 + 8LL * v3));
}
return result;
}