//
// cocos2d::CCPoolManager::push from 0x180007760 to 0x1800077e7 (135 bytes)
//
// 5 xrefs:
// > cocos2d::CCPoolManager::addObject @ 0x180007547
// > cocos2d::CCPoolManager::getCurReleasePool @ 0x180007670
// > cocos2d::CCDirector::init @ 0x1800bea42
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adad4
//
// 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=3
void __fastcall cocos2d::CCPoolManager::push(cocos2d::CCPoolManager *this)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCAutoreleasePool *v3; // rbx
cocos2d::CCArray *v4; // rax
v2 = (cocos2d::CCObject *)operator new(0x40u);
v3 = (cocos2d::CCAutoreleasePool *)v2;
if ( v2 )
{
cocos2d::CCObject::CCObject(v2);
v3->__vftable = (cocos2d::CCAutoreleasePool_vtbl *)&cocos2d::CCAutoreleasePool::`vftable';
v4 = (cocos2d::CCArray *)operator new(0x40u);
if ( v4 )
v4 = cocos2d::CCArray::CCArray(v4);
v3->m_pManagedObjectArray = v4;
cocos2d::CCArray::init(v4);
}
else
{
v3 = nullptr;
}
this->m_pCurReleasePool = v3;
cocos2d::CCArray::addObject(this->m_pReleasePoolStack, v3);
cocos2d::CCObject::release(v3);
}