//
// sub_10054A0EC from 0x10054a0ec to 0x10054a230 (324 bytes)
//
// 2 xrefs:
// > sub_1005428C4 @ 0x1005428c4
// > AccountReviewPopup::reviewChoicePicked @ 0x10054a490
//
// 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 sub_10054A0EC(__int64 a1)
{
int v2; // w0
const char *v3; // x8
const char *v4; // x9
const char *v5; // x10
void *v6; // x0
char *CString; // x0
char *v8; // x1
__int64 *v9; // x19
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
char v11; // [xsp+37h] [xbp-29h]
void *v12[2]; // [xsp+38h] [xbp-28h] BYREF
char v13; // [xsp+4Fh] [xbp-11h]
v2 = sub_100549F98(a1);
if ( v2 >= 1 )
{
if ( *(_DWORD *)(a1 + 1236) == 1 )
v3 = "comment";
else
v3 = "item";
v4 = "s";
if ( v2 == 1 )
v4 = "";
v5 = (const char *)(a1 + 848);
if ( *(char *)(a1 + 871) < 0 )
v5 = *(const char **)v5;
v6 = sub_1003065B0(
"Delete %i selected %s%s by %s?\nThe text is removed from the server. Cannot be undone.",
v2,
v3,
v4,
v5);
CString = (char *)cocos2d::CCString::getCString((__int64)v6);
sub_100009900(v12, CString);
if ( v13 >= 0 )
v8 = (char *)v12;
else
v8 = (char *)v12[0];
sub_100009900(__p, v8);
v9 = (__int64 *)FLAlertLayer::create(
a1 + 800,
(__int64)"Delete Content",
(__int64)__p,
(__int64)"Cancel",
(__int64)"Delete",
0,
380.0,
0.0,
1.0);
if ( v11 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64 *, __int64))(*v9 + 72))(v9, 4);
ButtonSprite::updateBGImage(v9[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *))(*v9 + 1312))(v9);
if ( v13 < 0 )
operator delete(v12[0]);
}
}