//
// cocos2d::extension::CCControlPotentiometer::setMaximumValue from 0x180008cb0 to 0x180008ce0 (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x180032408
//
// This function is hookable on this platform (idp: pc, 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:15:37 +0000
//
void __fastcall cocos2d::extension::CCControlPotentiometer::setMaximumValue(
cocos2d::extension::CCControlPotentiometer *this,
float a2)
{
float v3; // xmm1_4
v3 = *((float *)this + 125);
*((float *)this + 126) = a2;
if ( v3 >= a2 )
{
v3 = a2 - 1.0;
*((float *)this + 125) = a2 - 1.0;
}
cocos2d::extension::CCControlPotentiometer::setValue(this, v3);
}