//
// cocos2d::extension::CCControlHuePicker::checkSliderPosition from 0x1001afc54 to 0x1001afcd4 (128 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlHuePicker::ccTouchBegan @ 0x1001afd40
// > cocos2d::extension::CCControlHuePicker::ccTouchMoved @ 0x1001afd98
//
// 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
//
bool __fastcall cocos2d::extension::CCControlHuePicker::checkSliderPosition(
cocos2d::extension::CCControlHuePicker *a1,
cocos2d::CCPoint a2)
{
__int64 v2; // x1
int v3; // w2
float v4; // s0
_BOOL4 v6; // w8
char v7; // w20
__int64 v10; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCPoint v11; // 0:s0.4,4:s1.4
v4 = sqrtf(
(float)((float)(*(float *)v2 + 10.0) * (float)(*(float *)v2 + 10.0))
+ (float)(*(float *)(v2 + 4) * *(float *)(v2 + 4)));
v6 = v4 > 50.0 && v4 < 85.0;
v7 = v6 | v3;
if ( (v6 | v3) == 1 )
{
v11.x = sub_1000229B8(&v10, (__int64 *)v2);
cocos2d::extension::CCControlHuePicker::updateSliderPosition(a1, v11);
}
return v7 & 1;
}