//
// Slider::updateBar from 0x3db1f4 to 0x3db25c (104 bytes)
//
// 2 xrefs:
// > SliderTouchLogic::ccTouchMoved @ 0x3db378
// > Slider::setValue @ 0x3db3ba
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:47 +0000
//
int __fastcall Slider::updateBar(Slider *this)
{
SliderThumb *Thumb; // r0
float v3; // r0
float v4; // s15
int v5; // r6
int (__fastcall *v6)(int, _BYTE *); // r7
float v7; // r3
_BYTE v9[16]; // [sp+Ch] [bp-18h] BYREF
Thumb = (SliderThumb *)Slider::getThumb(this);
v3 = COERCE_FLOAT(SliderThumb::getValue(Thumb));
v4 = *((float *)this + 82);
v5 = *((_DWORD *)this + 80);
v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 568);
if ( v4 > (float)(v4 * v3) )
v7 = v4 * v3;
else
v7 = *((float *)this + 82);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, 0.0, 0.0, v7, *((float *)this + 83));
return v6(v5, v9);
}