//
// CustomSFXWidget::updateDownloadProgress from 0xb5f114 to 0xb5f17c (104 bytes)
//
// 6 xrefs:
// > ??> @ 0x999d0
// > CustomSFXWidget::startMonitorDownload @ 0xb5df64
// > CustomSFXWidget::startMonitorDownload @ 0xb5df78
// > CustomSFXWidget::downloadFailed @ 0xb5efec
// > CustomSFXWidget::updateDownloadProgress @ 0xb5f164
// > ??> @ 0x1544338
//
// 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 13:02:11 +0000
//
__int64 __fastcall CustomSFXWidget::updateDownloadProgress(CustomSFXWidget *this, float a2)
{
MusicDownloadManager *v3; // x0
int SFXDownloadProgress; // w1
v3 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this);
SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(
v3,
(const char *)*(unsigned int *)(*((_QWORD *)this + 42) + 56LL));
if ( SFXDownloadProgress != -1 && *((_QWORD *)this + 42) )
return CustomSFXWidget::updateProgressBar(this, SFXDownloadProgress);
cocos2d::CCNode::unschedule(this, CustomSFXWidget::updateDownloadProgress, 0);
return CustomSFXWidget::updateSFXInfo(this);
}