//
// cocos2d::CCPoolManager::purgePoolManager from 0x1800076f0 to 0x180007757 (103 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0x1800bde6e
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adac8
//
// 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
//
// 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(Block);
v0->m_pCurReleasePool = nullptr;
LOBYTE(v1) = 1;
cocos2d::CCArray::removeObjectAtIndex(v0->m_pReleasePoolStack, 0, v1);
if ( v0->m_pReleasePoolStack )
{
((void (__fastcall *)(cocos2d::CCArray *, __int64))v0->m_pReleasePoolStack->~CCArray)(v0->m_pReleasePoolStack, 1);
v0->m_pReleasePoolStack = nullptr;
}
j_j_free_0(v0);
Block = nullptr;
}
}