//
// GameStatsManager::hasCompletedGauntletLevel from 0x10006d8d0 to 0x10006d92e (94 bytes)
//
// 2 xrefs:
// > GauntletLayer::setupGauntlet @ 0x10039348e
// > GJMapPack::completedMaps @ 0x10055fe02
//
// 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
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall GameStatsManager::hasCompletedGauntletLevel(GameStatsManager *a1, int a2)
{
double v2; // xmm0_8
cocos2d::CCDictionary *m_completedLevels; // rbx
__int64 v4; // rbx
size_t v6[5]; // [rsp+8h] [rbp-28h] BYREF
m_completedLevels = a1->m_completedLevels;
GameStatsManager::getLevelKey(v6, v2, *(__int64 *)&a2, a2, 0, 0, 1, 0);
v4 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, v6);
if ( (v6[0] & 1) != 0 )
operator delete((void *)v6[2]);
return v4 != 0;
}