//
// CustomSongWidget::updateProgressBar from 0x1400cb440 to 0x1400cb4bf (127 bytes)
//
// 2 xrefs:
// > CustomSongWidget::updateDownloadProgress @ 0x1400cb40b
// > ??> @ 0x1406c8340
//
// 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 CustomSongWidget::updateProgressBar(CustomSongWidget *a1, int a2)
{
cocos2d::CCSprite *m_sliderBar; // rbx
cocos2d::CCSprite_vtbl *v3; // rdi
const cocos2d::CCRect *v4; // rax
cocos2d::CCRect v5; // [rsp+30h] [rbp-18h] BYREF
m_sliderBar = a1->m_sliderBar;
v3 = m_sliderBar->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( a2 < 0 )
a2 = 0;
cocos2d::CCRect::CCRect(
&v5,
0.0,
0.0,
fminf(
a1->m_sliderGroove->m_obRect.size.width - 4.0,
(float)((float)a2 / 100.0) * (float)(a1->m_sliderGroove->m_obRect.size.width - 4.0)),
8.0);
v3->setTextureRect_0(m_sliderBar, v4);
}