//
// EditorUI::updateSlider from 0x1401ae100 to 0x1401ae1b8 (184 bytes)
//
// 11 xrefs:
// > EditorUI::init @ 0x1401ab274
// > EditorUI::centerCameraOnPoint @ 0x1401b1538
// > EditorUI::onCreateObject @ 0x1401b2e93
// > EditorUI::updateZoom @ 0x1401b4da5
// > EditorUI::ccTouchMoved @ 0x1401c0ccf
// > sub_1401C4B40 @ 0x1401c5047
// > EditorUI::updatePanDecay @ 0x1401c530c
// > LevelEditorLayer::init @ 0x1403eeb80
// > LevelEditorLayer::init @ 0x1403eebb7
// > LevelEditorLayer::onStopPlaytest @ 0x1404006c4
// > ??> @ 0x140919d9c
//
// 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 11:27:54 +0000
//
__int64 __fastcall EditorUI::updateSlider(__int64 a1)
{
float v2; // xmm6_4
double XMin; // xmm0_8
__int64 v4; // rax
float v5; // xmm6_4
__int64 v6; // rbx
int v7; // eax
v2 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 200LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));
XMin = EditorUI::getXMin(a1);
v4 = *(_QWORD *)(a1 + 1512);
v5 = -(float)(v2 - *(float *)&XMin);
v6 = (__int64)(*(_QWORD *)(v4 + 13984) - *(_QWORD *)(v4 + 13976)) >> 3;
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 4296) + 168LL))(*(_QWORD *)(v4 + 4296));
v7 = 100;
if ( (int)v6 > 100 )
v7 = v6;
return Slider::setValue(
*(_QWORD *)(a1 + 888),
fminf(1.0, fmaxf(0.0, v5 / (float)(*(float *)&XMin * (float)((float)v7 * 100.0)))));
}