//
// Slider::updateBar from 0x6b5ec4 to 0x6b5f60 (156 bytes)
//
// 3 xrefs:
// > SliderTouchLogic::ccTouchMoved @ 0x6b6064
// > Slider::setValue @ 0x6b6144
// > ??> @ 0xd8ec8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:50:52 +0000
//
__int64 __fastcall Slider::updateBar(Slider *this)
{
SliderThumb *Thumb; // x0
float Value; // s0
float v4; // s1
float v5; // s2
__int64 v6; // x21
float v7; // s3
void (__fastcall *v8)(__int64, _BYTE *); // x20
_BYTE v10[16]; // [xsp+48h] [xbp+48h] BYREF
Thumb = (SliderThumb *)Slider::getThumb(this);
Value = SliderThumb::getValue(Thumb);
v4 = *((float *)this + 108);
v5 = Value * v4;
if ( v4 <= (float)(Value * v4) )
v5 = *((float *)this + 108);
v6 = *((_QWORD *)this + 52);
v7 = *((float *)this + 109);
v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 1136LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, 0.0, 0.0, v5, v7);
v8(v6, v10);
return _stack_chk_guard;
}