//
// MusicDownloadManager::songStateChanged from 0x8292e4 to 0x82933c (88 bytes)
//
// 6 xrefs:
// > sub_5B5CF0 @ 0x5b5d18
// > FindBPMLayer::onClose @ 0x5bf218
// > CustomSongWidget::onPlayback @ 0x7427ac
// > CustomSongWidget::onSelect @ 0x746bd4
// > SetupSongTriggerPopup::onPlayback @ 0x9a9c40
// > ??> @ 0xbdbb8
//
// 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::songStateChanged(MusicDownloadManager *a1)
{
unsigned int v2; // w19
__int64 v3; // x0
bool v4; // cf
unsigned int v5; // w1
v2 = 0;
while ( 1 )
{
v4 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_musicDownloadDelegates);
v5 = v2++;
if ( v4 )
break;
v3 = cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 320) + 40LL))(*(_QWORD *)(v3 + 320));
}
}