//
// cocos2d::extension::CCControlSwitchSprite::setSliderXPosition from 0xa9f9cc to 0xa9fa04 (56 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCControlSwitchSprite::updateTweenAction @ 0xa9fa04
// > cocos2d::extension::CCControlSwitch::setOn @ 0xa9feb8
// > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0xaa00d0
// > ??> @ 0xc1c98
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControlSwitchSprite::setSliderXPosition(
cocos2d::extension::CCControlSwitchSprite *this,
float a2)
{
float v2; // s1
v2 = *((float *)this + 154);
if ( v2 < a2 && (v2 = *((float *)this + 153), a2 < v2) )
*((float *)this + 152) = a2;
else
*((float *)this + 152) = v2;
return cocos2d::extension::CCControlSwitchSprite::needsLayout((cocos2d::CCSprite *)this);
}