//
// cocos2d::CCPoolManager::sharedPoolManager from 0x1800079e0 to 0x180007a4d (109 bytes)
//
// 7 xrefs:
// > cocos2d::CCObject::~CCObject @ 0x18000ea1d
// > cocos2d::CCObject::autorelease @ 0x18000eb39
// > cocos2d::CCDirector::~CCDirector @ 0x1800c1681
// > cocos2d::CCDirector::init @ 0x1800c2212
// > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22eb
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7b1c
//
// 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
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCPoolManager *__fastcall cocos2d::CCPoolManager::sharedPoolManager()
{
struct cocos2d::CCPoolManager *result; // rax
cocos2d::CCArray **v1; // rbx
cocos2d::CCArray *v2; // rax
result = Block;
if ( !Block )
{
v1 = (cocos2d::CCArray **)sub_1800E4AC0(0x10u);
if ( v1 )
{
v2 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);
if ( v2 )
v2 = cocos2d::CCArray::CCArray(v2);
*v1 = v2;
cocos2d::CCArray::init(v2);
v1[1] = nullptr;
}
else
{
v1 = nullptr;
}
Block = (cocos2d::CCPoolManager *)v1;
return (struct cocos2d::CCPoolManager *)v1;
}
return result;
}