//
// GameLevelManager::hasRatedDemon from 0x3c12dc to 0x3c1334 (88 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::updateSideButtons @ 0x3b2bfa
// > GameLevelManager::rateDemon @ 0x3d09dc
//
// 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
//
bool GameLevelManager::hasRatedDemon(GameLevelManager *a1, int a2)
{
cocos2d::CCDictionary *m_ratedDemons; // r6
cocos2d::CCString *v3; // r0
char *CString; // r0
int v5; // r6
bool result; // r0
std::string v7; // [sp+8h] [bp-8h] BYREF
m_ratedDemons = a1->m_ratedDemons;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584((int)&v7, CString);
v5 = cocos2d::CCDictionary::objectForKey(m_ratedDemons, &v7);
sub_774008(&v7);
result = v5;
if ( v5 )
return 1;
return result;
}