//
// cocos2d::extension::CCControlPotentiometer::setMaximumValue from 0x7acd72 to 0x7acd9c (42 bytes)
//
// 0 xrefs:
//
// 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 12:00:03 +0000
//
int __fastcall cocos2d::extension::CCControlPotentiometer::setMaximumValue(
cocos2d::extension::CCControlPotentiometer *this,
float a2)
{
float v2; // s14
v2 = *((float *)this + 94);
*((float *)this + 95) = a2;
if ( a2 <= v2 )
*((float *)this + 94) = a2 - 1.0;
return cocos2d::extension::CCControlPotentiometer::setValue(this, *((float *)this + 94));
}