//
// cocos2d::CCPoolManager::sharedPoolManager from 0x180007890 to 0x1800078fb (107 bytes)
//
// 7 xrefs:
// > cocos2d::CCObject::~CCObject @ 0x18000e92d
// > cocos2d::CCObject::autorelease @ 0x18000ea49
// > cocos2d::CCDirector::~CCDirector @ 0x1800bde61
// > cocos2d::CCDirector::init @ 0x1800bea3a
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800beb0b
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adaf8
//
// 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
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCPoolManager *__fastcall cocos2d::CCPoolManager::sharedPoolManager()
{
struct cocos2d::CCPoolManager *result; // rax
cocos2d::CCPoolManager *v1; // rbx
cocos2d::CCArray *v2; // rax
result = Block;
if ( !Block )
{
v1 = (cocos2d::CCPoolManager *)operator new(0x10u);
if ( v1 )
{
v2 = (cocos2d::CCArray *)operator new(0x40u);
if ( v2 )
v2 = cocos2d::CCArray::CCArray(v2);
v1->m_pReleasePoolStack = v2;
cocos2d::CCArray::init(v2);
v1->m_pCurReleasePool = nullptr;
}
else
{
v1 = nullptr;
}
Block = v1;
return v1;
}
return result;
}