//
// sub_1004D283C from 0x1004d283c to 0x1004d2948 (268 bytes)
//
// 1 xrefs:
// > sub_1004CF9C0 @ 0x1004d122c
//
// 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:06:29 +0000
//
void __fastcall sub_1004D283C(__int64 a1)
{
void *v2; // x19
__int64 v3; // x8
__int64 v4; // x8
__int64 v5; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v7; // [xsp+1Fh] [xbp-31h]
void *__dst[2]; // [xsp+20h] [xbp-30h] BYREF
__int64 v9; // [xsp+30h] [xbp-20h]
if ( (sub_1004D27CC(a1) & 1) != 0 )
{
sub_100009900(__p, "Are you sure you want to delete this sound pack from the server?");
v2 = FLAlertLayer::create_1(
a1 + 1032,
(__int64)"Delete Sound Pack",
(__int64)__p,
(__int64)"Cancel",
(__int64)"Delete",
380.0);
if ( v7 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 72LL))(v2, 7002);
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 1312LL))(v2);
}
else
{
v3 = *(_QWORD *)(a1 + 1088);
if ( *(char *)(v3 + 399) < 0 )
{
sub_1000097D0(__dst, *(void **)(v3 + 376), *(_QWORD *)(v3 + 384));
}
else
{
v4 = v3 + 376;
*(_OWORD *)__dst = *(_OWORD *)v4;
v9 = *(_QWORD *)(v4 + 16);
}
v5 = sub_10054C554(a1 + 1040, 7002, "Delete Sound Pack", __dst, 9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
if ( SHIBYTE(v9) < 0 )
operator delete(__dst[0]);
}
}