{"type": "func", "start": 8153956, "end": 8154076, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x7c6b64 to 0x7c6bdc (120 bytes)\n// \n// 2 xrefs:\n// > EditorUI::sliderChanged @ 0x7c6c28\n// > <???> @ 0x498e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:09 +0000\n// \n\nfloat __fastcall EditorUI::xPosFromValue(LevelEditorLayer **this, float a2)\n{\n  float XMin; // s8\n  int SectionCount; // w19\n  float v6; // s0\n\n  XMin = EditorUI::getXMin((EditorUI *)this, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(*(this + 180));\n  (*(void (__fastcall **)(_QWORD))(**((_QWORD **)*(this + 180) + 490) + 168LL))(*((_QWORD *)*(this + 180) + 490));\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 0x7c6b64 to 0x7c6bdc (120 bytes)\n; \n; 2 xrefs:\n; > EditorUI::sliderChanged @ 0x7c6c28\n; > <???> @ 0x498e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:09 +0000\n; \nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x7c6b64\nMOV             W1, #0; int                                            ; +0x4, 0x7c6b68\nMOV             X29, SP                                                ; +0x8, 0x7c6b6c\nSTP             D8, D9, [SP,#var_s20]                                  ; +0xc, 0x7c6b70\nFMOV            S9, S0                                                 ; +0x10, 0x7c6b74\nSTP             X19, X20, [SP,#var_s10]                                ; +0x14, 0x7c6b78\nMOV             X20, X0                                                ; +0x18, 0x7c6b7c\nBL              _ZN8EditorUI7getXMinEi; EditorUI::getXMin(int)         ; +0x1c, 0x7c6b80\nFMOV            S8, S0                                                 ; +0x20, 0x7c6b84\nLDR             X0, [X20,#0x5A0]; this                                 ; +0x24, 0x7c6b88\nBL              _ZN16LevelEditorLayer15getSectionCountEv; LevelEditorLayer::getSectionCount(void) ; +0x28, 0x7c6b8c\nMOV             W19, W0                                                ; +0x2c, 0x7c6b90\nLDR             X0, [X20,#0x5A0]                                       ; +0x30, 0x7c6b94\nLDR             X1, [X0,#0xF50]                                        ; +0x34, 0x7c6b98\nMOV             X0, X1                                                 ; +0x38, 0x7c6b9c\nLDR             X1, [X1]                                               ; +0x3c, 0x7c6ba0\nLDR             X1, [X1,#0xA8]                                         ; +0x40, 0x7c6ba4\nBLR             X1                                                     ; +0x44, 0x7c6ba8\nCMP             W19, #0x64 ; 'd'                                       ; +0x48, 0x7c6bac\nMOV             W0, #0x64 ; 'd'                                        ; +0x4c, 0x7c6bb0\nCSEL            W19, W19, W0, GE                                       ; +0x50, 0x7c6bb4\nLDR             S2, =0x42C80000                                        ; +0x54, 0x7c6bb8\nSCVTF           S1, W19                                                ; +0x58, 0x7c6bbc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x5c, 0x7c6bc0\nFMUL            S1, S1, S2                                             ; +0x60, 0x7c6bc4\nFMUL            S0, S1, S0                                             ; +0x64, 0x7c6bc8\nFNMSUB          S0, S0, S9, S8                                         ; +0x68, 0x7c6bcc\nLDP             D8, D9, [SP,#var_s20]                                  ; +0x6c, 0x7c6bd0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x70, 0x7c6bd4\nRET                                                                    ; +0x74, 0x7c6bd8", "xrefs": ["EditorUI::sliderChanged @ 0x7c6c28", "<???> @ 0x498e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}