//
// cocos2d::CCPoolManager::pop from 0x5bf86c to 0x5bf89c (48 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0x5c2ad8
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x5c3c44
//
// 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 cocos2d::CCPoolManager::pop(cocos2d::CCPoolManager *a1)
{
int v2; // r5
if ( a1->m_pCurReleasePool )
{
v2 = cocos2d::CCArray::count(a1->m_pReleasePoolStack);
cocos2d::CCAutoreleasePool::clear(a1->m_pCurReleasePool);
if ( v2 > 1 )
{
cocos2d::CCArray::removeObjectAtIndex(a1->m_pReleasePoolStack, v2 - 1, 1);
a1->m_pCurReleasePool = (cocos2d::CCAutoreleasePool *)cocos2d::CCArray::objectAtIndex(
a1->m_pReleasePoolStack,
v2 - 2);
}
}
}