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