//
// MusicDownloadManager::stopDownload from 0x56ca74 to 0x56ca9a (38 bytes)
//
// 2 xrefs:
// > CustomSongWidget::onCancelDownload @ 0x4e23b0
// > CustomSFXWidget::onCancelDownload @ 0x6a5ef0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:33 +0000
//
int __fastcall MusicDownloadManager::stopDownload(MusicDownloadManager *this, const char *a2)
{
const char *SongDownloadKey; // r4
int DLObject; // r0
SongDownloadKey = (const char *)MusicDownloadManager::getSongDownloadKey(this, a2);
DLObject = MusicDownloadManager::getDLObject(this, SongDownloadKey);
if ( DLObject )
*(_BYTE *)(DLObject + 124) = 1;
return MusicDownloadManager::removeDLFromActive(this, SongDownloadKey);
}