//
// CustomSongWidget::loadSongInfoFailed from 0x86de94 to 0x86df48 (180 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x86df4c
// > ??> @ 0x6de10
// > ??> @ 0x1442e88
//
// 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 12:55:44 +0000
//
__int64 __fastcall CustomSongWidget::loadSongInfoFailed(CustomSongWidget *this, int a2, __int64 a3)
{
__int64 *v4; // x0
int v5; // w3
__int64 result; // x0
int v7; // [xsp+20h] [xbp+20h]
unsigned int v9; // [xsp+2Ch] [xbp+2Ch] BYREF
v4 = *((__int64 **)this + 80);
v9 = a2;
while ( v4 )
{
while ( 1 )
{
v5 = *((_DWORD *)v4 + 7);
if ( v5 <= a2 )
break;
v4 = (__int64 *)*v4;
if ( !v4 )
goto LABEL_5;
}
if ( v5 >= a2 )
{
std::__tree::__erase_unique((_QWORD *)this + 79, (int *)&v9);
return (*(__int64 (__fastcall **)(CustomSongWidget *, _QWORD, __int64))(*(_QWORD *)this + 928LL))(this, v9, a3);
}
v4 = (__int64 *)v4[1];
}
LABEL_5:
v7 = a3;
result = (unsigned __int8)CustomSongWidget::verifySongID(this, a2);
if ( (_BYTE)result )
{
CustomSongWidget::updateError((__int64)this, v7);
return CustomSongWidget::downloadFailed(this);
}
return result;
}