//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x1003465a0 to 0x10034664e (174 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b1fcf0
//
// 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:28:45 +0000
//
char __fastcall cocos2d::extension::CCControlPotentiometer::ccTouchBegan(__int64 a1, __int64 a2)
{
__int64 v2; // rax
_QWORD v4[4]; // [rsp+0h] [rbp-20h] BYREF
v4[0] = v2;
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1352LL))(a1)
|| !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1272LL))(a1)
|| !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) )
{
return 0;
}
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*(_QWORD *)a1 + 1344LL))(v4, a1, a2);
sub_100278300((_QWORD *)(a1 + 488), v4);
sub_1002782D0(v4, (_QWORD *)(a1 + 488));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1280LL))(a1, 1);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 472) + 960LL))(*(_QWORD *)(a1 + 472), &unk_100A08215);
return 1;
}