//
// NewsPopup::musicActionFailed from 0xb8a210 to 0xb8a288 (120 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NewsPopup::musicActionFailed @ 0xb8a28c
// > ??> @ 0xf7390
// > ??> @ 0x14d6360
//
// 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:02:33 +0000
//
__int64 __fastcall NewsPopup::musicActionFailed(__int64 result, int a2)
{
__int64 v2; // x2
__int64 v3; // x3
v2 = *(_QWORD *)(result + 744);
if ( v2 )
{
v3 = *(_QWORD *)(result + 680);
result = *(_QWORD *)(result + 688);
if ( v3 == result )
{
result = a2 & 0xFFFFFFFD;
if ( (_DWORD)result == 9 )
{
return (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v2 + 928LL))(v2, "Could not load news.");
}
else if ( a2 == 10 )
{
return (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v2 + 928LL))(v2, "No news yet!");
}
}
}
return result;
}