//
// cocos2d::CCPoolManager::purgePoolManager from 0x180007840 to 0x1800078a7 (103 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0x1800c168e
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7aec
//
// This function is hookable on this platform (idp: pc, 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:21:18 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::CCPoolManager::purgePoolManager()
{
cocos2d::CCPoolManager *v0; // rbx
__int64 v1; // r8
v0 = Block;
if ( Block )
{
cocos2d::CCPoolManager::finalize((cocos2d::CCArray **)Block);
*((_QWORD *)v0 + 1) = 0;
LOBYTE(v1) = 1;
cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)v0, 0, v1);
if ( *(_QWORD *)v0 )
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)v0 + 8LL))(*(_QWORD *)v0, 1);
*(_QWORD *)v0 = 0;
}
j_j_free_0(v0);
Block = nullptr;
}
}