//
// sub_100368CE0 from 0x100368ce0 to 0x100368d5f (127 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091b500
//
// 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
//
bool __fastcall sub_100368CE0(__int64 a1, __int64 a2)
{
cocos2d::extension::CCControlSaturationBrightnessPicker *v2; // rbx
cocos2d::CCPoint v3; // xmm0_8
double v5; // [rsp+8h] [rbp-28h] BYREF
_QWORD v6[4]; // [rsp+10h] [rbp-20h] BYREF
v2 = (cocos2d::extension::CCControlSaturationBrightnessPicker *)(a1 - 320);
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1256LL))(a1 - 320)
|| !((unsigned __int8 (__fastcall *)(cocos2d::extension::CCControlSaturationBrightnessPicker *))v2->isVisible)(v2) )
{
return 0;
}
((void (__fastcall *)(double *, cocos2d::extension::CCControlSaturationBrightnessPicker *, __int64))v2->getTouchLocation)(
&v5,
v2,
a2);
*(double *)&v3 = sub_10028CC60(v6, &v5);
return cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition(v2, v3);
}