//
// cocos2d::extension::CCControlSlider::setValue from 0x18000a900 to 0x18000a949 (73 bytes)
//
// 3 xrefs:
// > ??> @ 0x180025f08
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049b7c
//
// 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 cocos2d::extension::CCControlSlider::setValue(cocos2d::extension::CCControlSlider *this, float a2)
{
__int64 v3; // rax
v3 = *(_QWORD *)this;
*((float *)this + 118) = fminf(*((float *)this + 120), fmaxf(*((float *)this + 119), a2));
(*(void (**)(void))(v3 + 1064))();
(*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64))(*(_QWORD *)this + 1072LL))(this, 256);
}