//
// Slider::updateBar from 0x2f5a6c to 0x2f5ad4 (104 bytes)
//
// 2 xrefs:
// > SliderTouchLogic::ccTouchMoved @ 0x2f5bbe
// > Slider::setValue @ 0x2f5bfa
//
// 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 Slider::updateBar(Slider *a1)
{
SliderThumb *Thumb; // r0
float Value; // r0
float m_width; // s15
cocos2d::CCSprite *m_sliderBar; // r6
void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // r7
float v7; // r3
cocos2d::CCRect v8; // [sp+Ch] [bp-18h] BYREF
Thumb = Slider::getThumb(a1);
Value = SliderThumb::getValue(Thumb);
m_width = a1->m_width;
m_sliderBar = a1->m_sliderBar;
setTextureRect = m_sliderBar->setTextureRect;
if ( m_width > (float)(m_width * Value) )
v7 = m_width * Value;
else
v7 = a1->m_width;
cocos2d::CCRect::CCRect(&v8, 0.0, 0.0, v7, a1->m_height);
setTextureRect(m_sliderBar, &v8);
}