//
// CustomSongWidget::loadSongInfoFailed from 0x3e0764 to 0x3e07b8 (84 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomSongWidget::loadSongInfoFailed @ 0x3e07bc
//
// 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
//
void CustomSongWidget::loadSongInfoFailed(CustomSongWidget *a1, int a2, GJSongError a3)
{
std::set *p_m_nextSongIDs; // r7
int v6[2]; // [sp+4h] [bp-8h] BYREF
v6[1] = a3;
p_m_nextSongIDs = &a1->m_nextSongIDs;
v6[0] = a2;
if ( &a1->m_nextSongIDs._M_t._M_impl._M_header == (std::_Rb_tree_node_base *)std::_Rb_tree,std::less,std::allocator>::find(
(int)&a1->m_nextSongIDs,
v6) )
{
if ( CustomSongWidget::verifySongID(a1, v6[0]) )
{
CustomSongWidget::updateError(a1, a3);
CustomSongWidget::downloadFailed(a1);
}
}
else
{
std::_Rb_tree,std::less,std::allocator>::erase(p_m_nextSongIDs, v6);
a1->downloadSongFailed(a1, v6[0], a3);
}
}