//
// CustomSongWidget::downloadAssetFailed from 0x7484c0 to 0x748548 (136 bytes)
//
// 3 xrefs:
// > CustomSongWidget::downloadSongFailed @ 0x7485a8
// > CustomSongWidget::downloadSFXFailed @ 0x7485bc
// > ??> @ 0x65250
//
// 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::downloadAssetFailed(CustomSongWidget *a1, int a2, GJAssetType a3, GJSongError a4)
{
GJAssetDownloadAction *m_start; // x3
GJAssetDownloadAction *m_finish; // x5
int v7; // w4
m_start = a1->m_undownloadedAssets.m_start;
m_finish = a1->m_undownloadedAssets.m_finish;
if ( m_start != m_finish )
{
while ( m_start->m_id != a2 || m_start->m_assetType != a3 )
{
m_start = (GJAssetDownloadAction *)((char *)m_start + 16);
if ( m_finish == m_start )
return;
}
v7 = m_start->m_status + 1;
LOBYTE(m_start[1].m_id) = 0;
m_start->m_status = v7;
std::__rotate<__gnu_cxx::__normal_iterator>>(
(__int64)m_start,
&m_start[1].m_assetType,
m_finish);
CustomSongWidget::processNextMultiAsset(a1);
}
}