//
// AccountReviewPopup::reviewChoicePicked from 0x734c84 to 0x734f00 (636 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountReviewPopup::reviewChoicePicked @ 0x734f44
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:23 +0000
//
int __fastcall AccountReviewPopup::reviewChoicePicked(int this, int a2, int a3, unsigned __int8 *a4)
{
char **v5; // r4
GameLevelManager *v7; // r0
GameManager *v8; // r0
int v9; // r1
int v10; // r2
int v11; // r2
const char *v12; // r1
__int16 *v13; // r2
int v14; // r3
cocos2d::CCString *v15; // r0
const char *CString; // r8
size_t v17; // r0
const char *v18; // r1
int v19; // r8
size_t v20; // r0
int *v21; // r4
int v22; // r3
const char *v23; // r1
cocos2d::CCString *v24; // r0
const char *v25; // r8
size_t v26; // r0
int v27; // r0
const char *v28; // r1
cocos2d::CCString *v29; // r0
const char *v30; // r8
size_t v31; // r0
int v32; // r0
int v33; // [sp+18h] [bp-28h] BYREF
int v34; // [sp+1Ch] [bp-24h]
char *v35; // [sp+20h] [bp-20h]
char *v36[3]; // [sp+24h] [bp-1Ch] BYREF
int v37; // [sp+30h] [bp-10h] BYREF
int v38; // [sp+34h] [bp-Ch]
int v39; // [sp+38h] [bp-8h]
v5 = (char **)this;
if ( a2 == 2 )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this);
*((_DWORD *)v7 + 209) = v5 + 149;
v8 = (GameManager *)GameLevelManager::sharedState(v7);
this = GameLevelManager::adminCloseCase(v8, v5[157], (const char *)a3, a4);
if ( this )
return PagedListPopup::showLoading((PagedListPopup *)v5, v9, v10);
}
else if ( a2 == 1 && a3 >= 0 )
{
v11 = *(_DWORD *)(this + 904);
if ( a3 < (*(_DWORD *)(this + 908) - v11) >> 2 )
{
switch ( *(_DWORD *)(v11 + 4 * a3) )
{
case 1:
v12 = *(const char **)(this + 948);
if ( v12 == (_BYTE *)&dword_0 + 1 )
v13 = (__int16 *)&unk_B6B226;
else
v13 = &a1i2r3e45s789g[8];
if ( (*(_BYTE *)(this + 632) & 1) != 0 )
v14 = *(_DWORD *)(this + 640);
else
v14 = this + 633;
v15 = (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);
v33 = 0;
v34 = 0;
v35 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v15);
v17 = strlen(CString);
v18 = CString;
v19 = (int)(v5 + 152);
std::string::__init(&v33, v18, v17);
v37 = 0;
v38 = 0;
if ( (v33 & 1) == 0 )
v5 = (char **)((char *)&v33 + 1);
v39 = 0;
if ( (v33 & 1) != 0 )
v5 = (char **)v35;
v20 = strlen((const char *)v5);
std::string::__init(&v37, v5, v20);
v21 = FLAlertLayer::create(
v19,
(cocos2d::CCLabelBMFont *)"Dismiss Reports",
(int)&v37,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Dismiss",
380.0,
0,
0,
1.0);
std::string::~string((int)&v37);
(*(void (__fastcall **)(int *, int))(*v21 + 36))(v21, 5);
(*(void (__fastcall **)(int *))(*v21 + 656))(v21);
goto LABEL_29;
case 2:
return AccountReviewPopup::confirmDeleteSelected((AccountReviewPopup *)this);
case 3:
v22 = *(unsigned __int8 *)(this + 632);
if ( (v22 & 1) != 0 )
v23 = *(const char **)(this + 640);
else
v23 = (const char *)(this + 633);
v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Delete all level, list and SFX comments from %s<"
"/c>?\n"
"Profile posts stay. Cannot be undone.",
v23,
v22 << 31);
v33 = 0;
v34 = 0;
v35 = nullptr;
v25 = (const char *)cocos2d::CCString::getCString(v24);
v26 = strlen(v25);
std::string::__init(&v33, v25, v26);
ReportPopup::reasonIndicesForTextModeration((ReportPopup *)v36);
v37 = 0;
v38 = 0;
v39 = 0;
std::string::__init(&v37, &unk_B6B226, 0);
v27 = AdminActionConfirmPopup::create(
(int)(v5 + 154),
1,
"Delete Comments",
(int)&v33,
(ButtonSprite *)"Delete",
v36,
(unsigned __int8 *)&v37,
1);
(*(void (__fastcall **)(int))(*(_DWORD *)v27 + 656))(v27);
goto LABEL_28;
case 4:
if ( (*(_BYTE *)(this + 632) & 1) != 0 )
v28 = *(const char **)(this + 640);
else
v28 = (const char *)(this + 633);
v29 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Delete all profile posts from %s?\n"
"Level comments stay. Cannot be undone.",
v28);
v33 = 0;
v34 = 0;
v35 = nullptr;
v30 = (const char *)cocos2d::CCString::getCString(v29);
v31 = strlen(v30);
std::string::__init(&v33, v30, v31);
ReportPopup::reasonIndicesForTextModeration((ReportPopup *)v36);
v37 = 0;
v38 = 0;
v39 = 0;
std::string::__init(&v37, &unk_B6B226, 0);
v32 = AdminActionConfirmPopup::create(
(int)(v5 + 154),
2,
"Delete Posts",
(int)&v33,
(ButtonSprite *)"Delete",
v36,
(unsigned __int8 *)&v37,
1);
(*(void (__fastcall **)(int))(*(_DWORD *)v32 + 656))(v32);
LABEL_28:
std::string::~string((int)&v37);
std::__vector_base::~__vector_base(v36);
LABEL_29:
this = std::string::~string((int)&v33);
break;
default:
return this;
}
}
}
return this;
}