//
// SliderTouchLogic::ccTouchBegan from 0x1002ef190 to 0x1002ef230 (160 bytes)
//
// 2 xrefs:
// > sub_1002EF230 @ 0x1002ef234
// > ??> @ 0x1007e6e58
//
// 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
//
bool __fastcall SliderTouchLogic::ccTouchBegan(SliderTouchLogic *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
_BOOL4 v5; // w19
float32x2_t *v6; // x0
double v7; // d0
Slider *m_slider; // x1
SliderDelegate *m_delegate; // x0
float32x2_t v11; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v12; // [xsp+8h] [xbp-28h] BYREF
cocos2d::CCPoint v13; // 0:kr00_8.8
v5 = cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);
if ( v5 )
{
a1->m_activateThumb = 1;
v13 = cocos2d::CCNode::convertTouchToNodeSpace(a1, a2);
v6 = (float32x2_t *)((__int64 (__fastcall *)(SliderThumb *, float, float))a1->m_thumb->getPosition)(
a1->m_thumb,
v13.x,
v13.y);
sub_1000229F0(&v12, v6, &v11);
v7 = sub_1000229D0(&a1->m_position, (double *)&v11);
m_slider = a1->m_slider;
if ( m_slider )
{
m_delegate = m_slider->m_delegate;
if ( m_delegate )
((void (__fastcall *)(SliderDelegate *, double))m_delegate->sliderBegan)(m_delegate, v7);
}
}
return v5;
}