//
// CustomSongWidget::downloadAssetFailed from 0x1000fe384 to 0x1000fe408 (132 bytes)
//
// 3 xrefs:
// > CustomSongWidget::downloadSongFailed @ 0x1000fe348
// > CustomSongWidget::downloadSFXFailed @ 0x1000fe428
// > sub_1000FE42C @ 0x1000fe434
//
// 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 __fastcall CustomSongWidget::downloadAssetFailed(CustomSongWidget *a1, int a2, GJAssetType a3, GJSongError a4)
{
std::__vector_base::pointer begin; // x0
std::__vector_base::pointer end; // x2
std::__vector_base::pointer v8; // x9
begin = a1->m_undownloadedAssets.__begin_;
end = a1->m_undownloadedAssets.__end_;
if ( begin != end )
{
v8 = begin;
while ( v8->m_id != a2 || v8->m_assetType != a3 )
{
v8 = (std::__vector_base::pointer)((char *)v8 + 16);
begin = (std::__vector_base::pointer)((char *)begin + 16);
if ( v8 == end )
return;
}
++v8->m_status;
LOBYTE(v8[1].m_id) = 0;
sub_1000FE898(begin);
CustomSongWidget::processNextMultiAsset(a1);
}
}