//
// MusicDownloadManager::songStateChanged from 0x95bd98 to 0x95bdf0 (88 bytes)
//
// 6 xrefs:
// > sub_6D4DA0 @ 0x6d4dc8
// > FindBPMLayer::onClose @ 0x6e7c74
// > CustomSongWidget::onPlayback @ 0x8692c4
// > CustomSongWidget::onSelect @ 0x86c508
// > SetupSongTriggerPopup::onPlayback @ 0xaea1d0
// > ??> @ 0xf7660
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:28 +0000
//
__int64 __fastcall MusicDownloadManager::songStateChanged(cocos2d::CCArray **this)
{
unsigned int v2; // w19
__int64 v3; // x0
__int64 result; // x0
bool v5; // cf
unsigned int v6; // w1
v2 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 42));
v5 = v2 >= (unsigned int)result;
v6 = v2++;
if ( v5 )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(this + 42), v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v3 + 320) + 40LL))(*(_QWORD *)(v3 + 320));
}
return result;
}