//
// cocos2d::CCPoolManager::finalize from 0x1001b00b8 to 0x1001b0118 (96 bytes)
//
// 1 xrefs:
// > cocos2d::CCPoolManager::dCCPoolManager @ 0x1001b0074
//
// 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::CCPoolManager::finalize(cocos2d::CCPoolManager *a1)
{
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCAutoreleasePool **arr; // x19
unsigned __int64 v5; // x20
if ( (unsigned int)sub_10024A36C(a1->m_pReleasePoolStack) )
{
if ( a1->m_pReleasePoolStack )
{
data = a1->m_pReleasePoolStack->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (cocos2d::CCAutoreleasePool **)data->arr;
v5 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
cocos2d::CCAutoreleasePool::clear(*arr++);
}
while ( (unsigned __int64)arr <= v5 );
}
}
}
}