//
// LocalLevelManager::firstLoad from 0x7e8578 to 0x7e85f4 (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x4db50
// > ??> @ 0x1183c58
//
// 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 LocalLevelManager::firstLoad(LocalLevelManager *a1)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x20
cocos2d::CCArray *m_localLevels; // x1
cocos2d::CCObject *v5; // x0
cocos2d::CCArray *v6; // x20
cocos2d::CCArray *m_localLists; // x1
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
v3 = v2;
m_localLevels = a1->m_localLevels;
if ( v2 != m_localLevels )
{
if ( v2 )
{
cocos2d::CCObject::retain(v2);
m_localLevels = a1->m_localLevels;
}
if ( m_localLevels )
cocos2d::CCObject::release(m_localLevels);
a1->m_localLevels = v3;
}
v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v2);
v6 = (cocos2d::CCArray *)v5;
m_localLists = a1->m_localLists;
if ( m_localLists != v5 )
{
if ( v5 )
{
cocos2d::CCObject::retain(v5);
m_localLists = a1->m_localLists;
}
if ( m_localLists )
cocos2d::CCObject::release(m_localLists);
a1->m_localLists = v6;
}
}