//
// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x1004d44fc to 0x1004d459c (160 bytes)
//
// 2 xrefs:
// > sub_1004D45B8 @ 0x1004d45bc
// > ??> @ 0x100989090
//
// 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::downloadEditorSoundFailed(__int64 a1, int a2)
{
__int64 v3; // x8
__int64 v4; // x0
__int64 v5; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
v3 = *(_QWORD *)(a1 + 1088);
if ( !v3 || *(_DWORD *)(v3 + 316) == a2 )
{
*(_WORD *)(a1 + 1120) = 0;
v4 = *(_QWORD *)(a1 + 1112);
if ( v4 )
LoadingCircle::fadeAndRemove(v4);
*(_QWORD *)(a1 + 1112) = 0;
sub_1004D2A34(a1);
sub_100009900(__p, "Could not download this sound pack. Try again later.");
v5 = sub_10034A8F8(0, (__int64)"Download Failed", (__int64)__p, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
if ( v7 < 0 )
operator delete(__p[0]);
}
}