//
// MusicDownloadManager::musicActionFailed from 0x100157504 to 0x100157570 (108 bytes)
//
// 10 xrefs:
// > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x100153cc0
// > MusicDownloadManager::onTryUpdateMusicLibraryCompleted @ 0x100157c98
// > MusicDownloadManager::onTryUpdateMusicLibraryCompleted @ 0x100157ca4
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x100157f9c
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x100157fa8
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x100157fb8
// > MusicDownloadManager::onTryUpdateSFXLibraryCompleted @ 0x100159fe4
// > MusicDownloadManager::onTryUpdateSFXLibraryCompleted @ 0x100159ff0
// > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x10015a2d8
// > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x10015a2e4
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall MusicDownloadManager::musicActionFailed(MusicDownloadManager *a1, GJMusicAction a2)
{
__int64 v2; // x19
__int64 v4; // x21
__int64 v5; // x0
v2 = *(_QWORD *)&a2;
if ( (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_musicDownloadDelegates, v4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v5 + 320) + 72LL))(*(_QWORD *)(v5 + 320), v2);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_musicDownloadDelegates) );
}
}