//
// cocos2d::extension::CCControlSlider::ccTouchBegan from 0x18000a5a0 to 0x18000a69d (253 bytes)
//
// 3 xrefs:
// > ??> @ 0x180028030
// > ??> @ 0x180032408
// > ??> @ 0x18004ba80
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:37 +0000
//
char __fastcall cocos2d::extension::CCControlSlider::ccTouchBegan(
cocos2d::extension::CCControlSlider *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
_QWORD **v3; // rbx
__int64 v5; // rax
float *v6; // rax
__int64 v7; // rax
float v9; // [rsp+30h] [rbp+8h] BYREF
char v10; // [rsp+48h] [rbp+20h] BYREF
v3 = (_QWORD **)((char *)this - 320);
if ( !(*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1120LL))(
(char *)this - 320,
a2,
a3)
|| !((unsigned __int8 (__fastcall *)(_QWORD **))(*v3)[130])(v3)
|| !((unsigned __int8 (__fastcall *)(_QWORD **))(*v3)[43])(v3) )
{
return 0;
}
cocos2d::CCTouch::getLocation(a2);
v5 = cocos2d::CCNode::convertToNodeSpace(v3, &v10, &v9);
cocos2d::CCPoint::operator=(&v9, v5);
if ( v9 >= 0.0 )
{
v6 = (float *)(*(__int64 (__fastcall **)(_QWORD *))(*v3[64] + 320LL))(v3[64]);
if ( v9 > *v6 )
v9 = *(float *)(*(__int64 (__fastcall **)(_QWORD *))(*v3[64] + 320LL))(v3[64]);
}
else
{
v9 = 0.0;
}
v7 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const struct cocos2d::CCPoint *)&v9);
cocos2d::extension::CCControlSlider::sliderBegan(v3, v7);
return 1;
}