//
// EditorSoundConfigInfoLayer::musicActionFailed from 0x1008f8780 to 0x1008f882e (174 bytes)
//
// 2 xrefs:
// > sub_1008F8870 @ 0x1008f887c
// > ??> @ 0x100bb60d8
//
// 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 12:37:59 +0000
//
void __fastcall EditorSoundConfigInfoLayer::musicActionFailed(_BYTE *a1, int a2)
{
char *v2; // rax
__int128 v3; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
char v5; // [rsp+20h] [rbp-20h] BYREF
_BYTE v6[23]; // [rsp+21h] [rbp-1Fh] BYREF
if ( a2 == 2 && a1[1122] == 1 )
{
a1[1122] = 0;
v5 = 30;
strcpy(v6, "Download failed");
LOWORD(v3) = 0;
v2 = TextAlertPopup::create((__int128 *)&v5, 0x96u, &v3, 0.5, 0.60000002);
(*(void (__fastcall **)(_BYTE *, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v2, 100);
if ( (v3 & 1) != 0 )
operator delete(__p);
if ( (v5 & 1) != 0 )
operator delete(*(void **)&v6[15]);
}
}