//
// cocos2d::extension::CCControlSaturationBrightnessPicker::updateWithHSV from 0x100253a70 to 0x100253ae0 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090dcf8
//
// 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 11:01:32 +0000
//
__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::updateWithHSV(
__int64 a1,
__n128 a2,
__n128 a3)
{
double v4; // d0
double v5; // d1
double v6; // d2
__int64 v7; // x0
__int16 v9; // [xsp+Ch] [xbp-14h] BYREF
char v10; // [xsp+Eh] [xbp-12h]
a3.n128_u64[0] = 1.0;
v4 = cocos2d::extension::CCControlUtils::RGBfromHSV(a1, a2, a3, 1.0);
v7 = *(_QWORD *)(a1 + 480);
v10 = (int)(v6 * 255.0);
v9 = (int)(v4 * 255.0) | ((unsigned __int16)(int)(v5 * 255.0) << 8);
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v7 + 960LL))(v7, &v9);
}