//
// MusicDownloadManager::downloadSongStarted from 0x1001562ac to 0x10015631c (112 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::downloadSong @ 0x1001563a0
// > MusicDownloadManager::downloadCustomSong @ 0x100156644
//
// 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::downloadSongStarted(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 = *(_QWORD *)(sub_10024A388(a1->m_musicDownloadDelegates, v4) + 320);
if ( v5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 16LL))(v5, v2);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) );
}
}