//
// cocos2d::CCPoolManager::pop from 0x100245258 to 0x1002452c0 (104 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::dCCDirector @ 0x10020693c
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x100207e2c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:01:26 +0000
//
void __fastcall cocos2d::CCPoolManager::pop(_QWORD *a1)
{
int v2; // w21
if ( a1[1] )
{
v2 = sub_1002E757C(*a1);
cocos2d::CCAutoreleasePool::clear(a1[1]);
if ( v2 >= 2 )
{
sub_1002E7664(*a1, (unsigned int)(v2 - 1), 1);
a1[1] = sub_1002E75A0(*a1, (unsigned int)(v2 - 2));
}
}
}