//
// MusicDownloadManager::downloadSongStarted from 0x82974c to 0x8297cc (128 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::downloadCustomSong @ 0x82bb44
// > MusicDownloadManager::downloadSong @ 0x831c00
// > ??> @ 0x2b578
//
// 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 MusicDownloadManager::downloadSongStarted(MusicDownloadManager *a1, int a2)
{
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
__int64 v7; // x2
v4 = 0;
while ( 1 )
{
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_musicDownloadDelegates);
v6 = v4++;
if ( v5 )
break;
while ( 1 )
{
v7 = *(_QWORD *)(cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, v6) + 320);
if ( !v7 )
break;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 16LL))(v7, (unsigned int)a2);
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_musicDownloadDelegates);
v6 = v4++;
if ( v5 )
return;
}
}
}