//
// cocos2d::extension::CCControlPotentiometer::ccTouchBegan from 0x180009340 to 0x180009416 (214 bytes)
//
// 3 xrefs:
// > ??> @ 0x180024ec0
// > ??> @ 0x18002fdf8
// > ??> @ 0x1800499b4
//
// 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
//
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) + 1104LL))(
(char *)this - 320,
a2,
a3)
|| !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 1024LL))(v3)
|| !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*v3 + 328LL))(v3) )
{
return 0;
}
v6 = (*(__int64 (__fastcall **)(_QWORD *, char *, struct cocos2d::CCTouch *))(*v3 + 1096LL))(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 + 1032LL))(v3, v7);
(**(void (__fastcall ***)(__int64, void *))(v3[59] + 320LL))(v3[59] + 320LL, &unk_1800234A4);
return 1;
}