//
// cocos2d::extension::CCControlColourPicker::colourSliderValueChanged from 0xd0e1d8 to 0xd0e294 (188 bytes)
//
// 3 xrefs:
// > ??> @ 0x47248
// > cocos2d::extension::CCControlColourPicker::init @ 0xd0e81c
// > ??> @ 0x15415b0
//
// 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 13:07:01 +0000
//
__int64 (__fastcall ***__fastcall cocos2d::extension::CCControlColourPicker::colourSliderValueChanged(
cocos2d::extension::CCControlColourPicker *this,
cocos2d::CCObject *a2,
long double a3,
long double a4,
long double a5))(_QWORD, _QWORD)
{
double v6; // d0
__int64 v7; // x5
double v8; // d1
double v9; // d2
__int64 v10; // x0
__int64 (__fastcall ***result)(_QWORD, _QWORD); // x0
*(_QWORD *)&a3 = *((_QWORD *)this + 60);
*(double *)&a4 = *((float *)a2 + 118);
*((_QWORD *)this + 61) = *(_QWORD *)&a4;
*(double *)&a5 = *((float *)a2 + 119);
*((_QWORD *)this + 62) = *(_QWORD *)&a5;
v6 = cocos2d::extension::CCControlUtils::RGBfromHSV(a3, a4, a5);
v7 = *(_QWORD *)this;
*((_BYTE *)this + 473) = (unsigned int)(v8 * 255.0);
*((_BYTE *)this + 474) = (unsigned int)(v9 * 255.0);
*((_BYTE *)this + 472) = (unsigned int)(v6 * 255.0);
(*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(v7 + 1320))(this, 256);
v10 = *((_QWORD *)this + 66);
if ( v10 )
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v10 + 960LL))(v10, (char *)this + 472);
result = *((__int64 (__fastcall ****)(_QWORD, _QWORD))this + 67);
if ( result )
return (__int64 (__fastcall ***)(_QWORD, _QWORD))(**result)(result, *((_QWORD *)this + 59));
return result;
}