//
// cocos2d::CCPoolManager::finalize from 0x5bf7d0 to 0x5bf804 (52 bytes)
//
// 1 xrefs:
// > cocos2d::CCPoolManager::~CCPoolManager @ 0x5bf808
//
// 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 cocos2d::CCPoolManager::finalize(cocos2d::CCPoolManager *a1)
{
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v4; // r4
cocos2d::CCAutoreleasePool *v5; // r0
cocos2d::CCAutoreleasePool *v6; // t1
if ( cocos2d::CCArray::count(a1->m_pReleasePoolStack) )
{
if ( a1->m_pReleasePoolStack )
{
data = a1->m_pReleasePoolStack->data;
if ( data->num )
{
arr = data->arr;
v4 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v4 )
{
v6 = (cocos2d::CCAutoreleasePool *)*arr++;
v5 = v6;
if ( !v6 )
break;
cocos2d::CCAutoreleasePool::clear(v5);
}
}
}
}
}