//
// GameLevelManager::firstSetup from 0x3c04d6 to 0x3c070a (564 bytes)
//
// 1 xrefs:
// > GameManager::firstLoad @ 0x324340
//
// 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 GameLevelManager::firstSetup(GameLevelManager *a1)
{
cocos2d::CCDictionary *v2; // r0
cocos2d::CCDictionary *v3; // r5
cocos2d::CCDictionary *m_mainLevels; // r0
cocos2d::CCDictionary *v5; // r0
cocos2d::CCDictionary *v6; // r5
cocos2d::CCDictionary *m_downloadedLevels; // r0
cocos2d::CCDictionary *v8; // r0
cocos2d::CCDictionary *v9; // r5
cocos2d::CCDictionary *m_searchFilters; // r0
cocos2d::CCDictionary *v11; // r0
cocos2d::CCDictionary *v12; // r5
cocos2d::CCDictionary *m_ratedLevels; // r0
cocos2d::CCDictionary *v14; // r0
cocos2d::CCDictionary *v15; // r5
cocos2d::CCDictionary *m_ratedDemons; // r0
cocos2d::CCDictionary *v17; // r0
cocos2d::CCDictionary *v18; // r5
cocos2d::CCDictionary *m_reportedLevels; // r0
cocos2d::CCDictionary *v20; // r0
cocos2d::CCDictionary *v21; // r5
cocos2d::CCDictionary *m_likedLevels; // r0
cocos2d::CCDictionary *v23; // r0
cocos2d::CCDictionary *v24; // r5
cocos2d::CCDictionary *m_onlineFolders; // r0
cocos2d::CCDictionary *v26; // r0
cocos2d::CCDictionary *v27; // r5
cocos2d::CCDictionary *m_localLevelsFolders; // r0
cocos2d::CCDictionary *v29; // r0
cocos2d::CCDictionary *v30; // r5
cocos2d::CCDictionary *m_onlineLevels; // r0
cocos2d::CCDictionary *v32; // r0
cocos2d::CCDictionary *v33; // r5
cocos2d::CCDictionary *m_dailyLevels; // r0
cocos2d::CCDictionary *v35; // r0
cocos2d::CCDictionary *v36; // r5
cocos2d::CCDictionary *m_gauntletLevels; // r0
cocos2d::CCDictionary *v38; // r0
cocos2d::CCDictionary *v39; // r5
cocos2d::CCDictionary *m_storedLevelData; // r0
cocos2d::CCDictionary *v41; // r0
cocos2d::CCDictionary *v42; // r5
cocos2d::CCDictionary *m_followedCreators; // r0
cocos2d::CCDictionary *v44; // r0
cocos2d::CCDictionary *v45; // r5
cocos2d::CCDictionary *m_favoriteLists; // r0
v2 = cocos2d::CCDictionary::create();
v3 = v2;
if ( a1->m_mainLevels != v2 )
{
if ( v2 )
cocos2d::CCObject::retain(v2);
m_mainLevels = a1->m_mainLevels;
if ( m_mainLevels )
cocos2d::CCObject::release(m_mainLevels);
a1->m_mainLevels = v3;
}
if ( !a1->m_downloadedLevels )
{
v5 = cocos2d::CCDictionary::create();
v6 = v5;
if ( a1->m_downloadedLevels != v5 )
{
if ( v5 )
cocos2d::CCObject::retain(v5);
m_downloadedLevels = a1->m_downloadedLevels;
if ( m_downloadedLevels )
cocos2d::CCObject::release(m_downloadedLevels);
a1->m_downloadedLevels = v6;
}
}
if ( !a1->m_searchFilters )
{
v8 = cocos2d::CCDictionary::create();
v9 = v8;
if ( a1->m_searchFilters != v8 )
{
if ( v8 )
cocos2d::CCObject::retain(v8);
m_searchFilters = a1->m_searchFilters;
if ( m_searchFilters )
cocos2d::CCObject::release(m_searchFilters);
a1->m_searchFilters = v9;
}
}
if ( !a1->m_ratedLevels )
{
v11 = cocos2d::CCDictionary::create();
v12 = v11;
if ( a1->m_ratedLevels != v11 )
{
if ( v11 )
cocos2d::CCObject::retain(v11);
m_ratedLevels = a1->m_ratedLevels;
if ( m_ratedLevels )
cocos2d::CCObject::release(m_ratedLevels);
a1->m_ratedLevels = v12;
}
}
if ( !a1->m_ratedDemons )
{
v14 = cocos2d::CCDictionary::create();
v15 = v14;
if ( a1->m_ratedDemons != v14 )
{
if ( v14 )
cocos2d::CCObject::retain(v14);
m_ratedDemons = a1->m_ratedDemons;
if ( m_ratedDemons )
cocos2d::CCObject::release(m_ratedDemons);
a1->m_ratedDemons = v15;
}
}
if ( !a1->m_reportedLevels )
{
v17 = cocos2d::CCDictionary::create();
v18 = v17;
if ( a1->m_reportedLevels != v17 )
{
if ( v17 )
cocos2d::CCObject::retain(v17);
m_reportedLevels = a1->m_reportedLevels;
if ( m_reportedLevels )
cocos2d::CCObject::release(m_reportedLevels);
a1->m_reportedLevels = v18;
}
}
if ( !a1->m_likedLevels )
{
v20 = cocos2d::CCDictionary::create();
v21 = v20;
if ( a1->m_likedLevels != v20 )
{
if ( v20 )
cocos2d::CCObject::retain(v20);
m_likedLevels = a1->m_likedLevels;
if ( m_likedLevels )
cocos2d::CCObject::release(m_likedLevels);
a1->m_likedLevels = v21;
}
}
if ( !a1->m_onlineFolders )
{
v23 = cocos2d::CCDictionary::create();
v24 = v23;
if ( a1->m_onlineFolders != v23 )
{
if ( v23 )
cocos2d::CCObject::retain(v23);
m_onlineFolders = a1->m_onlineFolders;
if ( m_onlineFolders )
cocos2d::CCObject::release(m_onlineFolders);
a1->m_onlineFolders = v24;
}
}
if ( !a1->m_localLevelsFolders )
{
v26 = cocos2d::CCDictionary::create();
v27 = v26;
if ( a1->m_localLevelsFolders != v26 )
{
if ( v26 )
cocos2d::CCObject::retain(v26);
m_localLevelsFolders = a1->m_localLevelsFolders;
if ( m_localLevelsFolders )
cocos2d::CCObject::release(m_localLevelsFolders);
a1->m_localLevelsFolders = v27;
}
}
v29 = cocos2d::CCDictionary::create();
v30 = v29;
if ( a1->m_onlineLevels != v29 )
{
if ( v29 )
cocos2d::CCObject::retain(v29);
m_onlineLevels = a1->m_onlineLevels;
if ( m_onlineLevels )
cocos2d::CCObject::release(m_onlineLevels);
a1->m_onlineLevels = v30;
}
v32 = cocos2d::CCDictionary::create();
v33 = v32;
if ( a1->m_dailyLevels != v32 )
{
if ( v32 )
cocos2d::CCObject::retain(v32);
m_dailyLevels = a1->m_dailyLevels;
if ( m_dailyLevels )
cocos2d::CCObject::release(m_dailyLevels);
a1->m_dailyLevels = v33;
}
v35 = cocos2d::CCDictionary::create();
v36 = v35;
if ( a1->m_gauntletLevels != v35 )
{
if ( v35 )
cocos2d::CCObject::retain(v35);
m_gauntletLevels = a1->m_gauntletLevels;
if ( m_gauntletLevels )
cocos2d::CCObject::release(m_gauntletLevels);
a1->m_gauntletLevels = v36;
}
v38 = cocos2d::CCDictionary::create();
v39 = v38;
if ( a1->m_storedLevelData != v38 )
{
if ( v38 )
cocos2d::CCObject::retain(v38);
m_storedLevelData = a1->m_storedLevelData;
if ( m_storedLevelData )
cocos2d::CCObject::release(m_storedLevelData);
a1->m_storedLevelData = v39;
}
v41 = cocos2d::CCDictionary::create();
v42 = v41;
if ( a1->m_followedCreators != v41 )
{
if ( v41 )
cocos2d::CCObject::retain(v41);
m_followedCreators = a1->m_followedCreators;
if ( m_followedCreators )
cocos2d::CCObject::release(m_followedCreators);
a1->m_followedCreators = v42;
}
v44 = cocos2d::CCDictionary::create();
v45 = v44;
if ( a1->m_favoriteLists != v44 )
{
if ( v44 )
cocos2d::CCObject::retain(v44);
m_favoriteLists = a1->m_favoriteLists;
if ( m_favoriteLists )
cocos2d::CCObject::release(m_favoriteLists);
a1->m_favoriteLists = v45;
}
}