//
// cocos2d::extension::CCControlColourPicker::colourSliderValueChanged from 0x1002436d4 to 0x10024378c (184 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCControlColourPicker::init @ 0x100243568
//
// 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::colourSliderValueChanged(
__int64 a1,
__int64 a2,
__n128 a3,
__n128 a4))(_QWORD, unsigned __int64)
{
double v5; // d2
double v6; // d0
double v7; // d1
double v8; // d2
__int64 v9; // x0
__int64 (__fastcall ***result)(_QWORD, unsigned __int64); // x0
a4.n128_f64[0] = *(float *)(a2 + 472);
v5 = *(float *)(a2 + 476);
*(_QWORD *)(a1 + 488) = a4.n128_u64[0];
*(double *)(a1 + 496) = v5;
a3.n128_u64[0] = *(_QWORD *)(a1 + 480);
v6 = cocos2d::extension::CCControlUtils::RGBfromHSV(a1, a3, a4, v5);
*(_BYTE *)(a1 + 474) = (int)(v8 * 255.0);
*(_WORD *)(a1 + 472) = (int)(v6 * 255.0) | ((unsigned __int16)(int)(v7 * 255.0) << 8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 256);
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;
}