//
// cocos2d::extension::CCControlHuePicker::updateSliderPosition from 0x1800084f0 to 0x18000858f (159 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCControlHuePicker::checkSliderPosition @ 0x180008628
// > ??> @ 0x180032408
// > ??> @ 0x18004b834
//
// 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
//
__int64 __fastcall cocos2d::extension::CCControlHuePicker::updateSliderPosition(__int64 a1, float *a2)
{
_BYTE v5[8]; // [rsp+20h] [rbp-18h] BYREF
float v6; // [rsp+28h] [rbp-10h]
float v7; // [rsp+2Ch] [rbp-Ch]
cocos2d::CCNode::boundingBox(*(_QWORD *)(a1 + 480), v5);
atan2f(
a2[1] - (float)((float)(v7 * 0.5) + *(float *)(a1 + 500)),
*a2 - (float)((float)(v6 * 0.5) + *(float *)(a1 + 496)));
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1128LL))(a1);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 256);
}