//
// GameLevelManager::hasDownloadedLevel from 0x3c1034 to 0x3c1084 (80 bytes)
//
// 2 xrefs:
// > GameLevelManager::hasDownloadedList @ 0x3c1090
// > GameLevelManager::downloadLevel @ 0x3d0078
//
// 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
//
bool GameLevelManager::hasDownloadedLevel(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_downloadedLevels; // r6
char *LevelKey; // r0
int v4; // r6
bool result; // r0
std::string v6; // [sp+8h] [bp-8h] BYREF
m_downloadedLevels = a1->m_downloadedLevels;
LevelKey = (char *)GameLevelManager::getLevelKey(a1, a2);
sub_776584((int)&v6, LevelKey);
v4 = cocos2d::CCDictionary::objectForKey(m_downloadedLevels, &v6);
sub_774008(&v6);
result = v4;
if ( v4 )
return 1;
return result;
}