//
// CustomSongWidget::loadSongInfoFailed from 0x1000fdf90 to 0x1000fe034 (164 bytes)
//
// 2 xrefs:
// > sub_1000FE0FC @ 0x1000fe100
// > ??> @ 0x100787208
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall CustomSongWidget::loadSongInfoFailed(CustomSongWidget *a1, int a2, GJSongError a3)
{
__int64 v3; // x19
std::__tree_end_node *>::pointer i; // x8
int v6; // w9
int m_customSongID; // w8
unsigned int v9; // [xsp+Ch] [xbp-14h] BYREF
v3 = *(_QWORD *)&a3;
v9 = a2;
for ( i = a1->m_nextSongIDs.__tree_.__pair1_.__value_.__left_;
i;
i = *(std::__tree_end_node *>::pointer *)i )
{
v6 = *((_DWORD *)i + 7);
if ( v6 <= a2 )
{
if ( v6 >= a2 )
{
sub_10004C07C(&a1->m_nextSongIDs.__tree_.__begin_node_, (int *)&v9);
((void (__fastcall *)(CustomSongWidget *, _QWORD, __int64))a1->downloadSongFailed)(a1, v9, v3);
return;
}
i = (std::__tree_end_node *>::pointer)((char *)i + 8);
}
}
m_customSongID = a1->m_customSongID;
if ( m_customSongID == a2 && m_customSongID != 0 )
{
CustomSongWidget::updateError(a1, a3);
CustomSongWidget::downloadFailed(a1);
}
}