//
// Slider::setRotated from 0x100304f10 to 0x100305018 (264 bytes)
//
// 4 xrefs:
// > ColorSelectLiveOverlay::init @ 0x100568ecb
// > ColorSelectLiveOverlay::init @ 0x100568fb0
// > ColorSelectLiveOverlay::init @ 0x10056908b
// > ColorSelectLiveOverlay::init @ 0x100569166
//
// 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 __fastcall Slider::setRotated(Slider *a1, bool a2)
{
SliderTouchLogic *m_touchLogic; // rax
SliderThumb *m_thumb; // r15
_BOOL8 m_vertical; // r12
cocos2d::CCSprite *m_groove; // rdi
__int64 v6; // xmm0_8
float v7; // [rsp+0h] [rbp-30h] BYREF
float m_length; // [rsp+8h] [rbp-28h]
float v9; // [rsp+Ch] [rbp-24h]
m_touchLogic = a1->m_touchLogic;
m_touchLogic->m_rotated = a2;
m_thumb = m_touchLogic->m_thumb;
m_vertical = m_thumb->m_vertical;
v9 = *(float *)(((__int64 (__fastcall *)(SliderThumb *))m_thumb->getPosition)(m_thumb) + 4 * m_vertical);
m_length = m_thumb->m_length;
v9 = (float)((float)(((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb) * m_length) * 0.5) + v9;
m_length = m_thumb->m_length;
v9 = v9 / (float)(((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb) * m_length);
m_thumb->m_vertical = a2;
sub_10028CBE0(&v7, 0.0, 0.0);
((void (__fastcall *)(SliderThumb *, float *))m_thumb->setPosition)(m_thumb, &v7);
SliderThumb::setValue(m_thumb, v9);
m_groove = a1->m_groove;
if ( a2 )
v6 = 1119092736;
else
v6 = 0;
((void (__fastcall *)(cocos2d::CCSprite *, double))m_groove->setRotation)(m_groove, *(double *)&v6);
}