//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x180008df0 to 0x180008ec6 (214 bytes)
//
// 3 xrefs:
// > ??> @ 0x180027458
// > ??> @ 0x180032408
// > ??> @ 0x18004b8e8
//
// 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::CCControlPotentiometer::ccTouchBegan(
cocos2d::extension::CCControlPotentiometer *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
_QWORD *v3; // rdi
__int64 v6; // rax
__int64 v7; // rdx
char v9; // [rsp+30h] [rbp+8h] 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 + 1040LL))(v3)
|| !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 344LL))(v3) )
{
return 0;
}
v6 = (*(__int64 (__fastcall **)(_QWORD *, char *, struct cocos2d::CCTouch *))(*v3 + 1112LL))(v3, &v9, a2);
cocos2d::CCPoint::operator=((char *)this + 168, v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, (cocos2d::extension::CCControlPotentiometer *)((char *)this + 168));
LOBYTE(v7) = 1;
(*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 1048LL))(v3, v7);
(**(void (__fastcall ***)(__int64, void *))(v3[59] + 320LL))(v3[59] + 320LL, &unk_180025A14);
return 1;
}