//
// CustomSongWidget::updateDownloadProgress from 0x86c50c to 0x86c574 (104 bytes)
//
// 6 xrefs:
// > ??> @ 0x7af80
// > CustomSongWidget::startMonitorDownload @ 0x8685a0
// > CustomSongWidget::startMonitorDownload @ 0x8685b4
// > CustomSongWidget::downloadFailed @ 0x86c47c
// > CustomSongWidget::updateDownloadProgress @ 0x86c55c
// > ??> @ 0x1543250
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:55:43 +0000
//
__int64 __fastcall CustomSongWidget::updateDownloadProgress(CustomSongWidget *this, float a2)
{
MusicDownloadManager *v3; // x0
int DownloadProgress; // w1
v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
DownloadProgress = MusicDownloadManager::getDownloadProgress(v3, *(_DWORD *)(*((_QWORD *)this + 42) + 316LL));
if ( DownloadProgress != -1 && *((_QWORD *)this + 42) )
return CustomSongWidget::updateProgressBar(this, DownloadProgress);
cocos2d::CCNode::unschedule(this, CustomSongWidget::updateDownloadProgress, 0);
return CustomSongWidget::updateSongInfo(this);
}