//
// EditorSoundConfigInfoLayer::musicActionFailed from 0xcce024 to 0xcce160 (316 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0xcce168
// > ??> @ 0xc40f0
// > ??> @ 0x14feeb0
//
// 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 13:06:25 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::musicActionFailed(__int64 *a1, int a2)
{
__int64 v4; // x3
void (__fastcall *v5)(__int64 *, __int64, __int64); // x23
__int64 v6; // x0
__int64 v7[2]; // [xsp+48h] [xbp+48h] BYREF
void *v8; // [xsp+58h] [xbp+58h]
__int64 v9[2]; // [xsp+60h] [xbp+60h] BYREF
void *v10; // [xsp+70h] [xbp+70h]
if ( a2 == 2 && *((_BYTE *)a1 + 1122) )
{
v4 = *a1;
*((_BYTE *)a1 + 1122) = 0;
v5 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v4 + 464);
v7[0] = 0;
v7[1] = 0;
v8 = nullptr;
std::string::__init(v7, "Download failed", 0xFu);
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, &byte_11B8890, 0);
v6 = TextAlertPopup::create((char *)v7, 150, (char *)v9, 0.5, 0.6);
v5(a1, v6, 100);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
}
return _stack_chk_guard;
}