//
// cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan from 0x100253e14 to 0x100253e94 (128 bytes)
//
// 2 xrefs:
// > sub_100253E94 @ 0x100253e98
// > ??> @ 0x10090db20
//
// This function is hookable on this platform (idp: arm, 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 11:01:32 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // [xsp+0h] [xbp-20h] BYREF
__int64 v6; // [xsp+8h] [xbp-18h] BYREF
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1272LL))(a1);
if ( (_DWORD)result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1);
if ( (_DWORD)result )
{
(*(void (__fastcall **)(__int64 *__return_ptr, __int64, __int64))(*(_QWORD *)a1 + 1344LL))(&v6, a1, a2);
sub_1000262F4(&v5, (double *)&v6);
return cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition(a1, (__int64)&v5, 0);
}
}
return result;
}