{"type": "func", "start": 4737312, "end": 4737402, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x484920 to 0x48497a (90 bytes)\n// \n// 1 xrefs:\n// > EditorUI::sliderChanged @ 0x4849ac\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n// \n\nfloat __fastcall EditorUI::xPosFromValue(LevelEditorLayer **this, float a2)\n{\n  float XMin; // s16\n  int SectionCount; // r4\n  float v6; // r0\n\n  XMin = EditorUI::getXMin((EditorUI *)this, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(*(this + 236));\n  v6 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)*(this + 236) + 609) + 84))(*((_DWORD *)*(this + 236)\n                                                                                              + 609)));\n  if ( SectionCount < 100 )\n    SectionCount = 100;\n  return (float)((float)((float)((float)SectionCount * 100.0) * v6) * a2) - XMin;\n}", "assembly": "; \n; EditorUI::xPosFromValue from 0x484920 to 0x48497a (90 bytes)\n; \n; 1 xrefs:\n; > EditorUI::sliderChanged @ 0x4849ac\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:24 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x484920\nMOV             R5, R0                                                 ; +0x2, 0x484922\nVPUSH           {D8}                                                   ; +0x4, 0x484924\nVMOV            S17, R1                                                ; +0x8, 0x484928\nMOVS            R1, #0; int                                            ; +0xc, 0x48492c\nBL              _ZN8EditorUI7getXMinEi; EditorUI::getXMin(int)         ; +0xe, 0x48492e\nVMOV            S16, R0                                                ; +0x12, 0x484932\nLDR.W           R0, [R5,#0x3B0]; this                                  ; +0x16, 0x484936\nBL              _ZN16LevelEditorLayer15getSectionCountEv; LevelEditorLayer::getSectionCount(void) ; +0x1a, 0x48493a\nLDR.W           R3, [R5,#0x3B0]                                        ; +0x1e, 0x48493e\nMOV             R4, R0                                                 ; +0x22, 0x484942\nLDR.W           R0, [R3,#0x984]                                        ; +0x24, 0x484944\nLDR             R3, [R0]                                               ; +0x28, 0x484948\nLDR             R3, [R3,#0x54]                                         ; +0x2a, 0x48494a\nBLX             R3                                                     ; +0x2c, 0x48494c\nCMP             R4, #0x64 ; 'd'                                        ; +0x2e, 0x48494e\nVLDR            S14, =100.0                                            ; +0x30, 0x484950\nIT LT                                                                  ; +0x34, 0x484954\nMOVLT           R4, #0x64 ; 'd'                                        ; +0x36, 0x484956\nVMOV            S15, R4                                                ; +0x38, 0x484958\nVCVT.F32.S32    S15, S15                                               ; +0x3c, 0x48495c\nVMUL.F32        S15, S15, S14                                          ; +0x40, 0x484960\nVMOV            S14, R0                                                ; +0x44, 0x484964\nVMUL.F32        S15, S15, S14                                          ; +0x48, 0x484968\nVNMLS.F32       S16, S15, S17                                          ; +0x4c, 0x48496c\nVMOV            R0, S16                                                ; +0x50, 0x484970\nVPOP            {D8}                                                   ; +0x54, 0x484974\nPOP             {R3-R5,PC}                                             ; +0x58, 0x484978", "xrefs": ["EditorUI::sliderChanged @ 0x4849ac"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}