//
// CustomSongWidget::loadSongInfoFailed from 0x4e5f38 to 0x4e5f8c (84 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x4e5f90
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:05 +0000
//
int __fastcall CustomSongWidget::loadSongInfoFailed(CustomSongWidget *this, int a2, int a3)
{
_DWORD *v4; // r3
int v6; // r2
int result; // r0
_DWORD v8[2]; // [sp+4h] [bp-8h] BYREF
v8[0] = a2;
v8[1] = a3;
v4 = *((_DWORD **)this + 109);
v8[0] = a2;
while ( v4 )
{
v6 = v4[4];
if ( a2 >= v6 )
{
if ( v6 >= a2 )
{
std::__tree::__erase_unique((int **)this + 108, v8);
return (*(int (__fastcall **)(CustomSongWidget *, _DWORD, int))(*(_DWORD *)this + 464))(this, v8[0], a3);
}
v4 = (_DWORD *)v4[1];
}
else
{
v4 = (_DWORD *)*v4;
}
}
result = CustomSongWidget::verifySongID(this, a2);
if ( result )
{
CustomSongWidget::updateError((int)this, a3);
return CustomSongWidget::downloadFailed(this);
}
return result;
}