{"type": "func", "start": 4299640136, "end": 4299640260, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x100474d48 to 0x100474dc4 (124 bytes)\n// \n// 1 xrefs:\n// > EditorUI::sliderChanged @ 0x100470af4\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 11:05:40 +0000\n// \n\nfloat __fastcall EditorUI::xPosFromValue(__int64 a1, float a2)\n{\n  float XMin; // s9\n  int SectionCount; // w0\n  unsigned int v6; // w8\n\n  XMin = EditorUI::getXMin(a1, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(*(_QWORD *)(a1 + 1440));\n  if ( SectionCount <= 100 )\n    v6 = 100;\n  else\n    v6 = SectionCount;\n  return -(float)(XMin\n                - (float)((float)((float)((float)v6 * 100.0)\n                                * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL)\n                                                                  + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL)))\n                        * a2));\n}", "assembly": "; \n; EditorUI::xPosFromValue from 0x100474d48 to 0x100474dc4 (124 bytes)\n; \n; 1 xrefs:\n; > EditorUI::sliderChanged @ 0x100470af4\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 11:05:40 +0000\n; \nSTP             D11, D10, [SP,#-0x10+var_30]!                          ; +0x0, 0x100474d48\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x100474d4c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100474d50\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100474d54\nADD             X29, SP, #0x30                                         ; +0x10, 0x100474d58\nFMOV            S8, S0                                                 ; +0x14, 0x100474d5c\nMOV             X19, X0                                                ; +0x18, 0x100474d60\nMOV             W1, #0                                                 ; +0x1c, 0x100474d64\nBL              EditorUI__getXMin                                      ; +0x20, 0x100474d68\nFMOV            S9, S0                                                 ; +0x24, 0x100474d6c\nLDR             X0, [X19,#0x5A0]                                       ; +0x28, 0x100474d70\nBL              LevelEditorLayer__getSectionCount                      ; +0x2c, 0x100474d74\nCMP             W0, #0x64 ; 'd'                                        ; +0x30, 0x100474d78\nMOV             W8, #0x64 ; 'd'                                        ; +0x34, 0x100474d7c\nCSEL            W8, W0, W8, GT                                         ; +0x38, 0x100474d80\nUCVTF           S0, W8                                                 ; +0x3c, 0x100474d84\nMOV             W8, #0x42C80000                                        ; +0x40, 0x100474d88\nFMOV            S1, W8                                                 ; +0x44, 0x100474d8c\nFMUL            S10, S0, S1                                            ; +0x48, 0x100474d90\nLDR             X8, [X19,#0x5A0]                                       ; +0x4c, 0x100474d94\nLDR             X0, [X8,#0xF50]                                        ; +0x50, 0x100474d98\nLDR             X8, [X0]                                               ; +0x54, 0x100474d9c\nLDR             X8, [X8,#0xA8]                                         ; +0x58, 0x100474da0\nBLR             X8                                                     ; +0x5c, 0x100474da4\nFMUL            S0, S10, S0                                            ; +0x60, 0x100474da8\nFNMSUB          S0, S0, S8, S9                                         ; +0x64, 0x100474dac\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x68, 0x100474db0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x6c, 0x100474db4\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x70, 0x100474db8\nLDP             D11, D10, [SP+0x30+var_30],#0x40                       ; +0x74, 0x100474dbc\nRET                                                                    ; +0x78, 0x100474dc0", "xrefs": ["EditorUI::sliderChanged @ 0x100470af4"], "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"}