//
// cocos2d::CCPoolManager::finalize from 0xacf08c to 0xacf0f8 (108 bytes)
//
// 2 xrefs:
// > cocos2d::CCPoolManager::~CCPoolManager @ 0xacf108
// > ??> @ 0xa5348
//
// 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; // x1
cocos2d::CCAutoreleasePool **arr; // x19
cocos2d::CCAutoreleasePool **v4; // x20
cocos2d::CCAutoreleasePool *v5; // x0
if ( (unsigned int)cocos2d::CCArray::count(a1->m_pReleasePoolStack) )
{
if ( a1->m_pReleasePoolStack )
{
data = a1->m_pReleasePoolStack->data;
if ( data->num )
{
arr = (cocos2d::CCAutoreleasePool **)data->arr;
v4 = &arr[data->num - 1];
while ( v4 >= arr )
{
v5 = *arr;
if ( !*arr )
break;
++arr;
cocos2d::CCAutoreleasePool::clear(v5);
}
}
}
}
}