{"type": "func", "start": 4295023424, "end": 4295023541, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x10000db40 to 0x10000dbb5 (117 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 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:18:50 +0000\n// \n\nfloat __fastcall EditorUI::xPosFromValue(__int64 a1, float a2)\n{\n  int SectionCount; // eax\n  int v3; // ecx\n  float XMin; // [rsp+10h] [rbp-10h]\n\n  XMin = EditorUI::getXMin(a1, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(*(_QWORD *)(a1 + 1440));\n  v3 = 100;\n  if ( SectionCount >= 101 )\n    v3 = SectionCount;\n  return (float)((float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL))\n                       * (float)((float)v3 * 100.0))\n               * a2)\n       - XMin;\n}", "assembly": "; \n; EditorUI::xPosFromValue from 0x10000db40 to 0x10000dbb5 (117 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 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:18:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000db40\nmov     rbp, rsp                                                       ; +0x1, 0x10000db41\npush    rbx                                                            ; +0x4, 0x10000db44\nsub     rsp, 18h                                                       ; +0x5, 0x10000db45\nmovss   [rbp+var_14], xmm0                                             ; +0x9, 0x10000db49\nmov     rbx, rdi                                                       ; +0xe, 0x10000db4e\nxor     esi, esi                                                       ; +0x11, 0x10000db51\ncall    EditorUI__getXMin                                              ; +0x13, 0x10000db53\nmovss   [rbp+var_10], xmm0                                             ; +0x18, 0x10000db58\nmov     rdi, [rbx+5A0h]                                                ; +0x1d, 0x10000db5d\ncall    LevelEditorLayer__getSectionCount                              ; +0x24, 0x10000db64\ncmp     eax, 65h ; 'e'                                                 ; +0x29, 0x10000db69\nmov     ecx, 64h ; 'd'                                                 ; +0x2c, 0x10000db6c\ncmovge  ecx, eax                                                       ; +0x31, 0x10000db71\nxorps   xmm0, xmm0                                                     ; +0x34, 0x10000db74\ncvtsi2ss xmm0, ecx                                                     ; +0x37, 0x10000db77\nmulss   xmm0, cs:dword_100A03584                                       ; +0x3b, 0x10000db7b\nmovss   [rbp+var_C], xmm0                                              ; +0x43, 0x10000db83\nmov     rax, [rbx+5A0h]                                                ; +0x48, 0x10000db88\nmov     rdi, [rax+0F50h]                                               ; +0x4f, 0x10000db8f\nmov     rax, [rdi]                                                     ; +0x56, 0x10000db96\ncall    qword ptr [rax+0A8h]                                           ; +0x59, 0x10000db99\nmulss   xmm0, [rbp+var_C]                                              ; +0x5f, 0x10000db9f\nmulss   xmm0, [rbp+var_14]                                             ; +0x64, 0x10000dba4\nsubss   xmm0, [rbp+var_10]                                             ; +0x69, 0x10000dba9\nadd     rsp, 18h                                                       ; +0x6e, 0x10000dbae\npop     rbx                                                            ; +0x72, 0x10000dbb2\npop     rbp                                                            ; +0x73, 0x10000dbb3\nretn                                                                   ; +0x74, 0x10000dbb4", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}