//
// cocos2d::extension::CCControlHuePicker::setHuePercentage from 0x180008360 to 0x180008480 (288 bytes)
//
// 3 xrefs:
// > ??> @ 0x180027350
// > ??> @ 0x180032408
// > ??> @ 0x18004b81c
//
// This function is hookable on this platform (idp: pc, 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 12:15:36 +0000
//
void __fastcall cocos2d::extension::CCControlHuePicker::setHuePercentage(
cocos2d::extension::CCControlHuePicker *this,
float a2)
{
__int64 *v3; // rdi
float v4; // xmm10_4
__int64 v5; // rbx
float v6; // xmm9_4
float v7; // xmm7_4
float v8; // xmm6_4
float v9; // xmm0_4
__int64 v10; // rax
__int64 v11; // [rsp+20h] [rbp-58h] BYREF
float v12; // [rsp+28h] [rbp-50h]
float v13; // [rsp+2Ch] [rbp-4Ch]
char v14; // [rsp+80h] [rbp+8h] BYREF
*((float *)this + 119) = a2;
*((float *)this + 118) = a2 * 360.0;
cocos2d::CCNode::boundingBox(*((_QWORD *)this + 60), &v11);
v3 = *((__int64 **)this + 61);
v4 = v12 * 0.5;
v5 = *v3;
v6 = (float)(v12 * 0.5) - 15.0;
v7 = (float)((float)(*((float *)this + 119) * 360.0) - 180.0) * 0.017453292;
v8 = (float)(sinf(v7) * v6) + (float)((float)(v13 * 0.5) + *((float *)this + 125));
v9 = (float)(cosf(v7) * v6) + (float)(v4 + *((float *)this + 124));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v9, v8);
(*(void (__fastcall **)(__int64 *, __int64))(v5 + 184))(v3, v10);
}