//
// cocos2d::ccArrayFree from 0x7f7844 to 0x7f7864 (32 bytes)
//
// 8 xrefs:
// > cocos2d::CCScheduler::removeHashElement @ 0x7b4874
// > cocos2d::CCActionManager::deleteHashElement @ 0x7bfbb0
// > cocos2d::CCArray::~CCArray @ 0x7c8e44
// > cocos2d::CCArray::initWithCapacity @ 0x7c8f2e
// > cocos2d::CCArray::initWithObject @ 0x7c9128
// > cocos2d::CCArray::initWithObjects @ 0x7c918c
// > cocos2d::CCArray::initWithArray @ 0x7c9238
// > cocos2d::CCParallaxNode::~CCParallaxNode @ 0x8036a4
//
// 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
//
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;
}
}