//
// MusicDownloadManager::downloadSongFailed from 0x140493f30 to 0x140493fa9 (121 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840b0
// > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840f6
// > ??> @ 0x140928f28
//
// 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:52 +0000
//
unsigned int __fastcall MusicDownloadManager::downloadSongFailed(__int64 a1, unsigned int a2, unsigned int a3)
{
unsigned int v6; // ebx
unsigned int result; // eax
struct cocos2d::CCObject *v8; // rax
v6 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
if ( result )
{
do
{
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v6);
(*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**((_QWORD **)v8 + 40) + 32LL))(*((_QWORD *)v8 + 40), a2, a3);
++v6;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));
}
while ( v6 < result );
}
return result;
}