//
// MusicDownloadManager::getDownloadProgress from 0x10058f9c0 to 0x10058fa08 (72 bytes)
//
// 1 xrefs:
// > CustomSongWidget::updateDownloadProgress @ 0x10061f233
//
// 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
//
int __fastcall MusicDownloadManager::getDownloadProgress(MusicDownloadManager *a1, int a2)
{
char v2; // al
cocos2d::CCString *v3; // rax
const char *CString; // rax
cocos2d::CCObject *DLObject; // rax
v3 = (cocos2d::CCString *)sub_1007AB580("d_%i", v2);
CString = cocos2d::CCString::getCString(v3);
DLObject = MusicDownloadManager::getDLObject(a1, CString);
if ( DLObject )
return DLObject[3].m_uIndexInArray;
else
return -1;
}