//
// cocos2d::extension::CCControlSlider::setMaximumValue from 0x18000a990 to 0x18000a9cf (63 bytes)
//
// 2 xrefs:
// > ??> @ 0x180025f18
// > ??> @ 0x18002fdf8
//
// 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::setMaximumValue(
cocos2d::extension::CCControlSlider *this,
float a2)
{
float v2; // xmm0_4
v2 = *((float *)this + 119);
*((float *)this + 120) = a2;
*((float *)this + 122) = a2;
if ( v2 >= a2 )
*((float *)this + 119) = a2 - 1.0;
(*(void (**)(void))(*(_QWORD *)this + 1112LL))();
}