//
// MusicDownloadManager::songStateChanged from 0x56bc3c to 0x56bc68 (44 bytes)
//
// 5 xrefs:
// > sub_3EDB46 @ 0x3edb5e
// > FindBPMLayer::onClose @ 0x3f78f2
// > CustomSongWidget::onPlayback @ 0x4e30e4
// > CustomSongWidget::onSelect @ 0x4e4f98
// > SetupSongTriggerPopup::onPlayback @ 0x6586c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:33 +0000
//
unsigned int __fastcall MusicDownloadManager::songStateChanged(cocos2d::CCArray **this)
{
unsigned int i; // r4
unsigned int result; // r0
int v4; // r0
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*(this + 68));
if ( i >= result )
break;
v4 = cocos2d::CCArray::objectAtIndex(*(this + 68), i);
(*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v4 + 264) + 20))(*(_DWORD *)(v4 + 264));
}
return result;
}