//
// cocos2d::CCPoolManager::pop from 0x1800077e0 to 0x180007835 (85 bytes)
//
// 6 xrefs:
// > cocos2d::CCDirector::~CCDirector @ 0x1800c1689
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22f7
// > ??> @ 0x18013a670
// > ??> @ 0x18013a680
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7ac8
//
// This function is hookable on this platform (idp: pc, 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:21:18 +0000
//
void __fastcall cocos2d::CCPoolManager::pop(cocos2d::CCArray **this)
{
int v2; // edi
__int64 v3; // r8
if ( *(this + 1) )
{
v2 = cocos2d::CCArray::count(*this);
cocos2d::CCAutoreleasePool::clear(*(this + 1));
if ( v2 > 1 )
{
LOBYTE(v3) = 1;
cocos2d::CCArray::removeObjectAtIndex(*this, (unsigned int)(v2 - 1), v3);
*(this + 1) = cocos2d::CCArray::stringAtIndex(*this, v2 - 2);
}
}
}