//
// GameLevelManager::markLevelAsRatedStars from 0x1000a1094 to 0x1000a1144 (176 bytes)
//
// 1 xrefs:
// > GameLevelManager::rateStars @ 0x1000a0ba0
//
// 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 __fastcall GameLevelManager::markLevelAsRatedStars(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_ratedLevels; // x21
cocos2d::CCString *m_trueString; // x20
cocos2d::CCString *v6; // x0
char *CString; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
if ( cocos2d::CCDictionary::count(a1->m_ratedLevels) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey(__p, a1->m_ratedLevels);
cocos2d::CCDictionary::removeObjectForKey_1((int)a1->m_ratedLevels, (char *)__p);
if ( v9 < 0 )
operator delete(__p[0]);
}
m_ratedLevels = a1->m_ratedLevels;
m_trueString = a1->m_trueString;
v6 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(__p, CString);
cocos2d::CCDictionary::setObject_1(m_ratedLevels, m_trueString, __p);
if ( v9 < 0 )
operator delete(__p[0]);
}