//
// GameLevelManager::markLevelAsDownloaded from 0x3c0fac to 0x3c1030 (132 bytes)
//
// 2 xrefs:
// > GameLevelManager::markListAsDownloaded @ 0x3c108a
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x3c77bc
//
// 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::markLevelAsDownloaded(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_downloadedLevels; // r8
cocos2d::CCString *m_trueString; // r7
char *LevelKey; // r0
char v7; // [sp+8h] [bp-Ch] BYREF
if ( cocos2d::CCDictionary::count(a1->m_downloadedLevels) > 0x63 )
{
cocos2d::CCDictionary::getFirstKey((cocos2d::CCDictionary *)&v7);
cocos2d::CCDictionary::removeObjectForKey(a1->m_downloadedLevels);
sub_774008(&v7);
}
m_downloadedLevels = a1->m_downloadedLevels;
m_trueString = a1->m_trueString;
LevelKey = (char *)GameLevelManager::getLevelKey(a1, a2);
sub_776584((int)&v7, LevelKey);
cocos2d::CCDictionary::setObject((int)m_downloadedLevels, m_trueString);
sub_774008(&v7);
}