//
// SliderTouchLogic::ccTouchBegan from 0x594a08 to 0x594ad4 (204 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SliderTouchLogic::ccTouchBegan @ 0x594ad8
// > ??> @ 0xb33e8
// > ??> @ 0x113fb30
//
// 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 SliderTouchLogic::ccTouchBegan(SliderTouchLogic *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
bool v5; // w20
__int64 v7; // x0
float v8; // s0
float v9; // s1
Slider *m_slider; // x0
_BYTE v11[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v12; // [xsp+50h] [xbp+50h] 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);
v7 = ((__int64 (__fastcall *)(SliderThumb *, float, float))a1->m_thumb->getPosition)(a1->m_thumb, v13.x, v13.y);
cocos2d::CCPoint::operator-(&v12, v11, v7);
cocos2d::CCPoint::operator=(&a1->m_position, v8, v9);
m_slider = a1->m_slider;
if ( m_slider )
Slider::sliderBegan(m_slider);
}
return v5;
}