//
// AccountReviewPopup::adminClearReportsFinished from 0x1400baab0 to 0x1400bad07 (599 bytes)
//
// 2 xrefs:
// > ??> @ 0x140722318
// > ??> @ 0x1409137f0
//
// 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:26:16 +0000
//
// Hidden C++ exception states: #wind=4
void __fastcall AccountReviewPopup::adminClearReportsFinished(__int64 a1, int a2, int a3)
{
__int64 v4; // rbx
__int64 v5; // rdi
__int64 v6; // rcx
const char *v7; // r9
cocos2d::CCString *v8; // rax
const char *CString; // rax
size_t v10; // r8
__int64 v11; // rax
void **v12; // xmm0_8
__m128i v13; // xmm1
void **v14; // rcx
void *v15; // rcx
void *v16; // rcx
__int64 v17; // rcx
void *v18; // [rsp+30h] [rbp-68h]
void *Block[2]; // [rsp+38h] [rbp-60h] BYREF
__m128i v20; // [rsp+48h] [rbp-50h]
void *v21[2]; // [rsp+58h] [rbp-40h] BYREF
__int64 v22; // [rsp+68h] [rbp-30h]
unsigned __int64 v23; // [rsp+70h] [rbp-28h]
v4 = a1;
if ( a2 == *(_DWORD *)(a1 + 64) )
{
v5 = a1 - 776;
v6 = *(_QWORD *)(a1 - 776 + 696);
if ( v6 )
LoadingCircle::fadeAndRemove(v6);
if ( a3 > 0 )
*(_BYTE *)(v4 + 560) = 1;
v7 = (const char *)&unk_14070D03C;
if ( a3 == 1 )
v7 = &byte_1406ED6E0;
v8 = cocos2d::CCString::createWithFormat("%i %s%s", a3, "item", v7);
CString = cocos2d::CCString::getCString(v8);
*(_OWORD *)v21 = 0;
v22 = 0;
v23 = 0;
v10 = -1;
do
++v10;
while ( CString[v10] );
sub_14003D230(v21, CString, v10);
v11 = sub_140059D70(v21, 0, "Dismissed ", 0xAu);
*(_OWORD *)Block = *(_OWORD *)v11;
v12 = (void **)Block[0];
v20 = *(__m128i *)(v11 + 16);
v13 = v20;
*(_QWORD *)(v11 + 16) = 0;
*(_QWORD *)(v11 + 24) = 15;
*(_BYTE *)v11 = 0;
v14 = Block;
if ( _mm_srli_si128(v13, 8).m128i_u64[0] > 0xF )
v14 = v12;
sub_1400AC330(v14);
if ( v20.m128i_i64[1] > 0xFuLL )
{
v15 = Block[0];
if ( (unsigned __int64)(v20.m128i_i64[1] + 1) >= 0x1000 )
{
v15 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
if ( v23 > 0xF )
{
v16 = v21[0];
if ( v23 + 1 >= 0x1000 )
{
v16 = *((void **)v21[0] - 1);
if ( (unsigned __int64)((char *)v21[0] - (char *)v16 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v16);
}
v22 = 0;
v23 = 15;
LOBYTE(v21[0]) = 0;
if ( !*(_DWORD *)(v4 + 548) )
PagedListPopup::loadPage(v5, 0);
if ( !v5 )
v4 = 0;
v17 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v18 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v18);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v17 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v17 + 1384) = v4;
GameLevelManager::adminGetAccountReview(v17, *(unsigned int *)(v5 + 840));
}
}