//
// MusicBrowser::musicActionFailed from 0x14047c900 to 0x14047ca30 (304 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407b6030
// > ??> @ 0x14092864c
//
// 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:32:43 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall MusicBrowser::musicActionFailed(__int64 a1, int a2)
{
cocos2d::CCNode *v4; // rbx
__int64 result; // rax
__int64 v6; // rbx
__int64 v7; // rdx
__int64 v8; // r8
cocos2d::CCNode *v9; // rax
__int128 v10; // [rsp+30h] [rbp-68h] BYREF
__int64 v11; // [rsp+40h] [rbp-58h]
__int64 v12; // [rsp+48h] [rbp-50h]
__int128 v13; // [rsp+50h] [rbp-48h] BYREF
__int64 v14; // [rsp+60h] [rbp-38h]
__int64 v15; // [rsp+68h] [rbp-30h]
v4 = *(cocos2d::CCNode **)(a1 + 192);
cocos2d::CCNode::stopActionByTag(v4, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*((_QWORD *)v4 + 40) + 40LL))((_QWORD *)v4 + 40, 0);
result = (*(__int64 (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v4 + 336LL))(v4, 0);
if ( a2 == 6 && !*(_BYTE *)(a1 + 248) )
{
v10 = 0;
v11 = 0;
v12 = 15;
LOBYTE(v10) = 0;
v13 = 0;
v14 = 0;
v15 = 0;
*(_QWORD *)&v13 = sub_14003D460(0x30u);
v14 = 36;
v15 = 47;
strcpy((char *)v13, "Music Library is the latest version.");
v6 = *(_QWORD *)(a1 - 664);
v9 = TextAlertPopup::create((__int64)&v13, v7, v8, 150, (__int64)&v10);
return (*(__int64 (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(v6 + 456))(a1 - 664, v9, 100);
}
return result;
}