//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x180009870 to 0x1800098fe (142 bytes)
//
// 3 xrefs:
// > ??> @ 0x180027f30
// > ??> @ 0x180032408
// > ??> @ 0x18004b9b4
//
// 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:15:37 +0000
//
__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);
}