//
// CustomSongWidget::downloadSongFailed from 0x100122d0c to 0x100122d74 (104 bytes)
//
// 2 xrefs:
// > sub_100122DF8 @ 0x100122dfc
// > ??> @ 0x1008d5a30
//
// 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 10:59:16 +0000
//
__int64 __fastcall CustomSongWidget::downloadSongFailed(__int64 result, __int64 a2, int a3)
{
__int64 v3; // x19
int v4; // w8
v3 = result;
if ( *(_BYTE *)(result + 529) == 1 )
return sub_100122D74(result, a2, 1);
v4 = *(_DWORD *)(result + 504);
if ( v4 == (_DWORD)a2 && v4 != 0 )
{
sub_100122A24(result, a3);
return sub_100121D84(v3);
}
return result;
}