//
// EditorSoundConfigInfoLayer::deleteEditorSoundFailed from 0x140199160 to 0x14019921c (188 bytes)
//
// 4 xrefs:
// > ??> @ 0x14074e0a0
// > ??> @ 0x1408a00b0
// > ??> @ 0x1408a00c0
// > ??> @ 0x140919628
//
// This function is hookable on this platform (idp: pc, 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:27:46 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::deleteEditorSoundFailed(__int64 a1, int a2, int a3)
{
__int64 result; // rax
const char *v4; // rdx
const char *v5; // rbx
size_t v6; // r8
__int64 v7; // rax
__int128 v8; // [rsp+30h] [rbp-28h] BYREF
__int64 v9; // [rsp+40h] [rbp-18h]
__int64 v10; // [rsp+48h] [rbp-10h]
result = *(_QWORD *)(a1 + 64);
if ( !result || a2 == *(_DWORD *)(result + 320) )
{
v9 = 0;
v4 = "Featured or popular sound packs cannot be deleted.";
v10 = 0;
if ( a3 != -21 )
v4 = "Could not delete this sound pack from the server.";
v5 = "Cannot Delete";
if ( a3 != -21 )
v5 = "Delete Failed";
v6 = -1;
v8 = 0;
do
++v6;
while ( v4[v6] );
sub_14003D230(&v8, v4, v6);
v7 = FLAlertLayer::create_2(0, (int)v5, (__int64)&v8, (int)"OK", 0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1064LL))(v7);
}
return result;
}