{"type": "func", "start": 4299060268, "end": 4299060392, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x1003e742c to 0x1003e74a8 (124 bytes)\n// \n// 1 xrefs:\n// > EditorUI::sliderChanged @ 0x1003c6ebc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nfloat __fastcall EditorUI::xPosFromValue(EditorUI *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(a1->m_editorLayer);\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 *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer))\n                        * a2));\n}", "assembly": "; \n; EditorUI::xPosFromValue from 0x1003e742c to 0x1003e74a8 (124 bytes)\n; \n; 1 xrefs:\n; > EditorUI::sliderChanged @ 0x1003c6ebc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             D11, D10, [SP,#-0x10+var_30]!                          ; +0x0, 0x1003e742c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x1003e7430\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003e7434\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003e7438\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003e743c\nFMOV            S8, S0                                                 ; +0x14, 0x1003e7440\nMOV             X19, X0                                                ; +0x18, 0x1003e7444\nMOV             W1, #0                                                 ; +0x1c, 0x1003e7448\nBL              EditorUI__getXMin                                      ; +0x20, 0x1003e744c\nFMOV            S9, S0                                                 ; +0x24, 0x1003e7450\nLDR             X0, [X19,#0x4E8]                                       ; +0x28, 0x1003e7454\nBL              LevelEditorLayer__getSectionCount                      ; +0x2c, 0x1003e7458\nCMP             W0, #0x64 ; 'd'                                        ; +0x30, 0x1003e745c\nMOV             W8, #0x64 ; 'd'                                        ; +0x34, 0x1003e7460\nCSEL            W8, W0, W8, GT                                         ; +0x38, 0x1003e7464\nUCVTF           S0, W8                                                 ; +0x3c, 0x1003e7468\nMOV             W8, #0x42C80000                                        ; +0x40, 0x1003e746c\nFMOV            S1, W8                                                 ; +0x44, 0x1003e7470\nFMUL            S10, S0, S1                                            ; +0x48, 0x1003e7474\nLDR             X8, [X19,#0x4E8]                                       ; +0x4c, 0x1003e7478\nLDR             X0, [X8,#0xEE0]                                        ; +0x50, 0x1003e747c\nLDR             X8, [X0]                                               ; +0x54, 0x1003e7480\nLDR             X8, [X8,#0xA8]                                         ; +0x58, 0x1003e7484\nBLR             X8                                                     ; +0x5c, 0x1003e7488\nFMUL            S0, S10, S0                                            ; +0x60, 0x1003e748c\nFNMSUB          S0, S0, S8, S9                                         ; +0x64, 0x1003e7490\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x68, 0x1003e7494\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x6c, 0x1003e7498\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x70, 0x1003e749c\nLDP             D11, D10, [SP+0x30+var_30],#0x40                       ; +0x74, 0x1003e74a0\nRET                                                                    ; +0x78, 0x1003e74a4", "xrefs": ["EditorUI::sliderChanged @ 0x1003c6ebc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}