//
// AccountReviewPopup::FLAlert_Clicked from 0x73aae8 to 0x73ad92 (682 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AccountReviewPopup::FLAlert_Clicked @ 0x73adb8
//
// 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:29 +0000
//
AccountReviewPopup *__fastcall AccountReviewPopup::FLAlert_Clicked(AccountReviewPopup *this, FLAlertLayer *a2, int a3)
{
AccountReviewPopup *v3; // r4
_DWORD *v5; // r7
int v6; // r9
int v7; // r3
int *i; // r5
_DWORD *v9; // r7
int v10; // r9
_BOOL4 v11; // r7
int v12; // r3
int *m; // r5
char *v14; // r0
int **v15; // r0
_DWORD *v16; // r7
const char *v17; // r5
int *j; // r7
int v19; // r1
_BOOL4 v20; // r0
int v21; // r3
int *k; // r7
int v23; // r3
const char *v24; // r2
_DWORD *v25; // r0
int v26; // r1
cocos2d::CCDirector *v27; // r2
cocos2d::CCDirector *v28; // r0
char v29[8]; // [sp+4h] [bp-40h] BYREF
int *v30; // [sp+Ch] [bp-38h] BYREF
int v31[2]; // [sp+10h] [bp-34h] BYREF
int *v32; // [sp+18h] [bp-2Ch] BYREF
int v33; // [sp+1Ch] [bp-28h] BYREF
int v34; // [sp+20h] [bp-24h]
int v35[3]; // [sp+24h] [bp-20h] BYREF
_DWORD v36[2]; // [sp+30h] [bp-14h] BYREF
cocos2d::CCDirector *v37; // [sp+38h] [bp-Ch]
v3 = this;
if ( a3 )
{
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 5 )
return (AccountReviewPopup *)AccountReviewPopup::clearSelectedReports(v3);
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 6 )
{
v5 = *((_DWORD **)v3 + 235);
v6 = *((_DWORD *)v3 + 222);
*((_DWORD *)v3 + 222) = -1;
v33 = 0;
v34 = 0;
v32 = &v33;
while ( v5 != (_DWORD *)((char *)v3 + 944) )
{
std::__tree::__emplace_hint_unique_key_args(&v32, &v33, v5 + 4, v5 + 4);
v5 = std::__tree_next *>(v5);
}
AccountReviewPopup::deleteFilterEntry(v3, v6);
AccountReviewPopup::rebuildRows(v3);
for ( i = v32; i != &v33; i = std::__tree_next *>(i) )
AccountReviewPopup::applySelected((int)v3, i[4], 1, v7);
AccountReviewPopup::updateSelectedLabel((const char **)v3);
sub_732BD8((cocos2d::CCDirector *)"Deleted 1 comment");
}
else
{
if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) != 3 )
{
this = (AccountReviewPopup *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( this != (AccountReviewPopup *)&byte_4 )
return this;
v16 = *((_DWORD **)v3 + 235);
v31[0] = 0;
v31[1] = 0;
v30 = v31;
while ( v16 != (_DWORD *)((char *)v3 + 944) )
{
std::__tree::__emplace_hint_unique_key_args(&v30, v31, v16 + 4, v16 + 4);
v16 = std::__tree_next *>(v16);
}
v17 = nullptr;
v33 = 0;
v34 = 0;
v32 = &v33;
for ( j = v30; j != v31; j = std::__tree_next *>(j) )
{
v19 = j[4];
if ( *((_DWORD *)v3 + 218) == 1 )
v20 = AccountReviewPopup::deleteFilterEntry(v3, v19);
else
v20 = AccountReviewPopup::deleteEntry(v3, v19);
if ( v20 )
++v17;
else
std::__tree::__emplace_unique_key_args((int)v29, (int)&v32, j + 4, j + 4);
}
AccountReviewPopup::rebuildRows(v3);
for ( k = v32; k != &v33; k = std::__tree_next *>(k) )
AccountReviewPopup::applySelected((int)v3, k[4], 1, v21);
AccountReviewPopup::updateSelectedLabel((const char **)v3);
v23 = *((_DWORD *)v3 + 218);
if ( v23 == 1 )
v24 = "comment";
else
v24 = "item";
sub_7328F4(v35, v17, (int)v24, v23);
v25 = std::string::insert(v35, 0, "Deleted ");
v26 = v25[1];
v27 = (cocos2d::CCDirector *)v25[2];
v36[0] = *v25;
v36[1] = v26;
v37 = v27;
*v25 = 0;
v25[1] = 0;
v25[2] = 0;
if ( (v36[0] & 1) != 0 )
v28 = v37;
else
v28 = (cocos2d::CCDirector *)((char *)v36 + 1);
sub_732BD8(v28);
std::string::~string((int)v36);
std::string::~string((int)v35);
std::__tree::~__tree((int)&v32);
v15 = &v30;
return (AccountReviewPopup *)std::__tree::~__tree((int)v15);
}
v9 = *((_DWORD **)v3 + 235);
v10 = *((_DWORD *)v3 + 222);
*((_DWORD *)v3 + 222) = -1;
v33 = 0;
v34 = 0;
v32 = &v33;
while ( v9 != (_DWORD *)((char *)v3 + 944) )
{
std::__tree::__emplace_hint_unique_key_args(&v32, &v33, v9 + 4, v9 + 4);
v9 = std::__tree_next *>(v9);
}
v11 = AccountReviewPopup::deleteEntry(v3, v10);
AccountReviewPopup::rebuildRows(v3);
for ( m = v32; m != &v33; m = std::__tree_next *>(m) )
AccountReviewPopup::applySelected((int)v3, m[4], 1, v12);
AccountReviewPopup::updateSelectedLabel((const char **)v3);
if ( v11 )
v14 = "Deleted 1 item";
else
v14 = "Still deleting";
sub_732BD8((cocos2d::CCDirector *)v14);
}
v15 = &v32;
return (AccountReviewPopup *)std::__tree::~__tree((int)v15);
}
return this;
}