//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateWithHSV from 0x1800097e0 to 0x180009866 (134 bytes)
//
// 3 xrefs:
// > ??> @ 0x180027f28
// > ??> @ 0x180032408
// > ??> @ 0x18004b9a8
//
// 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::updateWithHSV(__int64 a1, __int64 *a2)
{
__m128d *v3; // rax
__int64 (__fastcall ***v4)(_QWORD, char *); // rcx
double v5; // xmm2_8
double v6; // xmm3_8
__int64 v8; // [rsp+20h] [rbp-48h] BYREF
__int128 v9; // [rsp+28h] [rbp-40h]
_BYTE v10[40]; // [rsp+40h] [rbp-28h] BYREF
char v11; // [rsp+70h] [rbp+8h] BYREF
char v12; // [rsp+71h] [rbp+9h]
char v13; // [rsp+72h] [rbp+Ah]
v8 = *a2;
v9 = xmmword_18002BCC0;
v3 = (__m128d *)cocos2d::extension::CCControlUtils::RGBfromHSV(v10, &v8);
v4 = (__int64 (__fastcall ***)(_QWORD, char *))(*(_QWORD *)(a1 + 480) + 320LL);
v5 = _mm_unpackhi_pd(*v3, *v3).m128d_f64[0];
v6 = v3[1].m128d_f64[0] * 255.0;
v11 = (int)(v3->m128d_f64[0] * 255.0);
v12 = (int)(v5 * 255.0);
v13 = (int)v6;
return (**v4)(v4, &v11);
}