//
// cocos2d::extension::CCControlHuePicker::checkSliderPosition from 0x180008ae0 to 0x180008b98 (184 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCControlHuePicker::ccTouchBegan @ 0x180008c01
// > cocos2d::extension::CCControlHuePicker::ccTouchMoved @ 0x180008c5a
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004990c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall cocos2d::extension::CCControlHuePicker::checkSliderPosition(__int64 *a1, float *a2, char a3)
{
float v6; // xmm0_4
float v7; // xmm7_4
float v8; // xmm0_4
float *v9; // rax
char v11; // [rsp+48h] [rbp+10h] BYREF
v6 = powf(*a2 + 10.0, 2.0);
v7 = v6 + powf(a2[1], 2.0);
if ( v7 < 0.0 )
v8 = sqrtf(v7);
else
v8 = fsqrt(v7);
if ( (v8 >= 85.0 || v8 <= 50.0) && !a3 )
return 0;
v9 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const struct cocos2d::CCPoint *)a2);
cocos2d::extension::CCControlHuePicker::updateSliderPosition(a1, v9);
return 1;
}