//
// cocos2d::ccArrayFree from 0x5ec80a to 0x5ec82a (32 bytes)
//
// 8 xrefs:
// > cocos2d::CCScheduler::removeHashElement @ 0x5ae34e
// > cocos2d::CCActionManager::deleteHashElement @ 0x5b9368
// > cocos2d::CCArray::~CCArray @ 0x5c1d40
// > cocos2d::CCArray::initWithCapacity @ 0x5c1de2
// > cocos2d::CCArray::initWithObject @ 0x5c1fdc
// > cocos2d::CCArray::initWithObjects @ 0x5c2040
// > cocos2d::CCArray::initWithArray @ 0x5c20ec
// > cocos2d::CCParallaxNode::~CCParallaxNode @ 0x5f6b34
//
// 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::ccArrayFree(void **a1)
{
int *v2; // r0
v2 = (int *)*a1;
if ( v2 )
{
cocos2d::ccArrayRemoveAllObjects(v2);
free(*((void **)*a1 + 3));
free(*a1);
*a1 = nullptr;
}
}