//
// GameStatsManager::getDemonLevelKey from 0x10006d660 to 0x10006d6b3 (83 bytes)
//
// 0 xrefs:
//
// 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
//
const char *__fastcall GameStatsManager::getDemonLevelKey(GameStatsManager *a1, GJGameLevel *a2)
{
char *v2; // rdi
cocos2d::CCString *v3; // rax
char savedregs; // [rsp+0h] [rbp+0h]
if ( a2->m_dailyID.random <= a2->m_dailyID.seed )
{
if ( a2->m_gauntletLevel )
v2 = "gdemon_%i";
else
v2 = "demon_%i";
}
else
{
v2 = "ddemon_%i";
}
v3 = (cocos2d::CCString *)sub_1007AB580(v2, savedregs);
return cocos2d::CCString::getCString(v3);
}