//
// cocos2d::extension::CCControlSwitchSprite::setSliderXPosition from 0xd11428 to 0xd11460 (56 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCControlSwitchSprite::updateTweenAction @ 0xd11460
// > cocos2d::extension::CCControlSwitch::setOn @ 0xd11914
// > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0xd11b2c
// > ??> @ 0xfc640
//
// This function is hookable on this platform (idp: arm, 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 13:07:03 +0000
//
__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(this);
}