//
// EditorUI::sliderChanged from 0x100007bb0 to 0x100007c9f (239 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x100005442
//
// 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:18:48 +0000
//
__int64 __fastcall EditorUI::sliderChanged(__int64 a1, __int64 a2)
{
__int64 v2; // r14
int SectionCount; // eax
int v4; // ecx
__m128 v5; // xmm0
__int64 v6; // rax
_BYTE v8[8]; // [rsp+8h] [rbp-38h] BYREF
__m128 v9; // [rsp+10h] [rbp-30h]
float XMin; // [rsp+20h] [rbp-20h]
float v11; // [rsp+24h] [rbp-1Ch]
v9.i32[0] = SliderThumb::getValue(a2);
v2 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL);
XMin = EditorUI::getXMin(a1, 0);
SectionCount = LevelEditorLayer::getSectionCount(*(_QWORD *)(a1 + 1440));
v4 = 100;
if ( SectionCount >= 101 )
v4 = SectionCount;
v5 = 0;
v11 = (float)v4 * 100.0;
*(double *)v5.i64 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));
v5.f32[0] = (float)((float)(v5.f32[0] * v11) * v9.f32[0]) - XMin;
v9 = _mm_xor_ps(v5, (__m128)xmmword_100A035F0);
v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));
sub_100278250(v8, v9.f32[0], *(float *)(v6 + 4));
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 184LL))(v2, v8);
return EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);
}