//
// GameLevelManager::onReportLevelCompleted from 0x80c0d8 to 0x80c1f4 (284 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85c8ec
// > ??> @ 0x546b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:48 +0000
//
__int64 __fastcall GameLevelManager::onReportLevelCompleted(GameLevelManager *a1, __int64 a2, char *a3)
{
const char *v4; // x3
unsigned int v5; // w22
GameLevelManager *v7; // x0
__int64 v8; // x21
const char *ReportKey; // x0
size_t v10; // x0
char *v12; // [xsp+38h] [xbp+38h]
__int64 v13; // [xsp+40h] [xbp+40h] BYREF
__int64 v14; // [xsp+48h] [xbp+48h]
void *v15; // [xsp+50h] [xbp+50h]
v4 = a3 + 1;
if ( (*a3 & 1) != 0 )
v4 = *((const char **)a3 + 2);
v5 = atoi(v4);
v13 = 3222788;
v14 = 0;
v15 = nullptr;
if ( sub_7FEA60(a2, (__int64)&v13) )
{
v7 = a1;
v8 = *((_QWORD *)a1 + 103);
ReportKey = (const char *)GameLevelManager::getReportKey(v7, (const char *)v5);
v13 = 0;
v12 = (char *)ReportKey;
v14 = 0;
v15 = nullptr;
v10 = strlen(ReportKey);
std::string::__init(&v13, v12, v10);
cocos2d::CCDictionary::removeObjectForKey(v8, &v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
}
return _stack_chk_guard;
}