//
// cocos2d::extension::CCControlHuePicker::updateSliderPosition from 0xa9d444 to 0xa9d4f8 (180 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControlHuePicker::checkSliderPosition @ 0xa9d584
// > ??> @ 0x54f18
//
// 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
//
void cocos2d::extension::CCControlHuePicker::updateSliderPosition(
cocos2d::extension::CCControlHuePicker *a1,
cocos2d::CCPoint a2)
{
float *v2; // x1
float v4; // s0
float *v5; // [xsp+28h] [xbp+28h]
float v6; // [xsp+40h] [xbp+40h]
float v7; // [xsp+44h] [xbp+44h]
v5 = v2;
cocos2d::CCNode::boundingBox(a1->m_background);
v4 = atan2f(
v5[1] - (float)(a1->m_startPos.y + (float)(v7 * 0.5)),
*v5 - (float)(a1->m_startPos.x + (float)(v6 * 0.5)));
((void (__fastcall *)(cocos2d::extension::CCControlHuePicker *, float))a1->getHue)(a1, (float)(v4 * 57.296) + 180.0);
a1->sendActionsForControlEvents(a1, 256);
}