//
// cocos2d::CCPoolManager::finalize from 0x7c6458 to 0x7c648c (52 bytes)
//
// 1 xrefs:
// > cocos2d::CCPoolManager::~CCPoolManager @ 0x7c6490
//
// 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:00:25 +0000
//
cocos2d::CCArray **__fastcall cocos2d::CCPoolManager::finalize(cocos2d::CCArray **this)
{
cocos2d::CCArray **result; // r0
_DWORD *v3; // r2
cocos2d::CCArray ***v4; // r5
cocos2d::CCArray ***v5; // r4
cocos2d::CCArray **v6; // t1
result = (cocos2d::CCArray **)cocos2d::CCArray::count(*this);
if ( result )
{
if ( *this )
{
v3 = *((_DWORD **)*this + 13);
if ( *v3 )
{
v4 = (cocos2d::CCArray ***)v3[3];
v5 = &(&v4[*v3])[-1];
while ( v4 <= v5 )
{
v6 = *v4++;
result = v6;
if ( !v6 )
break;
result = (cocos2d::CCArray **)cocos2d::CCAutoreleasePool::clear(result);
}
}
}
}
return result;
}