//
// GameLevelManager::onSetLevelStarsCompleted from 0x4c2148 to 0x4c2202 (186 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4da79a
//
// 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:24 +0000
//
int (***__fastcall GameLevelManager::onSetLevelStarsCompleted(
GameLevelManager *a1,
unsigned __int8 *a2,
char *a3))(void)
{
cocos2d::CCDictionary *v5; // r9
char v6; // r1
const char *v7; // r4
size_t v8; // r0
_BOOL4 v9; // r8
int (***result)(void); // r0
int (*v11)(void); // r3
int v12; // [sp+0h] [bp-14h] BYREF
int v13; // [sp+4h] [bp-10h]
int v14; // [sp+8h] [bp-Ch]
v5 = *((cocos2d::CCDictionary **)a1 + 187);
v12 = 0;
v6 = *a3;
v13 = 0;
v14 = 0;
if ( (v6 & 1) != 0 )
v7 = *((const char **)a3 + 2);
else
v7 = a3 + 1;
v8 = strlen(v7);
std::string::__init(&v12, v7, v8);
cocos2d::CCDictionary::removeObjectForKey(v5);
std::string::~string((int)&v12);
GameLevelManager::getSplitIntFromKey(a1, v7, 1u);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "-1", 2u);
v9 = sub_4A9CC4(a2, (unsigned __int8 *)&v12);
std::string::~string((int)&v12);
result = *((int (****)(void))a1 + 222);
if ( v9 )
{
if ( !result )
return result;
v11 = (*result)[1];
}
else
{
if ( !result )
return result;
v11 = **result;
}
return (int (***)(void))v11();
}