//
// cocos2d::CCPoolManager::pop from 0x7c64f4 to 0x7c6524 (48 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0x7c9d60
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x7caefa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:25 +0000
//
int __fastcall cocos2d::CCPoolManager::pop(int this)
{
int v1; // r4
int v2; // r5
v1 = this;
if ( *(_DWORD *)(this + 4) )
{
v2 = cocos2d::CCArray::count(*(cocos2d::CCArray **)this);
this = cocos2d::CCAutoreleasePool::clear(*(cocos2d::CCArray ***)(v1 + 4));
if ( v2 > 1 )
{
cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)v1, v2 - 1, 1);
this = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)v1, v2 - 2);
*(_DWORD *)(v1 + 4) = this;
}
}
return this;
}