//
// cocos2d::extension::CCControlPotentiometer::setMaximumValue from 0x5a7062 to 0x5a708c (42 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::extension::CCControlPotentiometer::setMaximumValue(
cocos2d::extension::CCControlPotentiometer *a1,
float a2)
{
float v2; // s14
v2 = *(float *)&a1[1].m_uAutoReleaseCount;
*(float *)&a1[1].m_eObjType = a2;
if ( a2 <= v2 )
*(float *)&a1[1].m_uAutoReleaseCount = a2 - 1.0;
cocos2d::extension::CCControlPotentiometer::setValue(a1, *(float *)&a1[1].m_uAutoReleaseCount);
}