//
// AccountReviewPopup::reviewChoicePicked from 0xc426d8 to 0xc42b24 (1100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AccountReviewPopup::reviewChoicePicked @ 0xc42b2c
// > ??> @ 0x7dbd8
// > ??> @ 0x14e7900
//
// 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:58 +0000
//
__int64 __fastcall AccountReviewPopup::reviewChoicePicked(AccountReviewPopup *this, int a2, signed int a3, char *a4)
{
__int64 v5; // x1
const char *v6; // x1
cocos2d::CCString *v7; // x0
size_t v8; // x0
ReportPopup *v9; // x0
__int64 v10; // x0
const char *v12; // x1
char *v13; // x2
char *v14; // x3
char *v15; // x20
char *v16; // x22
cocos2d::CCString *v17; // x0
const char *CString; // x0
size_t v19; // x0
size_t v20; // x0
__int64 v21; // x20
const char *v22; // x1
cocos2d::CCString *v23; // x0
size_t v24; // x0
ReportPopup *v25; // x0
__int64 v26; // x0
GameLevelManager *v27; // x0
cocos2d::CCObject *v28; // x0
char *v30; // [xsp+48h] [xbp+48h]
char *v31; // [xsp+48h] [xbp+48h]
char *v32; // [xsp+48h] [xbp+48h]
__int64 v34; // [xsp+50h] [xbp+50h] BYREF
__int64 v35; // [xsp+58h] [xbp+58h]
void *v36; // [xsp+60h] [xbp+60h]
void *v37; // [xsp+68h] [xbp+68h] BYREF
char *v38; // [xsp+70h] [xbp+70h]
__int64 v39; // [xsp+80h] [xbp+80h] BYREF
__int64 v40; // [xsp+88h] [xbp+88h]
void *v41; // [xsp+90h] [xbp+90h]
if ( a2 == 2 )
{
v27 = (GameLevelManager *)GameLevelManager::sharedState(_stack_chk_guard);
*((_QWORD *)v27 + 157) = (char *)this + 776;
v28 = (cocos2d::CCObject *)GameLevelManager::sharedState(v27);
if ( (unsigned __int8)GameLevelManager::adminCloseCase(v28, (const char *)*((unsigned int *)this + 210), a3, a4) )
PagedListPopup::showLoading(this);
}
else if ( a2 == 1 && (a3 & 0x80000000) == 0 )
{
v5 = *((_QWORD *)this + 159);
if ( a3 < (int)((*((_QWORD *)this + 160) - v5) >> 2) )
{
switch ( *(_DWORD *)(v5 + 4LL * a3) )
{
case 1:
v12 = *((const char **)this + 170);
if ( (_DWORD)v12 == 1 )
v13 = &byte_11B8890;
else
v13 = "s";
v14 = (char *)this + 849;
if ( (*((_BYTE *)this + 848) & 1) != 0 )
v14 = *((char **)this + 108);
v15 = (char *)this + 800;
v16 = (char *)&v34 + 1;
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Dismiss the reports on %i selected item%s by %s<"
"/c>?\n"
"The reports are removed, the content stays. Cannot be undone.",
v12,
v13,
v14);
CString = (const char *)cocos2d::CCString::getCString(v17);
v34 = 0;
v31 = (char *)CString;
v35 = 0;
v36 = nullptr;
v19 = strlen(CString);
std::string::__init(&v34, v31, v19);
if ( (v34 & 1) != 0 )
v16 = (char *)v36;
v39 = 0;
v40 = 0;
v41 = nullptr;
v20 = strlen(v16);
std::string::__init(&v39, v16, v20);
v21 = FLAlertLayer::create(
(__int64)v15,
(cocos2d::CCLabelBMFont *)"Dismiss Reports",
(char *)&v39,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Dismiss",
0,
380.0,
0.0,
1.0);
if ( (v39 & 1) != 0 )
operator delete(v41);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 72LL))(v21, 5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v21 + 1312LL))(v21);
goto LABEL_15;
case 2:
AccountReviewPopup::confirmDeleteSelected(this);
return _stack_chk_guard;
case 3:
v6 = (char *)this + 849;
if ( (*((_BYTE *)this + 848) & 1) != 0 )
v6 = *((const char **)this + 108);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Delete all level, list and SFX comments from %s"
"c>?\n"
"Profile posts stay. Cannot be undone.",
v6);
v34 = 0;
v30 = (char *)cocos2d::CCString::getCString(v7);
v35 = 0;
v36 = nullptr;
v8 = strlen(v30);
v9 = (ReportPopup *)std::string::__init(&v34, v30, v8);
ReportPopup::reasonIndicesForTextModeration((__int64 *)&v37, v9);
v39 = 0;
v40 = 0;
v41 = nullptr;
std::string::__init(&v39, &byte_11B8890, 0);
v10 = AdminActionConfirmPopup::create(
(__int64)this + 816,
1,
"Delete Comments",
(char *)&v34,
(ButtonSprite *)"Delete",
(__int64)&v37,
(__int64)&v39,
1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
goto LABEL_9;
case 4:
v22 = (char *)this + 849;
if ( (*((_BYTE *)this + 848) & 1) != 0 )
v22 = *((const char **)this + 108);
v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Delete all profile posts from %s?\n"
"Level comments stay. Cannot be undone.",
v22);
v34 = 0;
v32 = (char *)cocos2d::CCString::getCString(v23);
v35 = 0;
v36 = nullptr;
v24 = strlen(v32);
v25 = (ReportPopup *)std::string::__init(&v34, v32, v24);
ReportPopup::reasonIndicesForTextModeration((__int64 *)&v37, v25);
v39 = 0;
v40 = 0;
v41 = nullptr;
std::string::__init(&v39, &byte_11B8890, 0);
v26 = AdminActionConfirmPopup::create(
(__int64)this + 816,
2,
"Delete Posts",
(char *)&v34,
(ButtonSprite *)"Delete",
(__int64)&v37,
(__int64)&v39,
1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v26 + 1312LL))(v26);
LABEL_9:
if ( (v39 & 1) != 0 )
operator delete(v41);
if ( v37 )
{
if ( v37 != v38 )
v38 += 4 * ~((unsigned __int64)(v38 - 4 - (_BYTE *)v37) >> 2);
operator delete(v37);
}
LABEL_15:
if ( (v34 & 1) != 0 )
operator delete(v36);
break;
default:
return _stack_chk_guard;
}
}
}
return _stack_chk_guard;
}