//
// AccountReviewPopup::adminDeleteCommentsFinished from 0x1009a42d0 to 0x1009a4416 (326 bytes)
//
// 2 xrefs:
// > sub_1009A4430 @ 0x1009a443c
// > ??> @ 0x100bd6ca8
//
// 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 12:39:18 +0000
//
void __fastcall AccountReviewPopup::adminDeleteCommentsFinished(__int64 a1, int a2, double a3)
{
__int64 v3; // rbx
__int64 v4; // rax
const char *v5; // rdx
char *v6; // rax
const char *CString; // r15
size_t v8; // rax
size_t v9; // r14
char *v10; // r12
size_t v11; // r13
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
v3 = *(_QWORD *)(a1 + 1296);
if ( !v3 || *(_BYTE *)(a1 + 1304) == 1 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1256) = a1 + 776;
v4 = GameLevelManager::sharedState();
sub_100570C90(v4, *(_DWORD *)(a1 + 840));
sub_10095CDD0(a1, *(_DWORD *)(a1 + 676));
return;
}
*(_BYTE *)(a1 + 1233) = 1;
v5 = "s";
if ( a2 == 1 )
v5 = "";
v6 = sub_10088E820("Deleted %i item%s.", a2, v5);
CString = (const char *)cocos2d::CCString::getCString((__int64)v6);
v8 = strlen(CString);
if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v9 = v8;
if ( v8 >= 0x17 )
{
v11 = 26;
if ( (v8 | 7) != 0x17 )
v11 = (v8 | 7) + 1;
v10 = (char *)operator new(v11);
__p = v10;
__dst[0] = v11 + 1;
__dst[1] = v9;
goto LABEL_13;
}
LOBYTE(__dst[0]) = 2 * v8;
v10 = (char *)__dst + 1;
if ( v8 )
LABEL_13:
memmove(v10, CString, v9);
v10[v9] = 0;
UploadActionPopup::showSuccessMessage(v3, (__int64)__dst, a3);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
}