//
// cocos2d::CCPoolManager::addObject from 0x1001b0228 to 0x1001b0274 (76 bytes)
//
// 1 xrefs:
// > cocos2d::CCObject::autorelease @ 0x1000849c8
//
// 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
//
void __fastcall cocos2d::CCPoolManager::addObject(cocos2d::CCPoolManager *a1, cocos2d::CCObject *a2)
{
cocos2d::CCAutoreleasePool *m_pCurReleasePool; // x8
m_pCurReleasePool = a1->m_pCurReleasePool;
if ( !m_pCurReleasePool )
{
cocos2d::CCPoolManager::push(a1);
m_pCurReleasePool = a1->m_pCurReleasePool;
}
sub_10024A2D0(m_pCurReleasePool->m_pManagedObjectArray, a2);
++a2->m_uAutoReleaseCount;
cocos2d::CCObject::release(a2);
}