//
// CustomSFXWidget::updateDownloadProgress from 0xa33854 to 0xa338bc (104 bytes)
//
// 6 xrefs:
// > ??> @ 0x72450
// > CustomSFXWidget::startMonitorDownload @ 0xa31c60
// > CustomSFXWidget::startMonitorDownload @ 0xa31c74
// > CustomSFXWidget::downloadFailed @ 0xa33838
// > CustomSFXWidget::updateDownloadProgress @ 0xa338a4
// > ??> @ 0x122bc68
//
// 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 CustomSFXWidget::updateDownloadProgress(CustomSFXWidget *a1, float a2)
{
MusicDownloadManager *v3; // x0
int SFXDownloadProgress; // w1
cocos2d::SEL_SCHEDULE v5; // 0:x1.16
v3 = MusicDownloadManager::sharedState();
SFXDownloadProgress = MusicDownloadManager::getSFXDownloadProgress(v3, a1->m_sfxObject->m_sfxID);
if ( SFXDownloadProgress == -1 || !a1->m_sfxObject )
{
v5.adj = 0;
v5.ptr = (void (__cdecl *)(float))CustomSFXWidget::updateDownloadProgress;
cocos2d::CCNode::unschedule(a1, v5);
CustomSFXWidget::updateSFXInfo(a1);
}
else
{
CustomSFXWidget::updateProgressBar(a1, SFXDownloadProgress);
}
}