//
// EditorSoundConfigUploadPopup::uploadEditorSoundFailed from 0x1008fd040 to 0x1008fd162 (290 bytes)
//
// 2 xrefs:
// > sub_1008FD180 @ 0x1008fd18c
// > ??> @ 0x100bb73a8
//
// 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:38:01 +0000
//
void __fastcall EditorSoundConfigUploadPopup::uploadEditorSoundFailed(__int64 a1, int a2)
{
__int64 v3; // rdi
__int64 v4; // rdi
__int64 v5; // rdi
__int64 v6; // rdi
__int64 v7; // rdi
__int64 v8; // rax
__int128 v9; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
*(_BYTE *)(a1 + 1056) = 0;
v3 = *(_QWORD *)(a1 + 1024);
if ( v3 )
LoadingCircle::fadeAndRemove(v3);
*(_QWORD *)(a1 + 1024) = 0;
v4 = *(_QWORD *)(a1 + 1032);
if ( v4 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 344LL))(v4, 1);
v5 = *(_QWORD *)(a1 + 1040);
if ( v5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, 1);
v6 = *(_QWORD *)(a1 + 1048);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, 1);
v7 = *(_QWORD *)(a1 + 1112);
if ( v7 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 344LL))(v7, 1);
if ( a2 == -1 )
{
__p = operator new(0x30u);
*(_QWORD *)&v9 = 49;
*((_QWORD *)&v9 + 1) = 44;
strcpy((char *)__p, "Could not reach the server. Try again later.");
v8 = sub_100493AB0(0, (__int64)"Upload Failed", &v9, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
if ( (v9 & 1) != 0 )
operator delete(__p);
}
}