//
// SliderTouchLogic::ccTouchBegan from 0x140084450 to 0x1400844f2 (162 bytes)
//
// 2 xrefs:
// > ??> @ 0x140713700
// > ??> @ 0x140912488
//
// 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 11:25:56 +0000
//
char __fastcall SliderTouchLogic::ccTouchBegan(__int64 a1, struct cocos2d::CCTouch *a2, struct cocos2d::CCEvent *a3)
{
__int64 v5; // rax
__int64 v6; // rdx
void (__fastcall ***v7)(_QWORD); // rcx
char v9; // [rsp+30h] [rbp+8h] BYREF
char v10; // [rsp+48h] [rbp+20h] BYREF
if ( !cocos2d::CCMenu::ccTouchBegan((cocos2d::CCMenu *)a1, a2, a3) )
return 0;
*(_BYTE *)(a1 - 320 + 472) = 1;
cocos2d::CCNode::convertTouchToNodeSpace(a1 - 320, &v9, a2);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 136) + 200LL))(*(_QWORD *)(a1 + 136));
cocos2d::CCPoint::operator-(&v9, &v10, v5);
cocos2d::CCPoint::operator=(a1 + 156, &v10);
v6 = *(_QWORD *)(a1 + 144);
if ( v6 )
{
v7 = *(void (__fastcall ****)(_QWORD))(v6 + 440);
if ( v7 )
(**v7)(v7);
}
return 1;
}