//
// cocos2d::extension::CCControlSwitchSprite::setSliderXPosition from 0x5a483c to 0x5a4868 (44 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCControlSwitchSprite::updateTweenAction @ 0x5a4868
// > cocos2d::extension::CCControlSwitch::setOn @ 0x5a4b2c
// > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0x5a4c7a
//
// 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 __fastcall cocos2d::extension::CCControlSwitchSprite::setSliderXPosition(cocos2d::CCSprite *this, float a2)
{
float v2; // s15
v2 = *((float *)this + 130);
if ( a2 > v2 )
{
v2 = *((float *)this + 129);
if ( a2 < v2 )
v2 = a2;
}
*((float *)this + 128) = v2;
cocos2d::extension::CCControlSwitchSprite::needsLayout(this);
}