//
// GameLevelManager::onAdminClearReportedContentCompleted from 0x1402446d0 to 0x14024487b (427 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x14021aeb1
// > ??> @ 0x14091c28c
//
// This function is hookable on this platform (idp: pc, 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 11:28:37 +0000
//
// Hidden C++ exception states: #wind=3
void __fastcall GameLevelManager::onAdminClearReportedContentCompleted(__int64 a1, const void **a2, __int64 a3)
{
_BYTE *v6; // rdx
size_t v7; // r8
__int64 v8; // r8
__int64 v9; // rdx
void *v10; // rcx
unsigned int v11; // r15d
const void *v12; // rcx
unsigned __int64 v13; // rbp
size_t v14; // r8
_QWORD *v15; // rbx
_QWORD *v16; // rbp
const char *v17; // rcx
__int64 v18; // rbx
unsigned int v19; // eax
__int64 v20; // rcx
void *Block[2]; // [rsp+40h] [rbp-58h] BYREF
__int128 v22; // [rsp+50h] [rbp-48h]
v6 = (_BYTE *)a3;
if ( *(_QWORD *)(a3 + 24) > 0xFu )
v6 = *(_BYTE **)a3;
*(_OWORD *)Block = 0;
v22 = 0;
v7 = -1;
do
++v7;
while ( v6[v7] );
sub_14003D230(Block, v6, v7);
cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);
v9 = *((_QWORD *)&v22 + 1);
if ( *((_QWORD *)&v22 + 1) > 0xFu )
{
v10 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v22 + 1) + 1LL) >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v10);
}
v11 = sub_140241F40((const char *)a3, v9, v8);
*(_OWORD *)Block = 0;
*(_QWORD *)&v22 = 2;
*((_QWORD *)&v22 + 1) = 15;
strcpy((char *)Block, "-1");
v12 = a2;
if ( (unsigned __int64)a2[3] > 0xF )
v12 = *a2;
v13 = (unsigned __int64)a2[2];
v14 = v13;
if ( v13 > 2 )
v14 = 2;
if ( !memcmp(v12, Block, v14) && v13 == 2 )
{
v20 = *(_QWORD *)(a1 + 1384);
if ( v20 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 280LL))(v20, v11);
}
else
{
v15 = *(_QWORD **)(a1 + 1384);
v16 = v15;
if ( v15 )
{
v17 = (const char *)a2;
if ( (unsigned __int64)a2[3] > 0xF )
v17 = (const char *)*a2;
v18 = *v15;
v19 = atoi(v17);
(*(void (__fastcall **)(_QWORD *, _QWORD, _QWORD))(v18 + 272))(v16, v11, v19);
}
}
sub_14003D310((__int64)a2);
sub_14003D310(a3);
}