//
// CustomSFXWidget::updateProgressBar from 0x1002f0bec to 0x1002f0c64 (120 bytes)
//
// 3 xrefs:
// > CustomSFXWidget::init @ 0x1002f089c
// > CustomSFXWidget::startMonitorDownload @ 0x1002f1310
// > CustomSFXWidget::updateDownloadProgress @ 0x1002f1650
//
// 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 CustomSFXWidget::updateProgressBar(CustomSFXWidget *a1, int a2)
{
cocos2d::CCSprite *m_progressBarSprite; // x19
float v3; // s0
float v4; // s2
float v5[4]; // [xsp+0h] [xbp-20h] BYREF
m_progressBarSprite = a1->m_progressBarSprite;
v3 = a1->m_progressOutlineSprite->m_obRect.size.width + -4.0;
if ( v3 <= (float)((float)((float)(a2 & (unsigned int)~(a2 >> 31)) / 100.0) * v3) )
v4 = a1->m_progressOutlineSprite->m_obRect.size.width + -4.0;
else
v4 = (float)((float)(a2 & (unsigned int)~(a2 >> 31)) / 100.0) * v3;
sub_100022990(v5, 0.0, 0.0, v4, 8.0);
((void (__fastcall *)(cocos2d::CCSprite *, float *))m_progressBarSprite->setTextureRect)(m_progressBarSprite, v5);
}