{"type": "func", "start": 4295023872, "end": 4295024011, "name": "EditorUI::valueFromXPos", "pseudocode": "// \n// EditorUI::valueFromXPos from 0x10000dd00 to 0x10000dd8b (139 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\n__int128 __usercall EditorUI::valueFromXPos@<xmm0>(__int64 a1@<rdi>, float a2@<xmm0>)\n{\n  int SectionCount; // eax\n  int v3; // ecx\n  __int128 v4; // xmm1\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  v4 = LODWORD(a2);\n  *(float *)&v4 = fminf(\n                    fmaxf(\n                      (float)(a2 - XMin)\n                    / (float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL))\n                            * (float)((float)v3 * -100.0)),\n                      0.0),\n                    1.0);\n  return v4;\n}", "assembly": "; \n; EditorUI::valueFromXPos from 0x10000dd00 to 0x10000dd8b (139 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, 0x10000dd00\nmov     rbp, rsp                                                       ; +0x1, 0x10000dd01\npush    rbx                                                            ; +0x4, 0x10000dd04\nsub     rsp, 18h                                                       ; +0x5, 0x10000dd05\nmovss   [rbp+var_14], xmm0                                             ; +0x9, 0x10000dd09\nmov     rbx, rdi                                                       ; +0xe, 0x10000dd0e\nxor     esi, esi                                                       ; +0x11, 0x10000dd11\ncall    EditorUI__getXMin                                              ; +0x13, 0x10000dd13\nmovss   [rbp+var_10], xmm0                                             ; +0x18, 0x10000dd18\nmov     rdi, [rbx+5A0h]                                                ; +0x1d, 0x10000dd1d\ncall    LevelEditorLayer__getSectionCount                              ; +0x24, 0x10000dd24\ncmp     eax, 65h ; 'e'                                                 ; +0x29, 0x10000dd29\nmov     ecx, 64h ; 'd'                                                 ; +0x2c, 0x10000dd2c\ncmovge  ecx, eax                                                       ; +0x31, 0x10000dd31\nxorps   xmm0, xmm0                                                     ; +0x34, 0x10000dd34\ncvtsi2ss xmm0, ecx                                                     ; +0x37, 0x10000dd37\nmulss   xmm0, cs:dword_100A03580                                       ; +0x3b, 0x10000dd3b\nmovss   [rbp+var_C], xmm0                                              ; +0x43, 0x10000dd43\nmov     rax, [rbx+5A0h]                                                ; +0x48, 0x10000dd48\nmov     rdi, [rax+0F50h]                                               ; +0x4f, 0x10000dd4f\nmov     rax, [rdi]                                                     ; +0x56, 0x10000dd56\ncall    qword ptr [rax+0A8h]                                           ; +0x59, 0x10000dd59\nmulss   xmm0, [rbp+var_C]                                              ; +0x5f, 0x10000dd5f\nmovss   xmm1, [rbp+var_14]                                             ; +0x64, 0x10000dd64\nsubss   xmm1, [rbp+var_10]                                             ; +0x69, 0x10000dd69\ndivss   xmm1, xmm0                                                     ; +0x6e, 0x10000dd6e\nxorps   xmm0, xmm0                                                     ; +0x72, 0x10000dd72\nmaxss   xmm1, xmm0                                                     ; +0x75, 0x10000dd75\nminss   xmm1, cs:alpha                                                 ; +0x79, 0x10000dd79\nmovaps  xmm0, xmm1                                                     ; +0x81, 0x10000dd81\nadd     rsp, 18h                                                       ; +0x84, 0x10000dd84\npop     rbx                                                            ; +0x88, 0x10000dd88\npop     rbp                                                            ; +0x89, 0x10000dd89\nretn                                                                   ; +0x8a, 0x10000dd8a", "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"}