//
// cocos2d::CCPoolManager::pop from 0x1001b016c to 0x1001b01d4 (104 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::dCCDirector @ 0x1001753c0
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x10017685c
//
// 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 *a1)
{
int v2; // w21
if ( a1->m_pCurReleasePool )
{
v2 = sub_10024A36C(a1->m_pReleasePoolStack);
cocos2d::CCAutoreleasePool::clear(a1->m_pCurReleasePool);
if ( v2 >= 2 )
{
sub_10024A44C(a1->m_pReleasePoolStack, (unsigned int)(v2 - 1), 1);
a1->m_pCurReleasePool = (cocos2d::CCAutoreleasePool *)sub_10024A388(
a1->m_pReleasePoolStack,
(unsigned int)(v2 - 2));
}
}
}