//
// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x140198de0 to 0x140198f24 (324 bytes)
//
// 2 xrefs:
// > ??> @ 0x14074dfa8
// > ??> @ 0x140919610
//
// 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 11:27:46 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFailed(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rcx
__int64 v5; // rax
cocos2d::CCObject *v6; // rbx
__int128 v7; // [rsp+50h] [rbp-48h] BYREF
__int64 v8; // [rsp+60h] [rbp-38h]
__int64 v9; // [rsp+68h] [rbp-30h]
_BYTE v10[32]; // [rsp+70h] [rbp-28h] BYREF
result = *(_QWORD *)(a1 + 72);
if ( !result || (_DWORD)a2 == *(_DWORD *)(result + 320) )
{
*(_WORD *)(a1 + 104) = 0;
v4 = *(_QWORD *)(a1 + 96);
if ( v4 )
LoadingCircle::fadeAndRemove(v4);
*(_QWORD *)(a1 + 96) = 0;
EditorSoundConfigInfoLayer::refreshActionButtons((_QWORD *)(a1 - 1000), a2);
v7 = 0;
*(_QWORD *)&v7 = sub_14003D460(0x40u);
v8 = 52;
v9 = 63;
strcpy((char *)v7, "Could not download this sound pack. Try again later.");
v5 = sub_14003F4F0((__int64)v10, (__int64)&v7);
v6 = FLAlertLayer::create(0, (int)"Download Failed", v5, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216);
sub_14003D310((__int64)&v7);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6);
}
return result;
}