//
// AccountReviewPopup::adminDeleteCommentsFinished from 0xc3fe38 to 0xc3ffa4 (364 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountReviewPopup::adminDeleteCommentsFinished @ 0xc3ffa8
// > ??> @ 0x71788
// > ??> @ 0x14e7988
//
// This function is hookable on this platform (idp: arm, 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 13:04:56 +0000
//
__int64 __fastcall AccountReviewPopup::adminDeleteCommentsFinished(AccountReviewPopup *this, const char *a2)
{
__int64 v3; // x22
char *v4; // x2
cocos2d::CCString *v5; // x0
const char *CString; // x24
size_t v7; // x0
size_t v8; // x20
char *v9; // x3
unsigned __int64 v11; // x0
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
size_t v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v3 = *((_QWORD *)this + 162);
if ( !v3 || *((_BYTE *)this + 1304) )
{
AccountReviewPopup::refreshCard(this);
PagedListPopup::loadPage(this, *((_DWORD *)this + 169));
return _stack_chk_guard;
}
*((_BYTE *)this + 1233) = 1;
if ( (_DWORD)a2 == 1 )
v4 = &byte_11B8890;
else
v4 = "s";
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Deleted %i item%s.",
a2,
v4);
v12 = 0;
CString = (const char *)cocos2d::CCString::getCString(v5);
v13 = 0;
v14 = nullptr;
v7 = strlen(CString);
v8 = v7;
if ( v7 > 0xFFFFFFFFFFFFFFEFLL )
sub_63015C();
if ( v7 > 0x16 )
{
v11 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v12 = v11 | 1;
v9 = (char *)operator new(v11);
v14 = v9;
v13 = v8;
}
else
{
LOBYTE(v12) = 2 * v7;
v9 = (char *)&v12 + 1;
if ( !v7 )
goto LABEL_8;
}
v9 = (char *)memcpy(v9, CString, v8);
LABEL_8:
v9[v8] = 0;
UploadActionPopup::showSuccessMessage(v3, (__int64)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
return _stack_chk_guard;
}