//
// GameLevelManager::markLevelAsRatedStars from 0x3c1168 to 0x3c11ee (134 bytes)
//
// 1 xrefs:
// > GameLevelManager::rateStars @ 0x3d0458
//
// 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
//
void GameLevelManager::markLevelAsRatedStars(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_ratedLevels; // r8
cocos2d::CCString *m_trueString; // r7
char *RateStarsKey; // r0
char v7; // [sp+8h] [bp-Ch] BYREF
if ( cocos2d::CCDictionary::count(a1->m_ratedLevels) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey((cocos2d::CCDictionary *)&v7);
cocos2d::CCDictionary::removeObjectForKey(a1->m_ratedLevels);
sub_774008(&v7);
}
m_ratedLevels = a1->m_ratedLevels;
m_trueString = a1->m_trueString;
RateStarsKey = (char *)GameLevelManager::getRateStarsKey(a1, a2);
sub_776584((int)&v7, RateStarsKey);
cocos2d::CCDictionary::setObject((int)m_ratedLevels, m_trueString);
sub_774008(&v7);
}