//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x5a3588 to 0x5a3620 (152 bytes)
//
// 0 xrefs:
//
// 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
//
void __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV(
cocos2d::extension::CCControlSaturationBrightnessPicker *a1,
int a2,
int a3,
int a4,
double a5,
double a6)
{
int boxPos; // s15
float x; // s12
double boxSize; // d5
float v10; // s13
float v11; // s15
cocos2d::CCPoint v12; // r1
cocos2d::CCPoint v13; // [sp+4h] [bp-8h] BYREF
cocos2d::CCPoint v14; // [sp+Ch] [bp+0h] BYREF
int varg_r2; // [sp+30h] [bp+24h]
int varg_r3; // [sp+34h] [bp+28h]
boxPos = a1->boxPos;
x = a1->m_startPos.x;
varg_r2 = a3;
varg_r3 = a4;
boxSize = (double)a1->boxSize;
v10 = (float)((float)boxPos + x) + boxSize * (1.0 - a5);
v11 = (float)((float)boxPos + a1->m_startPos.y) + boxSize * a6;
cocos2d::CCPoint::CCPoint(&v13, v10, v11);
cocos2d::CCPoint::CCPoint(&v14, &v13);
LODWORD(v12.x) = &v14;
cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v12);
}