//
// MusicDownloadManager::musicActionFinished from 0x95d104 to 0x95d16c (104 bytes)
//
// 6 xrefs:
// > MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x96225c
// > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x96cab8
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x978d44
// > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x97cd68
// > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x97d6e8
// > ??> @ 0xdd548
//
// 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:29 +0000
//
__int64 __fastcall MusicDownloadManager::musicActionFinished(__int64 a1, unsigned int a2)
{
unsigned int v4; // w19
__int64 v5; // x0
__int64 result; // x0
bool v7; // cf
unsigned int v8; // w1
v4 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
v7 = v4 >= (unsigned int)result;
v8 = v4++;
if ( v7 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v8);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 320) + 64LL))(*(_QWORD *)(v5 + 320), a2);
}
return result;
}