//
// CustomSongWidget::loadSongInfoFailed from 0x100122980 to 0x100122a24 (164 bytes)
//
// 2 xrefs:
// > sub_100122AEC @ 0x100122af0
// > ??> @ 0x1008d5a18
//
// 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::loadSongInfoFailed(__int64 result, signed int a2, __int64 a3)
{
__int64 v4; // x20
__int64 *i; // x8
signed int v6; // w9
int v7; // w8
unsigned int v9; // [xsp+Ch] [xbp-14h] BYREF
v4 = result;
v9 = a2;
for ( i = *(__int64 **)(result + 640); i; i = (__int64 *)*i )
{
v6 = *((_DWORD *)i + 7);
if ( v6 <= a2 )
{
if ( v6 >= a2 )
{
sub_10005484C((_QWORD *)(result + 632), (int *)&v9);
return (*(__int64 (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v4 + 928LL))(v4, v9, a3);
}
++i;
}
}
v7 = *(_DWORD *)(result + 504);
if ( v7 == a2 && v7 != 0 )
{
sub_100122A24(result, a3);
return sub_100121D84(v4);
}
return result;
}