//
// GameStatsManager::getStarLevelKey from 0x7a1e70 to 0x7a1ee4 (116 bytes)
//
// 5 xrefs:
// > GameStatsManager::hasCompletedStarLevel @ 0x7a2010
// > GameStatsManager::markLevelAsCompletedAndClaimed @ 0x7b5888
// > GameStatsManager::uncompleteLevel @ 0x7b5af4
// > GameStatsManager::completedStarLevel @ 0x7ba4cc
// > ??> @ 0x6d458
//
// 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 *GameStatsManager::getStarLevelKey(GameStatsManager *a1, GJGameLevel *a2)
{
int v2; // w0
_BOOL4 m_gauntletLevel; // w0
int random; // w2
int seed; // w1
cocos2d::CCString *v6; // x0
v2 = a2->m_dailyID.random - a2->m_dailyID.seed;
if ( v2 > 0 )
{
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"dstar_%i",
(const char *)(unsigned int)v2);
}
else
{
m_gauntletLevel = a2->m_gauntletLevel;
random = a2->m_levelID.random;
seed = a2->m_levelID.seed;
if ( m_gauntletLevel )
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"gstar_%i",
(const char *)(unsigned int)(random - seed));
else
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"star_%i",
(const char *)(unsigned int)(random - seed));
}
return cocos2d::CCString::getCString(v6);
}