//
// AccountReviewPopup::reviewChoicePicked from 0x10054a3d8 to 0x10054a6cc (756 bytes)
//
// 2 xrefs:
// > sub_10054A73C @ 0x10054a740
// > ??> @ 0x1009a8bf0
//
// 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 11:07:49 +0000
//
void __fastcall AccountReviewPopup::reviewChoicePicked(__int64 a1, int a2, unsigned int a3, __int64 a4)
{
__int64 v7; // x0
__int64 v8; // x8
int v9; // w8
const char *v10; // x8
void *v11; // x0
char *v12; // x0
__int64 v13; // x0
int v14; // w8
const char *v15; // x9
const char *v16; // x10
void *v17; // x0
char *v18; // x0
char *v19; // x1
void *v20; // x19
const char *v21; // x8
void *v22; // x0
char *CString; // x0
__int64 v24; // x0
void *v25[2]; // [xsp+20h] [xbp-80h] BYREF
char v26; // [xsp+37h] [xbp-69h]
void *v27[3]; // [xsp+38h] [xbp-68h] BYREF
void *__p[2]; // [xsp+50h] [xbp-50h] BYREF
char v29; // [xsp+67h] [xbp-39h]
void *v30[2]; // [xsp+68h] [xbp-38h] BYREF
char v31; // [xsp+7Fh] [xbp-21h]
if ( a2 == 2 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1256) = a1 + 776;
v7 = GameLevelManager::sharedState();
if ( (unsigned int)sub_1000C41A4(v7, *(_DWORD *)(a1 + 840), a3, a4) )
sub_10051B0F8(a1);
return;
}
if ( a2 == 1 && (a3 & 0x80000000) == 0 )
{
v8 = *(_QWORD *)(a1 + 1272);
if ( (int)((unsigned __int64)(*(_QWORD *)(a1 + 1280) - v8) >> 2) > (int)a3 )
{
v9 = *(_DWORD *)(v8 + 4LL * a3);
if ( v9 > 2 )
{
if ( v9 == 3 )
{
v21 = (const char *)(a1 + 848);
if ( *(char *)(a1 + 871) < 0 )
v21 = *(const char **)v21;
v22 = sub_1003065B0(
"Delete all level, list and SFX comments from %s?\n"
"Profile posts stay. Cannot be undone.",
v21);
CString = (char *)cocos2d::CCString::getCString((__int64)v22);
sub_100009900(v30, CString);
sub_10051FE78((__int64 *)v27);
sub_100009900(v25, "");
v24 = sub_10054BB10(a1 + 816, 1, "Delete Comments", v30, "Delete", v27, v25, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v24 + 1312LL))(v24);
}
else
{
if ( v9 != 4 )
return;
v10 = (const char *)(a1 + 848);
if ( *(char *)(a1 + 871) < 0 )
v10 = *(const char **)v10;
v11 = sub_1003065B0(
"Delete all profile posts from %s?\nLevel comments stay. Cannot be undone.",
v10);
v12 = (char *)cocos2d::CCString::getCString((__int64)v11);
sub_100009900(v30, v12);
sub_10051FE78((__int64 *)v27);
sub_100009900(v25, "");
v13 = sub_10054BB10(a1 + 816, 2, "Delete Posts", v30, "Delete", v27, v25, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1312LL))(v13);
}
if ( v26 < 0 )
operator delete(v25[0]);
if ( v27[0] )
{
v27[1] = v27[0];
operator delete(v27[0]);
}
}
else
{
if ( v9 != 1 )
{
if ( v9 == 2 )
sub_10054A0EC(a1);
return;
}
v14 = *(_DWORD *)(a1 + 1360);
v15 = "s";
if ( v14 == 1 )
v15 = "";
v16 = (const char *)(a1 + 848);
if ( *(char *)(a1 + 871) < 0 )
v16 = *(const char **)v16;
v17 = sub_1003065B0(
"Dismiss the reports on %i selected item%s by %s?\n"
"The reports are removed, the content stays. Cannot be undone.",
v14,
v15,
v16);
v18 = (char *)cocos2d::CCString::getCString((__int64)v17);
sub_100009900(v30, v18);
if ( v31 >= 0 )
v19 = (char *)v30;
else
v19 = (char *)v30[0];
sub_100009900(__p, v19);
v20 = FLAlertLayer::create(
a1 + 800,
(__int64)"Dismiss Reports",
(__int64)__p,
(__int64)"Cancel",
(__int64)"Dismiss",
0,
380.0,
0.0,
1.0);
if ( v29 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 72LL))(v20, 5);
(*(void (__fastcall **)(void *))(*(_QWORD *)v20 + 1312LL))(v20);
}
if ( v31 < 0 )
operator delete(v30[0]);
}
}
}