//
// GameStatsManager::hasCompletedMainLevel from 0x100330aa4 to 0x100330b08 (100 bytes)
//
// 4 xrefs:
// > GameLevelManager::getStarLevelsString @ 0x100097bdc
// > GameLevelManager::getStarLevelsString @ 0x100097d20
// > LevelAreaInnerLayer::init @ 0x100345a0c
// > LevelAreaInnerLayer::init @ 0x100345a24
//
// 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::hasCompletedMainLevel(GameStatsManager *a1, int a2)
{
cocos2d::CCDictionary *m_completedLevels; // x19
__int64 v3; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
m_completedLevels = a1->m_completedLevels;
GameStatsManager::getLevelKey(*(__int64 *)&a2, 0, 0, 0, 0, __p);
v3 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, __p);
if ( v6 < 0 )
operator delete(__p[0]);
return v3 != 0;
}