//
// AccountReviewPopup::adminDeleteCommentsFinished from 0x1400bc8b0 to 0x1400bc9e4 (308 bytes)
//
// 2 xrefs:
// > ??> @ 0x140722208
// > ??> @ 0x1409138bc
//
// 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:17 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall AccountReviewPopup::adminDeleteCommentsFinished(__int64 a1, int a2)
{
const char *v3; // r8
cocos2d::CCString *v4; // rax
const char *CString; // rax
size_t v6; // r8
__int64 v8; // rdi
__int64 v9; // rsi
__int64 v10; // rcx
__int128 v11; // [rsp+20h] [rbp-28h] BYREF
__int64 v12; // [rsp+30h] [rbp-18h]
__int64 v13; // [rsp+38h] [rbp-10h]
void *v14; // [rsp+50h] [rbp+8h]
if ( !*(_QWORD *)(a1 + 608) || *(_BYTE *)(a1 + 616) )
{
v8 = a1 - 776;
v9 = a1;
if ( a1 == 776 )
v9 = 0;
v10 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v14 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v10 = *(_QWORD *)&qword_14090BFB0;
}
*(_QWORD *)(v10 + 1384) = v9;
GameLevelManager::adminGetAccountReview(v10, *(unsigned int *)(v8 + 840));
return PagedListPopup::loadPage(v8, *(unsigned int *)(a1 - 96));
}
else
{
*(_BYTE *)(a1 + 545) = 1;
v3 = (const char *)&unk_14070D03C;
if ( a2 == 1 )
v3 = &byte_1406ED6E0;
v4 = cocos2d::CCString::createWithFormat("Deleted %i item%s.", a2, v3);
CString = cocos2d::CCString::getCString(v4);
v11 = 0;
v12 = 0;
v13 = 0;
v6 = -1;
do
++v6;
while ( CString[v6] );
sub_14003D230(&v11, CString, v6);
return UploadActionPopup::showSuccessMessage(*(_QWORD *)(a1 + 608), &v11);
}
}