//
// GameLevelManager::onAdminClearReportedContentCompleted from 0x4b12d4 to 0x4b13a8 (212 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4db4c4
//
// 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:03 +0000
//
int __fastcall GameLevelManager::onAdminClearReportedContentCompleted(int a1, int a2, int a3, int a4)
{
cocos2d::CCDictionary *v6; // r10
char v8; // r2
const char *v9; // r8
size_t v10; // r0
int v11; // r0
int v12; // r6
_BOOL4 v13; // r8
int result; // r0
int v15; // r4
int (__fastcall *v16)(int, int, int); // r8
const char *v17; // r0
int v18; // r0
int v19; // [sp+0h] [bp-10h] BYREF
int v20; // [sp+4h] [bp-Ch]
int v21; // [sp+8h] [bp-8h]
int v22; // [sp+Ch] [bp-4h]
v19 = a1;
v20 = a2;
v21 = a3;
v22 = a4;
v6 = *(cocos2d::CCDictionary **)(a1 + 748);
v19 = 0;
v20 = 0;
v8 = *(_BYTE *)a3;
v21 = 0;
if ( (v8 & 1) != 0 )
v9 = *(const char **)(a3 + 8);
else
v9 = (const char *)(a3 + 1);
v10 = strlen(v9);
std::string::__init(&v19, v9, v10);
cocos2d::CCDictionary::removeObjectForKey(v6);
std::string::~string((int)&v19);
v11 = sub_4ACB58(a3);
v19 = 0;
v20 = 0;
v21 = 0;
v12 = v11;
std::string::__init(&v19, "-1", 2u);
v13 = sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v19);
result = std::string::~string((int)&v19);
v15 = *(_DWORD *)(a1 + 836);
if ( v13 )
{
if ( v15 )
return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)v15 + 140))(*(_DWORD *)(a1 + 836), v12);
}
else if ( v15 )
{
v16 = *(int (__fastcall **)(int, int, int))(*(_DWORD *)v15 + 136);
if ( (*(_BYTE *)a2 & 1) != 0 )
v17 = *(const char **)(a2 + 8);
else
v17 = (const char *)(a2 + 1);
v18 = atoi(v17);
return v16(v15, v12, v18);
}
return result;
}