//
// cocos2d::extension::CCControlColourPicker::setColorValue from 0x100243880 to 0x10024393c (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x100906b30
//
// 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::setColorValue(
__int64 a1,
__int16 *a2,
float a3,
float a4,
double a5,
float a6))(_QWORD, unsigned __int64)
{
__int16 v7; // w8
__int64 v8; // d1
__int64 v9; // d2
__int64 v10; // x0
__int64 (__fastcall ***result)(_QWORD, unsigned __int64); // x0
v7 = *a2;
*(_BYTE *)(a1 + 474) = *((_BYTE *)a2 + 2);
*(_WORD *)(a1 + 472) = v7;
LOBYTE(a3) = *(_BYTE *)a2;
LOBYTE(a4) = *((_BYTE *)a2 + 1);
LOBYTE(a6) = *((_BYTE *)a2 + 2);
*(double *)(a1 + 480) = cocos2d::extension::CCControlUtils::HSVfromRGB(
(float)((float)LODWORD(a3) / 255.0),
(float)((float)LODWORD(a4) / 255.0),
(float)((float)LODWORD(a6) / 255.0),
1.0);
*(_QWORD *)(a1 + 488) = v8;
*(_QWORD *)(a1 + 496) = v9;
cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(a1);
v10 = *(_QWORD *)(a1 + 528);
if ( v10 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 960LL))(v10, 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;
}