//
// GameLevelManager::onReportLevelCompleted from 0x4b11e8 to 0x4b128a (162 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4da9da
//
// 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:02 +0000
//
int __fastcall GameLevelManager::onReportLevelCompleted(GameLevelManager *a1, unsigned __int8 *a2, int a3)
{
const char *v5; // r0
const char *v6; // r9
_BOOL4 v7; // r8
int result; // r0
cocos2d::CCDictionary *v9; // r8
const char *ReportKey; // r0
const char *v11; // r7
size_t v12; // r0
int v13; // [sp+0h] [bp-14h] BYREF
int v14; // [sp+4h] [bp-10h]
int v15; // [sp+8h] [bp-Ch]
if ( (*(_BYTE *)a3 & 1) != 0 )
v5 = *(const char **)(a3 + 8);
else
v5 = (const char *)(a3 + 1);
v13 = 0;
v14 = 0;
v15 = 0;
v6 = (const char *)atoi(v5);
std::string::__init(&v13, "-1", 2u);
v7 = sub_4A9CC4(a2, (unsigned __int8 *)&v13);
result = std::string::~string((int)&v13);
if ( v7 )
{
v9 = *((cocos2d::CCDictionary **)a1 + 144);
ReportKey = (const char *)GameLevelManager::getReportKey(a1, v6);
v13 = 0;
v14 = 0;
v15 = 0;
v11 = ReportKey;
v12 = strlen(ReportKey);
std::string::__init(&v13, v11, v12);
cocos2d::CCDictionary::removeObjectForKey(v9);
return std::string::~string((int)&v13);
}
return result;
}