//
// MusicDownloadManager::stopDownload from 0x100154068 to 0x1001540c4 (92 bytes)
//
// 2 xrefs:
// > CustomSongWidget::onCancelDownload @ 0x1000faa98
// > CustomSFXWidget::onCancelDownload @ 0x1002f0a04
//
// 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 __fastcall MusicDownloadManager::stopDownload(MusicDownloadManager *a1, int a2)
{
cocos2d::CCString *v3; // x0
const char *CString; // x20
cocos2d::CCObject *DLObject; // x0
v3 = (cocos2d::CCString *)sub_100268F4C("d_%i", a2);
CString = cocos2d::CCString::getCString(v3);
DLObject = MusicDownloadManager::getDLObject(a1, CString);
if ( DLObject )
LOBYTE(DLObject[3].m_eObjType) = 1;
MusicDownloadManager::removeDLFromActive(a1, CString);
}