//
// cocos2d::CCPoolManager::finalize from 0x1800075f0 to 0x180007651 (97 bytes)
//
// 6 xrefs:
// > cocos2d::CCPoolManager::~CCPoolManager @ 0x1800073f9
// > cocos2d::CCPoolManager::purgePoolManager @ 0x180007705
// > ??> @ 0x1801317a8
// > ??> @ 0x1801317b8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ada74
//
// 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 *this)
{
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCAutoreleasePool **arr; // rbx
cocos2d::CCAutoreleasePool **i; // rdi
if ( (unsigned int)cocos2d::CCArray::count(this->m_pReleasePoolStack) )
{
if ( this->m_pReleasePoolStack )
{
data = this->m_pReleasePoolStack->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (cocos2d::CCAutoreleasePool **)data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
if ( !*arr )
break;
cocos2d::CCAutoreleasePool::clear(*arr);
}
}
}
}
}