//
// GameLevelManager::markLevelAsRatedDemon from 0x3c1248 to 0x3c12d2 (138 bytes)
//
// 1 xrefs:
// > GameLevelManager::rateDemon @ 0x3d09ea
//
// 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::markLevelAsRatedDemon(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_ratedDemons; // r7
cocos2d::CCString *m_trueString; // r6
cocos2d::CCString *v6; // r0
char *CString; // r0
char v8; // [sp+8h] [bp-8h] BYREF
if ( cocos2d::CCDictionary::count(a1->m_ratedDemons) >= 0x3E8 )
{
cocos2d::CCDictionary::getFirstKey((cocos2d::CCDictionary *)&v8);
cocos2d::CCDictionary::removeObjectForKey(a1->m_ratedDemons);
sub_774008(&v8);
}
m_ratedDemons = a1->m_ratedDemons;
m_trueString = a1->m_trueString;
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)&v8, CString);
cocos2d::CCDictionary::setObject((int)m_ratedDemons, m_trueString);
sub_774008(&v8);
}