//
// MusicDownloadManager::stopDownload from 0x10058b300 to 0x10058b349 (73 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::onCancelDownload @ 0x1005e3ae7
// > CustomSongWidget::onCancelDownload @ 0x10061bd17
//
// 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 *v2; // rax
const char *CString; // r14
cocos2d::CCObject *DLObject; // rax
char v5; // [rsp+0h] [rbp-10h]
v2 = (cocos2d::CCString *)sub_1007AB580("d_%i", v5);
CString = cocos2d::CCString::getCString(v2);
DLObject = MusicDownloadManager::getDLObject(a1, CString);
if ( DLObject )
LOBYTE(DLObject[3].m_eObjType) = 1;
MusicDownloadManager::removeDLFromActive(a1, CString);
}