//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x100253ae0 to 0x100253b64 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090dd00
//
// 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::updateDraggerWithHSV(
__int64 a1,
double a2,
double a3,
double a4)
{
float v5; // s3
int v6; // w8
float v7; // s0
float v8; // s1
double v9; // d0
__int64 v11; // [xsp+0h] [xbp-20h] BYREF
double v12; // [xsp+8h] [xbp-18h] BYREF
v5 = (float)*(int *)(a1 + 520);
v6 = *(_DWORD *)(a1 + 524);
v7 = (float)(*(float *)(a1 + 512) + v5) + (double)v6 * (1.0 - a3);
v8 = (float)(*(float *)(a1 + 516) + v5) + (double)v6 * a4;
sub_1000262BC((float *)&v12, v7, v8);
v9 = sub_1000262F4(&v11, &v12);
return cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, &v11, v9);
}