//
// GameLevelManager::markLevelAsRatedDemon from 0x4aec50 to 0x4aece8 (152 bytes)
//
// 1 xrefs:
// > GameLevelManager::rateDemon @ 0x4b6d34
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:50:01 +0000
//
int __fastcall GameLevelManager::markLevelAsRatedDemon(cocos2d::CCDictionary **this, const char *a2, int a3, int a4)
{
int v6; // r7
cocos2d::CCObject *v7; // r5
cocos2d::CCString *v8; // r0
const char *CString; // r0
const char *v10; // r8
size_t v11; // r0
cocos2d::CCDictionary **v13; // [sp+0h] [bp-10h] BYREF
const char *v14; // [sp+4h] [bp-Ch]
int v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v13 = this;
v14 = a2;
v15 = a3;
v16 = a4;
if ( cocos2d::CCDictionary::count(*(this + 143)) >= 0x3E8u )
{
cocos2d::CCDictionary::getFirstKey((cocos2d::CCDictionary *)&v13);
cocos2d::CCDictionary::removeObjectForKey(*(this + 143));
std::string::~string((int)&v13);
}
v6 = (int)*(this + 143);
v7 = *(this + 242);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2);
CString = (const char *)cocos2d::CCString::getCString(v8);
v13 = nullptr;
v14 = nullptr;
v15 = 0;
v10 = CString;
v11 = strlen(CString);
std::string::__init((int *)&v13, v10, v11);
cocos2d::CCDictionary::setObject(v6, v7);
return std::string::~string((int)&v13);
}