//
// MusicDownloadManager::musicActionFailed from 0x1001dab94 to 0x1001dac00 (108 bytes)
//
// 15 xrefs:
// > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1001d2804
// > MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x1001d28c4
// > MusicDownloadManager::onTryUpdateMusicLibraryCompleted @ 0x1001db91c
// > MusicDownloadManager::onTryUpdateMusicLibraryCompleted @ 0x1001db928
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x1001dbc20
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x1001dbc2c
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x1001dbc3c
// > sub_1001DECB4 @ 0x1001ded3c
// > sub_1001DECB4 @ 0x1001ded48
// > sub_1001DEF68 @ 0x1001df030
// > sub_1001DEF68 @ 0x1001df03c
// > sub_1001E00D4 @ 0x1001e015c
// > sub_1001E00D4 @ 0x1001e0168
// > sub_1001E0334 @ 0x1001e0454
// > sub_1001E0334 @ 0x1001e0534
//
// 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 11:00:27 +0000
//
__int64 __fastcall MusicDownloadManager::musicActionFailed(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x21
__int64 v6; // x0
result = sub_1002E757C(*(_QWORD *)(a1 + 336));
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 336), v5);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v6 + 320) + 72LL))(*(_QWORD *)(v6 + 320), a2);
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(*(_QWORD *)(a1 + 336));
}
while ( (unsigned int)v5 < (unsigned int)result );
}
return result;
}