{"type": "func", "start": 6879040, "end": 6879160, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x68f740 to 0x68f7b8 (120 bytes)\n// \n// 2 xrefs:\n// > EditorUI::sliderChanged @ 0x68f804\n// > <???> @ 0x31890\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nfloat EditorUI::xPosFromValue(EditorUI *a1, float a2)\n{\n  float XMin; // s8\n  int SectionCount; // w19\n  float v6; // s0\n\n  XMin = EditorUI::getXMin(a1, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer);\n  a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer);\n  if ( SectionCount < 100 )\n    SectionCount = 100;\n  return -(float)(XMin - (float)((float)((float)((float)SectionCount * 100.0) * v6) * a2));\n}", "assembly": "; \n; EditorUI::xPosFromValue from 0x68f740 to 0x68f7b8 (120 bytes)\n; \n; 2 xrefs:\n; > EditorUI::sliderChanged @ 0x68f804\n; > <???> @ 0x31890\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x68f740\nMOV             W1, #0; int                                            ; +0x4, 0x68f744\nMOV             X29, SP                                                ; +0x8, 0x68f748\nSTP             D8, D9, [SP,#var_s20]                                  ; +0xc, 0x68f74c\nFMOV            S9, S0                                                 ; +0x10, 0x68f750\nSTP             X19, X20, [SP,#var_s10]                                ; +0x14, 0x68f754\nMOV             X20, X0                                                ; +0x18, 0x68f758\nBL              _ZN8EditorUI7getXMinEi; EditorUI::getXMin(int)         ; +0x1c, 0x68f75c\nFMOV            S8, S0                                                 ; +0x20, 0x68f760\nLDR             X0, [X20,#0x4F8]; this                                 ; +0x24, 0x68f764\nBL              _ZN16LevelEditorLayer15getSectionCountEv; LevelEditorLayer::getSectionCount(void) ; +0x28, 0x68f768\nMOV             W19, W0                                                ; +0x2c, 0x68f76c\nLDR             X0, [X20,#0x4F8]                                       ; +0x30, 0x68f770\nLDR             X1, [X0,#0x1030]                                       ; +0x34, 0x68f774\nMOV             X0, X1                                                 ; +0x38, 0x68f778\nLDR             X1, [X1]                                               ; +0x3c, 0x68f77c\nLDR             X1, [X1,#0xA8]                                         ; +0x40, 0x68f780\nBLR             X1                                                     ; +0x44, 0x68f784\nCMP             W19, #0x64 ; 'd'                                       ; +0x48, 0x68f788\nMOV             W0, #0x64 ; 'd'                                        ; +0x4c, 0x68f78c\nCSEL            W19, W19, W0, GE                                       ; +0x50, 0x68f790\nLDR             S2, =0x42C80000                                        ; +0x54, 0x68f794\nSCVTF           S1, W19                                                ; +0x58, 0x68f798\nLDP             X19, X20, [SP,#var_s10]                                ; +0x5c, 0x68f79c\nFMUL            S1, S1, S2                                             ; +0x60, 0x68f7a0\nFMUL            S0, S1, S0                                             ; +0x64, 0x68f7a4\nFNMSUB          S0, S0, S9, S8                                         ; +0x68, 0x68f7a8\nLDP             D8, D9, [SP,#var_s20]                                  ; +0x6c, 0x68f7ac\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x70, 0x68f7b0\nRET                                                                    ; +0x74, 0x68f7b4", "xrefs": ["EditorUI::sliderChanged @ 0x68f804", "<???> @ 0x31890"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}