//
// EditorUI::xPosFromValue from 0x7c6b64 to 0x7c6bdc (120 bytes)
//
// 2 xrefs:
// > EditorUI::sliderChanged @ 0x7c6c28
// > ??> @ 0x498e8
//
// This function is hookable on this platform (idp: arm, 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:54:09 +0000
//
float __fastcall EditorUI::xPosFromValue(LevelEditorLayer **this, float a2)
{
float XMin; // s8
int SectionCount; // w19
float v6; // s0
XMin = EditorUI::getXMin((EditorUI *)this, 0);
SectionCount = LevelEditorLayer::getSectionCount(*(this + 180));
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)*(this + 180) + 490) + 168LL))(*((_QWORD *)*(this + 180) + 490));
if ( SectionCount < 100 )
SectionCount = 100;
return -(float)(XMin - (float)((float)((float)((float)SectionCount * 100.0) * v6) * a2));
}