//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0xd0f874 to 0xd0f934 (192 bytes)
//
// 2 xrefs:
// > ??> @ 0x7e0e8
// > ??> @ 0x150bfd0
//
// 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 13:07:02 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV(
__int64 a1,
double a2,
double a3,
double a4)
{
int v5; // w2
int v6; // w3
float v7; // s0
float v8; // s1
_BYTE v10[8]; // [xsp+58h] [xbp+58h] BYREF
float v11; // [xsp+60h] [xbp+60h] BYREF
v5 = *(_DWORD *)(a1 + 520);
v6 = *(_DWORD *)(a1 + 524);
v7 = (float)((float)v5 + *(float *)(a1 + 512)) + (double)v6 * (1.0 - a3);
v8 = (float)((float)v5 + *(float *)(a1 + 516)) + (double)v6 * a4;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v7, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const cocos2d::CCPoint *)v10);
cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, &v11);
return _stack_chk_guard;
}