//
// sub_10048AA20 from 0x10048aa20 to 0x10048aa8d (109 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009424a8
//
// 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 sub_10048AA20(cocos2d::CCObject *__p)
{
cocos2d::CCPoolManager *v2; // rax
__int64 v3; // rdi
__int64 v4; // r14
__p->__vftable = (cocos2d::CCObject_vtbl *)off_100942498;
if ( __p->m_uAutoReleaseCount )
{
v2 = cocos2d::CCPoolManager::sharedPoolManager();
cocos2d::CCPoolManager::removeObject(v2, __p);
}
if ( __p->m_nLuaID )
{
v3 = *(_QWORD *)cocos2d::CCScriptEngineManager::sharedManager();
LABEL_5:
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v3 + 24LL))(v3, __p);
goto LABEL_6;
}
v4 = *(_QWORD *)cocos2d::CCScriptEngineManager::sharedManager();
if ( v4 )
{
v3 = v4;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4) == 2 )
goto LABEL_5;
}
LABEL_6:
operator delete(__p);
}