//
// cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan from 0x100352070 to 0x1003520e1 (113 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b23498
//
// 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:50 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan(__int64 a1, __int64 a2)
{
__int64 v3; // [rsp+8h] [rbp-28h] BYREF
_QWORD v4[4]; // [rsp+10h] [rbp-20h] BYREF
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1272LL))(a1)
|| !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) )
{
return 0;
}
(*(void (__fastcall **)(__int64 *, __int64, __int64))(*(_QWORD *)a1 + 1344LL))(&v3, a1, a2);
sub_1002782D0(v4, &v3);
return cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition(a1, (__int64)v4, 0);
}