//
// SliderTouchLogic::ccTouchMoved from 0x1002ef288 to 0x1002ef378 (240 bytes)
//
// 2 xrefs:
// > sub_1002EF3E4 @ 0x1002ef3e8
// > ??> @ 0x1007e6e60
//
// 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 SliderTouchLogic::ccTouchMoved(SliderTouchLogic *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
__n128 v4; // q0
__n128 v5; // q1
float v6; // s2
float m_length; // s4
float v8; // s3
SliderThumb *m_thumb; // x20
Slider *m_slider; // x0
float32x2_t v11; // [xsp+0h] [xbp-20h] BYREF
float32x2_t v12; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCNode::convertTouchToNodeSpace(a1, a2);
sub_1000229F0(&v12, (float32x2_t *)&a1->m_position, &v11);
v4.n128_f64[0] = sub_1000229D0(&v12, (double *)&v11);
v5.n128_u32[0] = v12.u32[1];
v4.n128_u32[0] = v12.i32[0];
if ( a1->m_rotated )
v6 = v12.f32[1];
else
v6 = v12.f32[0];
m_length = a1->m_length;
v8 = m_length * -0.5;
if ( v6 >= (float)(m_length * -0.5) )
{
v8 = m_length * 0.5;
m_thumb = a1->m_thumb;
if ( v6 <= (float)(m_length * 0.5) )
{
if ( a1->m_rotated )
v4.n128_f32[0] = 0.0;
else
v5.n128_f32[0] = 0.0;
goto LABEL_16;
}
}
else
{
m_thumb = a1->m_thumb;
}
v5.n128_u32[0] = 0;
if ( a1->m_rotated )
v4.n128_f32[0] = 0.0;
else
v4.n128_f32[0] = v8;
if ( a1->m_rotated )
v5.n128_f32[0] = v8;
LABEL_16:
sub_100022980(v4, v5, &v11);
((void (__fastcall *)(SliderThumb *, float32x2_t *))m_thumb->setPosition)(m_thumb, &v11);
if ( a1->m_activateThumb )
((void (__fastcall *)(SliderThumb *))a1->m_thumb->activate)(a1->m_thumb);
m_slider = a1->m_slider;
if ( m_slider )
Slider::updateBar(m_slider);
}