//
// cocos2d::CCPoolManager::finalize from 0x1002451a4 to 0x100245204 (96 bytes)
//
// 1 xrefs:
// > cocos2d::CCPoolManager::dCCPoolManager @ 0x100245160
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 11:01:26 +0000
//
void __fastcall cocos2d::CCPoolManager::finalize(_QWORD *a1)
{
unsigned int *v2; // x9
__int64 v3; // x8
__int64 *v4; // x19
unsigned __int64 v5; // x20
if ( (unsigned int)sub_1002E757C(*a1) )
{
if ( *a1 )
{
v2 = *(unsigned int **)(*a1 + 56LL);
v3 = *v2;
if ( (_DWORD)v3 )
{
v4 = *((__int64 **)v2 + 2);
v5 = (unsigned __int64)&v4[v3 - 1];
do
{
if ( !*v4 )
break;
cocos2d::CCAutoreleasePool::clear(*v4++);
}
while ( (unsigned __int64)v4 <= v5 );
}
}
}
}