//
// cocos2d::extension::CCControlSlider::ccTouchBegan from 0xa9ebe0 to 0xa9ecb8 (216 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlSlider::ccTouchBegan @ 0xa9ecbc
// > ??> @ 0x9a0e0
// > ??> @ 0x11f6ce0
//
// 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 cocos2d::extension::CCControlSlider::ccTouchBegan(
cocos2d::extension::CCControlSlider *a1,
cocos2d::CCTouch *a2,
cocos2d::CCEvent *a3)
{
bool v5; // w21
cocos2d::CCPoint v7; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v8; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v9; // 0:s0.4,4:s1.4
if ( !((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlSlider *))a1->isTouchInside)(a1) )
return 0;
if ( !a1->isEnabled(a1) )
return 0;
v5 = a1->isVisible(a1);
if ( !v5 )
return 0;
cocos2d::extension::CCControlSlider::locationFromTouch(a1, a2);
cocos2d::CCPoint::CCPoint(&v8, &v7);
cocos2d::extension::CCControlSlider::sliderBegan(a1, v9);
return v5;
}