//
// cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0xa9ded8 to 0xa9e00c (308 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0xa9e0c0
// > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0xa9e12c
// > ??> @ 0x67488
//
// 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 cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition(
cocos2d::extension::CCControlSaturationBrightnessPicker *a1,
cocos2d::CCPoint a2)
{
cocos2d::CCPoint *v2; // x1
unsigned __int8 v3; // w2
int v4; // w22
float x; // s8
float y; // s10
float v8; // s8
cocos2d::CCPoint *v10; // [xsp+58h] [xbp+58h]
cocos2d::CCPoint v11; // [xsp+68h] [xbp+68h] BYREF
float v12; // [xsp+70h] [xbp+70h]
float v13; // [xsp+74h] [xbp+74h]
cocos2d::CCPoint v14; // 0:s0.4,4:s1.4
v4 = v3;
x = a1->m_startPos.x;
v10 = v2;
cocos2d::CCNode::boundingBox(a1->m_background);
y = a1->m_startPos.y;
cocos2d::CCNode::boundingBox(a1->m_background);
v8 = sqrtf(
(float)((float)(v10->y - (float)(y + (float)(v13 * 0.5))) * (float)(v10->y - (float)(y + (float)(v13 * 0.5))))
+ (float)((float)(v10->x - (float)(x + (float)(v12 * 0.5))) * (float)(v10->x - (float)(x + (float)(v12 * 0.5)))));
cocos2d::CCNode::boundingBox(a1->m_background);
if ( v8 > (float)(v12 * 0.5) && !v4 )
return 0;
cocos2d::CCPoint::CCPoint(&v11, v10);
cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v14);
a1->sendActionsForControlEvents(a1, 256);
return 1;
}