//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x1001be058 to 0x1001be0dc (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007b63b8
//
// 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,
__n128 a2,
__n128 a3,
double a4)
{
float boxPos; // s3
int boxSize; // w8
__int64 v7; // [xsp+0h] [xbp-20h] BYREF
__int64 v8; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCPoint v9; // 0:s0.4,4:s1.4
boxPos = (float)a1->boxPos;
boxSize = a1->boxSize;
a2.n128_f64[0] = (float)(a1->m_startPos.x + boxPos) + (double)boxSize * (1.0 - a3.n128_f64[0]);
a2.n128_f32[0] = a2.n128_f64[0];
a3.n128_f64[0] = (float)(a1->m_startPos.y + boxPos) + (double)boxSize * a4;
a3.n128_f32[0] = a3.n128_f64[0];
sub_100022980(a2, a3, &v8);
v9.x = sub_1000229B8(&v7, &v8);
cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v9);
}