//
// cocos2d::extension::CCControlHuePicker::ccTouchBegan from 0x180008650 to 0x1800086ce (126 bytes)
//
// 3 xrefs:
// > ??> @ 0x180026e88
// > ??> @ 0x180032408
// > ??> @ 0x18004b84c
//
// 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:36 +0000
//
char __fastcall cocos2d::extension::CCControlHuePicker::ccTouchBegan(
cocos2d::extension::CCControlHuePicker *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
char *v3; // rbx
float *v5; // rax
char v7; // [rsp+30h] [rbp+8h] BYREF
char v8; // [rsp+48h] [rbp+20h] BYREF
v3 = (char *)this - 320;
if ( !(*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1040LL))(
(char *)this - 320,
a2,
a3)
|| !(*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 344LL))(v3) )
{
return 0;
}
(*(void (__fastcall **)(char *, char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1112LL))(v3, &v7, a2);
v5 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, (const struct cocos2d::CCPoint *)&v7);
return cocos2d::extension::CCControlHuePicker::checkSliderPosition((__int64)v3, v5, 0);
}