//
// EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x1004d46f4 to 0x1004d4794 (160 bytes)
//
// 2 xrefs:
// > sub_1004D47B0 @ 0x1004d47b4
// > ??> @ 0x1009890a0
//
// 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:30 +0000
//
void __fastcall EditorSoundConfigInfoLayer::deleteEditorSoundFailed(__int64 a1, int a2, int a3)
{
__int64 v3; // x8
char *v4; // x1
const char *v5; // x19
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v3 = *(_QWORD *)(a1 + 1088);
if ( !v3 || *(_DWORD *)(v3 + 316) == a2 )
{
if ( a3 == -21 )
v4 = "Featured or popular sound packs cannot be deleted.";
else
v4 = "Could not delete this sound pack from the server.";
if ( a3 == -21 )
v5 = "Cannot Delete";
else
v5 = "Delete Failed";
sub_100009900(__p, v4);
v6 = sub_10034A8F8(0, (__int64)v5, (__int64)__p, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
if ( v8 < 0 )
operator delete(__p[0]);
}
}