//
// cocos2d::extension::CCControlColourPicker::hueSliderValueChanged from 0x1002435f4 to 0x1002436d4 (224 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlColourPicker::init @ 0x100243544
//
// 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:25 +0000
//
__int64 (__fastcall ***__fastcall cocos2d::extension::CCControlColourPicker::hueSliderValueChanged(
__int64 a1,
__int64 a2,
__n128 a3,
__n128 a4))(_QWORD, unsigned __int64)
{
double v5; // d0
double v6; // d1
double v7; // d2
float v8; // s0
__int64 v9; // x0
__int64 (__fastcall ***result)(_QWORD, unsigned __int64); // x0
a3.n128_f64[0] = *(float *)(a2 + 472);
*(_QWORD *)(a1 + 480) = a3.n128_u64[0];
a4.n128_u64[0] = *(_QWORD *)(a1 + 488);
v5 = cocos2d::extension::CCControlUtils::RGBfromHSV(a1, a3, a4, *(double *)(a1 + 496));
*(_BYTE *)(a1 + 474) = (int)(v7 * 255.0);
*(_WORD *)(a1 + 472) = (int)(v5 * 255.0) | ((unsigned __int16)(int)(v6 * 255.0) << 8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 256);
v8 = *(double *)(a1 + 480);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 512) + 1360LL))(*(_QWORD *)(a1 + 512), v8);
(*(void (__fastcall **)(_QWORD, double, double, double))(**(_QWORD **)(a1 + 504) + 1368LL))(
*(_QWORD *)(a1 + 504),
*(double *)(a1 + 480),
*(double *)(a1 + 488),
*(double *)(a1 + 496));
v9 = *(_QWORD *)(a1 + 528);
if ( v9 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 960LL))(v9, a1 + 472);
result = *(__int64 (__fastcall ****)(_QWORD, unsigned __int64))(a1 + 536);
if ( result )
return (__int64 (__fastcall ***)(_QWORD, unsigned __int64))(**result)(
result,
*(unsigned __int16 *)(a1 + 472)
| ((unsigned __int64)*(unsigned __int8 *)(a1 + 474) << 16));
return result;
}