//
// cocos2d::extension::CCControlSwitch::ccTouchMoved from 0x18000d0f0 to 0x18000d199 (169 bytes)
//
// 3 xrefs:
// > ??> @ 0x180026658
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049dd4
//
// 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::CCControlSwitch::ccTouchMoved(
cocos2d::extension::CCControlSwitch *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
__int64 v4; // rax
__int64 v5; // rax
float *v6; // rcx
float v7; // xmm1_4
float v8; // xmm0_4
float v9; // [rsp+30h] [rbp+8h] BYREF
char v10; // [rsp+48h] [rbp+20h] BYREF
cocos2d::CCTouch::getLocation(a2);
v4 = cocos2d::CCNode::convertToNodeSpace((char *)this - 320, &v10, &v9);
cocos2d::CCPoint::operator=(&v9, v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v9 - *((float *)this + 40), 0.0);
cocos2d::CCPoint::operator=(&v9, v5);
v6 = *((float **)this + 19);
v7 = v9;
*((_BYTE *)this + 164) = 1;
v8 = v6[154];
if ( v8 < v7 )
v8 = fminf(v6[153], v7);
v6[152] = v8;
sub_18000C670((__int64)v6);
}