//
// cocos2d::extension::CCControlSlider::setMaximumValue from 0xd0fca8 to 0xd0fce8 (64 bytes)
//
// 2 xrefs:
// > ??> @ 0x54b20
// > ??> @ 0x150c6f0
//
// 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 13:07:02 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSlider::setMaximumValue(
cocos2d::extension::CCControlSlider *this,
float a2)
{
float v2; // s1
v2 = *((float *)this + 119);
*((float *)this + 120) = a2;
*((float *)this + 122) = a2;
if ( a2 <= v2 )
*((float *)this + 119) = a2 - 1.0;
return (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *, float))(*(_QWORD *)this + 1360LL))(
this,
*((float *)this + 118));
}