//
// cocos2d::CCPoolManager::pop from 0xacf1b8 to 0xacf218 (96 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0xad5c04
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0xad76bc
// > ??> @ 0x4fbf0
//
// 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; // w20
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);
}
}
}