//
// MusicDownloadManager::stopDownload from 0x829bc4 to 0x829c08 (68 bytes)
//
// 3 xrefs:
// > CustomSongWidget::onCancelDownload @ 0x74250c
// > CustomSFXWidget::onCancelDownload @ 0xa315f4
// > ??> @ 0x404e8
//
// 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::stopDownload(MusicDownloadManager *a1, int a2)
{
const char *SongDownloadKey; // x19
cocos2d::CCObject *DLObject; // x0
SongDownloadKey = MusicDownloadManager::getSongDownloadKey(a1, a2);
DLObject = MusicDownloadManager::getDLObject(a1, SongDownloadKey);
if ( DLObject )
LOBYTE(DLObject[2].m_unknown5) = 1;
MusicDownloadManager::removeDLFromActive(a1, SongDownloadKey);
}