//
// EditorUI::xPosFromValue from 0x10000db40 to 0x10000dbb5 (117 bytes)
//
// 0 xrefs:
//
// 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:50 +0000
//
float __fastcall EditorUI::xPosFromValue(__int64 a1, float a2)
{
int SectionCount; // eax
int v3; // ecx
float XMin; // [rsp+10h] [rbp-10h]
XMin = EditorUI::getXMin(a1, 0);
SectionCount = LevelEditorLayer::getSectionCount(*(_QWORD *)(a1 + 1440));
v3 = 100;
if ( SectionCount >= 101 )
v3 = SectionCount;
return (float)((float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL))
* (float)((float)v3 * 100.0))
* a2)
- XMin;
}