//
// MusicDownloadManager::downloadSongStarted from 0x140483c60 to 0x140483cd6 (118 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::downloadSong @ 0x140483d50
// > MusicDownloadManager::downloadCustomSong @ 0x14048c49f
// > ??> @ 0x140928a78
//
// This function is hookable on this platform (idp: pc, 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 11:32:46 +0000
//
unsigned int __fastcall MusicDownloadManager::downloadSongStarted(__int64 a1, unsigned int a2)
{
unsigned int v4; // ebx
unsigned int result; // eax
__int64 v6; // rcx
v4 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
if ( result )
{
do
{
v6 = *((_QWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v4) + 40);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 16LL))(v6, a2);
++v4;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
}
while ( v4 < result );
}
return result;
}