//
// MusicDownloadManager::downloadSFXFailed from 0x82d82c to 0x82d89c (112 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x82f318
// > MusicDownloadManager::onDownloadSFXCompleted @ 0x82f3f0
// > ??> @ 0x6eaf0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void MusicDownloadManager::downloadSFXFailed(MusicDownloadManager *a1, int a2, GJSongError a3)
{
unsigned int v6; // w19
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(a1->m_musicDownloadDelegates);
v9 = v6++;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, v9);
(*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)(v7 + 320) + 56LL))(
*(_QWORD *)(v7 + 320),
(unsigned int)a2,
(unsigned int)a3);
}
}