//
// LocalLevelManager::firstLoad from 0x1005f7d60 to 0x1005f7de1 (129 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097c248
//
// 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 LocalLevelManager::firstLoad(LocalLevelManager *a1)
{
__int64 v1; // rsi
cocos2d::CCObject *v3; // rax
cocos2d::CCArray *m_localLevels; // rdi
cocos2d::CCArray *v5; // r14
cocos2d::CCObject *v6; // rax
cocos2d::CCArray *m_localLists; // rdi
cocos2d::CCArray *v8; // r14
v3 = (cocos2d::CCObject *)sub_10071F9E0(a1, v1);
m_localLevels = a1->m_localLevels;
if ( m_localLevels != v3 )
{
v5 = (cocos2d::CCArray *)v3;
if ( v3 )
{
cocos2d::CCObject::retain(v3);
m_localLevels = a1->m_localLevels;
}
if ( m_localLevels )
cocos2d::CCObject::release(m_localLevels);
a1->m_localLevels = v5;
}
v6 = (cocos2d::CCObject *)sub_10071F9E0(m_localLevels, v1);
m_localLists = a1->m_localLists;
if ( m_localLists != v6 )
{
v8 = (cocos2d::CCArray *)v6;
if ( v6 )
{
cocos2d::CCObject::retain(v6);
m_localLists = a1->m_localLists;
}
if ( m_localLists )
cocos2d::CCObject::release(m_localLists);
a1->m_localLists = v8;
}
}