//
// EditorSoundConfigInfoLayer::musicActionFailed from 0x1004d381c to 0x1004d38cc (176 bytes)
//
// 2 xrefs:
// > sub_1004D3900 @ 0x1004d3904
// > ??> @ 0x1009890e0
//
// 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::musicActionFailed(_BYTE *a1, int a2)
{
_QWORD *v3; // x0
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v5; // [xsp+17h] [xbp-29h]
void *v6[2]; // [xsp+18h] [xbp-28h] BYREF
char v7; // [xsp+2Fh] [xbp-11h]
if ( a2 == 2 && a1[1122] == 1 )
{
a1[1122] = 0;
sub_100009900(v6, "Download failed");
sub_100009900(__p, "");
v3 = TextAlertPopup::create((__int64)v6, 150, (__int64)__p, 0.5, 0.6);
(*(void (__fastcall **)(_BYTE *, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 100);
if ( v5 < 0 )
operator delete(__p[0]);
if ( v7 < 0 )
operator delete(v6[0]);
}
}