//
// GameStatsManager::hasCompletedGauntletLevel from 0x4198f0 to 0x41994a (90 bytes)
//
// 2 xrefs:
// > GJMapPack::completedMaps @ 0x3ca486
// > GauntletLayer::setupGauntlet @ 0x4da7d0
//
// 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 GameStatsManager::hasCompletedGauntletLevel(GameStatsManager *a1, int a2)
{
cocos2d::CCDictionary *m_completedLevels; // r7
int v3; // r6
bool result; // r0
std::string v5; // [sp+10h] [bp-Ch] BYREF
m_completedLevels = a1->m_completedLevels;
GameStatsManager::getLevelKey((GameStatsManager *)&v5, (int)a1, a2, 0, 0, 1, 0);
v3 = cocos2d::CCDictionary::objectForKey(m_completedLevels, &v5);
sub_774008(&v5);
result = v3;
if ( v3 )
return 1;
return result;
}