//
// Slider::setMaxOffset from 0x100305020 to 0x10030511a (250 bytes)
//
// 6 xrefs:
// > SetupTriggerPopup::createValueControlAdvanced @ 0x10023a12e
// > CreateParticlePopup::createParticleSlider @ 0x100474045
// > ColorSelectLiveOverlay::init @ 0x100568edf
// > ColorSelectLiveOverlay::init @ 0x100568fc4
// > ColorSelectLiveOverlay::init @ 0x10056909f
// > ColorSelectLiveOverlay::init @ 0x10056917a
//
// 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::setMaxOffset(Slider *a1, float a2)
{
SliderTouchLogic *m_touchLogic; // rbx
SliderThumb *m_thumb; // rbx
_BOOL8 m_vertical; // r14
float v5[2]; // [rsp+Ch] [rbp-24h] BYREF
float v6; // [rsp+14h] [rbp-1Ch]
float m_length; // [rsp+18h] [rbp-18h]
float v8; // [rsp+1Ch] [rbp-14h]
v6 = a2;
m_touchLogic = a1->m_touchLogic;
m_touchLogic->m_length = ((float (__fastcall *)(SliderThumb *))m_touchLogic->m_thumb->getScale)(m_touchLogic->m_thumb)
* a2;
m_thumb = m_touchLogic->m_thumb;
m_vertical = m_thumb->m_vertical;
v8 = *(float *)(((__int64 (__fastcall *)(SliderThumb *))m_thumb->getPosition)(m_thumb) + 4 * m_vertical);
m_length = m_thumb->m_length;
v8 = (float)((float)(((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb) * m_length) * 0.5) + v8;
m_length = m_thumb->m_length;
v8 = v8 / (float)(((float (__fastcall *)(SliderThumb *))m_thumb->getScale)(m_thumb) * m_length);
m_thumb->m_length = v6;
sub_10028CBE0(v5, 0.0, 0.0);
((void (__fastcall *)(SliderThumb *, float *))m_thumb->setPosition)(m_thumb, v5);
SliderThumb::setValue(m_thumb, v8);
}