//
// cocos2d::CCPoolManager::pop from 0x180007690 to 0x1800076e5 (85 bytes)
//
// 6 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0x1800bde69
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800beb17
// > ??> @ 0x180131808
// > ??> @ 0x180131818
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adaa4
//
// 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::pop(cocos2d::CCPoolManager *this)
{
int v2; // edi
__int64 v3; // r8
if ( this->m_pCurReleasePool )
{
v2 = cocos2d::CCArray::count(this->m_pReleasePoolStack);
cocos2d::CCAutoreleasePool::clear(this->m_pCurReleasePool);
if ( v2 > 1 )
{
LOBYTE(v3) = 1;
cocos2d::CCArray::removeObjectAtIndex(this->m_pReleasePoolStack, (unsigned int)(v2 - 1), v3);
this->m_pCurReleasePool = (cocos2d::CCAutoreleasePool *)cocos2d::CCArray::stringAtIndex(
this->m_pReleasePoolStack,
v2 - 2);
}
}
}