//
// EditorUI::xPosFromValue from 0x3815c8 to 0x381622 (90 bytes)
//
// 1 xrefs:
// > EditorUI::sliderChanged @ 0x381654
//
// 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
//
float EditorUI::xPosFromValue(EditorUI *a1, float a2)
{
float XMin; // s16
int SectionCount; // r4
float v6; // r0
XMin = EditorUI::getXMin(a1, 0);
SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer);
v6 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer));
if ( SectionCount < 100 )
SectionCount = 100;
return (float)((float)((float)((float)SectionCount * 100.0) * v6) * a2) - XMin;
}