//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x180009dc0 to 0x180009e4e (142 bytes)
//
// 3 xrefs:
// > ??> @ 0x180025968
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049a80
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV(
__int64 a1,
__int64 a2)
{
__int64 v3; // rax
char v5; // [rsp+30h] [rbp+8h] BYREF
char v6; // [rsp+38h] [rbp+10h] BYREF
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v5,
(1.0 - *(double *)(a2 + 8)) * (double)*(int *)(a1 + 524) + (float)((float)*(int *)(a1 + 520) + *(float *)(a1 + 512)),
(float)((float)*(int *)(a1 + 520) + *(float *)(a1 + 516)) + (double)*(int *)(a1 + 524) * *(double *)(a2 + 16));
v3 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (const struct cocos2d::CCPoint *)&v5);
return cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v3);
}