//
// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x1008f98a0 to 0x1008f997b (219 bytes)
//
// 2 xrefs:
// > sub_1008F99A0 @ 0x1008f99ac
// > ??> @ 0x100bb6088
//
// 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::downloadEditorSoundFailed(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v3; // rax
__int128 v4; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = *(_QWORD *)(a1 + 1088);
if ( !v2 || *(_DWORD *)(v2 + 316) == a2 )
{
*(_WORD *)(a1 + 1120) = 0;
if ( *(_QWORD *)(a1 + 1112) )
LoadingCircle::fadeAndRemove(*(_QWORD *)(a1 + 1112));
*(_QWORD *)(a1 + 1112) = 0;
sub_1008F7400(a1);
__p = operator new(0x38u);
*(_QWORD *)&v4 = 57;
*((_QWORD *)&v4 + 1) = 52;
strcpy((char *)__p, "Could not download this sound pack. Try again later.");
v3 = sub_100493AB0(0, (__int64)"Download Failed", &v4, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
if ( (v4 & 1) != 0 )
operator delete(__p);
}
}