//
// GameStatsManager::hasCompletedDemonLevel from 0x40c97c to 0x40c9cc (80 bytes)
//
// 1 xrefs:
// > GameStatsManager::completedDemonLevel @ 0x41bc00
//
// 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::hasCompletedDemonLevel(GameStatsManager *a1, GJGameLevel *a2)
{
cocos2d::CCDictionary *m_completedLevels; // r6
char *DemonLevelKey; // r0
int v4; // r6
bool result; // r0
std::string v6; // [sp+8h] [bp-8h] BYREF
m_completedLevels = a1->m_completedLevels;
DemonLevelKey = (char *)GameStatsManager::getDemonLevelKey(a1, a2);
sub_776584((int)&v6, DemonLevelKey);
v4 = cocos2d::CCDictionary::objectForKey(m_completedLevels, &v6);
sub_774008(&v6);
result = v4;
if ( v4 )
return 1;
return result;
}