//
// CustomSongWidget::downloadSFXFailed from 0x100620ee0 to 0x100620f97 (183 bytes)
//
// 1 xrefs:
// > ??> @ 0x100982268
//
// 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::downloadSFXFailed(CustomSongWidget *a1, int a2, GJSongError a3)
{
std::__vector_base::pointer begin; // rbx
std::__vector_base::pointer end; // rax
size_t v5; // r14
__int128 v6; // [rsp+0h] [rbp-30h]
begin = a1->m_undownloadedAssets.__begin_;
end = a1->m_undownloadedAssets.__end_;
if ( begin != end )
{
v5 = (char *)end - (char *)begin - 19;
while ( begin->m_id != a2 || begin->m_assetType != User )
{
begin = (std::__vector_base::pointer)((char *)begin + 16);
v5 -= 16LL;
if ( begin == end )
return;
}
++begin->m_status;
LOBYTE(begin[1].m_id) = 0;
if ( &begin[1].m_assetType != (GJAssetType *)end )
{
*(_QWORD *)&v6 = *(_QWORD *)&begin->m_id;
DWORD2(v6) = begin->m_status;
BYTE12(v6) = begin[1].m_id;
memmove(begin, &begin[1].m_assetType, v5);
*(_QWORD *)((char *)&begin->m_id + v5 + 3) = v6;
*(_QWORD *)((char *)&begin->m_status + v5) = *(_QWORD *)((char *)&v6 + 5);
}
CustomSongWidget::processNextMultiAsset(a1);
}
}