//
// EditorSoundConfigInfoLayer::musicActionFailed from 0x7854dc to 0x78557a (158 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::musicActionFailed @ 0x785590
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:32 +0000
//
int __fastcall EditorSoundConfigInfoLayer::musicActionFailed(int result, int a2)
{
int v2; // r8
int v3; // r3
void (__fastcall *v4)(int, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v5; // r0
int v6[3]; // [sp+Ch] [bp-20h] BYREF
int v7[3]; // [sp+18h] [bp-14h] BYREF
v2 = result;
if ( a2 == 2 )
{
if ( *(_BYTE *)(result + 766) )
{
v3 = *(_DWORD *)result;
*(_BYTE *)(result + 766) = 0;
v4 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(v3 + 232);
memset(v6, 0, sizeof(v6));
std::string::__init(v6, "Download failed", 0xFu);
memset(v7, 0, sizeof(v7));
std::string::__init(v7, &unk_B6B226, 0);
v5 = TextAlertPopup::create((int)v6, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v7);
v4(v2, v5, 100);
std::string::~string((int)v7);
return std::string::~string((int)v6);
}
}
return result;
}