//
// cocos2d::CCPoolManager::push from 0x1800078b0 to 0x180007937 (135 bytes)
//
// 5 xrefs:
// > cocos2d::CCPoolManager::addObject @ 0x180007697
// > cocos2d::CCPoolManager::getCurReleasePool @ 0x1800077c0
// > cocos2d::CCDirector::init @ 0x1800c221a
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7af8
//
// 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=3
void __fastcall cocos2d::CCPoolManager::push(cocos2d::CCPoolManager *this)
{
cocos2d::CCObject *v2; // rax
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCArray *v4; // rax
v2 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);
v3 = v2;
if ( v2 )
{
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v3 = &cocos2d::CCAutoreleasePool::`vftable';
v4 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u);
if ( v4 )
v4 = cocos2d::CCArray::CCArray(v4);
*((_QWORD *)v3 + 7) = v4;
cocos2d::CCArray::init(v4);
}
else
{
v3 = nullptr;
}
*((_QWORD *)this + 1) = v3;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)this, v3);
cocos2d::CCObject::release(v3);
}