//
// MusicDownloadManager::downloadSFXFinished from 0x100159d14 to 0x100159d80 (108 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x100159c18
//
// 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 MusicDownloadManager::downloadSFXFinished(MusicDownloadManager *a1, int a2)
{
__int64 v2; // x19
__int64 v4; // x21
__int64 v5; // x0
v2 = *(_QWORD *)&a2;
if ( (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_musicDownloadDelegates, v4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v5 + 320) + 48LL))(*(_QWORD *)(v5 + 320), v2);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) );
}
}