//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateWithHSV from 0x100351be0 to 0x100351c78 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b23670
//
// 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:28:49 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::updateWithHSV(
__int64 a1,
int a2,
int a3,
int a4,
int a5,
int a6,
__int64 a7)
{
__int64 v7; // rdi
double v9[4]; // [rsp+20h] [rbp-40h] BYREF
_QWORD v10[4]; // [rsp+40h] [rbp-20h] BYREF
v10[0] = a7;
*(_OWORD *)&v10[1] = xmmword_100A036A0;
cocos2d::extension::CCControlUtils::RGBfromHSV((unsigned int)v9, a2, a3, a4, a5, a6, a7, 0x3FF0000000000000LL);
v7 = *(_QWORD *)(a1 + 480);
BYTE2(v10[0]) = (int)(255.0 * v9[2]);
LOWORD(v10[0]) = ((unsigned __int8)(int)(v9[1] * 255.0) << 8) | (unsigned __int8)(int)(v9[0] * 255.0);
return (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v7 + 960LL))(v7, v10);
}