{"type": "func", "start": 4295159568, "end": 4295159685, "name": "EditorUI::xPosFromValue", "pseudocode": "// \n// EditorUI::xPosFromValue from 0x10002ef10 to 0x10002ef85 (117 bytes)\n// \n// 0 xrefs:\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  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(a1->m_editorLayer);\n  v3 = 100;\n  if ( SectionCount >= 101 )\n    v3 = SectionCount;\n  return (float)((float)(((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer)\n                       * (float)((float)v3 * 100.0))\n               * a2)\n       - XMin;\n}", "assembly": "; \n; EditorUI::xPosFromValue from 0x10002ef10 to 0x10002ef85 (117 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10002ef10\nmov     rbp, rsp                                                       ; +0x1, 0x10002ef11\npush    rbx                                                            ; +0x4, 0x10002ef14\nsub     rsp, 18h                                                       ; +0x5, 0x10002ef15\nmovss   [rbp+var_14], xmm0                                             ; +0x9, 0x10002ef19\nmov     rbx, rdi                                                       ; +0xe, 0x10002ef1e\nxor     esi, esi                                                       ; +0x11, 0x10002ef21\ncall    EditorUI__getXMin                                              ; +0x13, 0x10002ef23\nmovss   [rbp+var_10], xmm0                                             ; +0x18, 0x10002ef28\nmov     rdi, [rbx+4E8h]                                                ; +0x1d, 0x10002ef2d\ncall    LevelEditorLayer__getSectionCount                              ; +0x24, 0x10002ef34\ncmp     eax, 65h ; 'e'                                                 ; +0x29, 0x10002ef39\nmov     ecx, 64h ; 'd'                                                 ; +0x2c, 0x10002ef3c\ncmovge  ecx, eax                                                       ; +0x31, 0x10002ef41\nxorps   xmm0, xmm0                                                     ; +0x34, 0x10002ef44\ncvtsi2ss xmm0, ecx                                                     ; +0x37, 0x10002ef47\nmulss   xmm0, cs:dword_100815014                                       ; +0x3b, 0x10002ef4b\nmovss   [rbp+var_C], xmm0                                              ; +0x43, 0x10002ef53\nmov     rax, [rbx+4E8h]                                                ; +0x48, 0x10002ef58\nmov     rdi, [rax+0EB8h]                                               ; +0x4f, 0x10002ef5f\nmov     rax, [rdi]                                                     ; +0x56, 0x10002ef66\ncall    qword ptr [rax+0A8h]                                           ; +0x59, 0x10002ef69\nmulss   xmm0, [rbp+var_C]                                              ; +0x5f, 0x10002ef6f\nmulss   xmm0, [rbp+var_14]                                             ; +0x64, 0x10002ef74\nsubss   xmm0, [rbp+var_10]                                             ; +0x69, 0x10002ef79\nadd     rsp, 18h                                                       ; +0x6e, 0x10002ef7e\npop     rbx                                                            ; +0x72, 0x10002ef82\npop     rbp                                                            ; +0x73, 0x10002ef83\nretn                                                                   ; +0x74, 0x10002ef84", "xrefs": [], "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"}