//
// cocos2d::CCPoolManager::addObject from 0x1003f6dc0 to 0x1003f6dfa (58 bytes)
//
// 1 xrefs:
// > cocos2d::CCObject::autorelease @ 0x10048aaf4
//
// 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; // rax
m_pCurReleasePool = a1->m_pCurReleasePool;
if ( !m_pCurReleasePool )
{
cocos2d::CCPoolManager::push(a1);
m_pCurReleasePool = a1->m_pCurReleasePool;
}
sub_10071FCD0(m_pCurReleasePool->m_pManagedObjectArray, a2);
++a2->m_uAutoReleaseCount;
cocos2d::CCObject::release(a2);
}