{"type": "func", "start": 5369637696, "end": 5369637884, "name": "EditorUI::updateSlider", "pseudocode": "// \n// EditorUI::updateSlider from 0x1400e2b40 to 0x1400e2bfc (188 bytes)\n// \n// 9 xrefs:\n// > EditorUI::init @ 0x1400e0a2a\n// > EditorUI::onCreateObject @ 0x14010fb5c\n// > EditorUI::updateZoom @ 0x140112885\n// > EditorUI::ccTouchMoved @ 0x1401245ad\n// > EditorUI::scrollWheel @ 0x140126977\n// > LevelEditorLayer::init @ 0x1402d2c45\n// > LevelEditorLayer::init @ 0x1402d2c7c\n// > LevelEditorLayer::onStopPlaytest @ 0x1402e0e00\n// > <???> @ 0x1406c8bec\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\nvoid EditorUI::updateSlider(EditorUI *a1)\n{\n  float x; // xmm6_4\n  int v3; // edx\n  float XMin; // xmm0_4\n  LevelEditorLayer *m_editorLayer; // rcx\n  float v6; // xmm6_4\n  __int64 v7; // rbx\n  int v8; // eax\n  float v9; // xmm1_4\n  float v10; // xmm2_4\n\n  x = a1->m_editorLayer->m_objectLayer->getPosition_0(a1->m_editorLayer->m_objectLayer)->x;\n  XMin = EditorUI::getXMin(a1, v3);\n  m_editorLayer = a1->m_editorLayer;\n  v6 = -(float)(x - XMin);\n  v7 = m_editorLayer->m_sections._Mypair._Myval2._Mylast - m_editorLayer->m_sections._Mypair._Myval2._Myfirst;\n  m_editorLayer->m_objectLayer->getScale(m_editorLayer->m_objectLayer);\n  v8 = 100;\n  if ( (int)v7 > 100 )\n    v8 = v7;\n  v9 = 1.0;\n  v10 = fmaxf(0.0, v6 / (float)(XMin * (float)((float)v8 * 100.0)));\n  if ( v10 <= 1.0 )\n    v9 = v10;\n  Slider::setValue(a1->m_positionSlider, v9);\n}", "assembly": "; \n; EditorUI::updateSlider from 0x1400e2b40 to 0x1400e2bfc (188 bytes)\n; \n; 9 xrefs:\n; > EditorUI::init @ 0x1400e0a2a\n; > EditorUI::onCreateObject @ 0x14010fb5c\n; > EditorUI::updateZoom @ 0x140112885\n; > EditorUI::ccTouchMoved @ 0x1401245ad\n; > EditorUI::scrollWheel @ 0x140126977\n; > LevelEditorLayer::init @ 0x1402d2c45\n; > LevelEditorLayer::init @ 0x1402d2c7c\n; > LevelEditorLayer::onStopPlaytest @ 0x1402e0e00\n; > <???> @ 0x1406c8bec\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400e2b40\npush    rdi                                                            ; +0x5, 0x1400e2b45\nsub     rsp, 30h                                                       ; +0x6, 0x1400e2b46\nmov     rax, [rcx+500h]                                                ; +0xa, 0x1400e2b4a\nmov     rdi, rcx                                                       ; +0x11, 0x1400e2b51\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x14, 0x1400e2b54\nmov     rcx, [rax+0FE8h]                                               ; +0x19, 0x1400e2b59\nmov     rax, [rcx]                                                     ; +0x20, 0x1400e2b60\ncall    qword ptr [rax+0C8h]                                           ; +0x23, 0x1400e2b63\nmov     rcx, rdi                                                       ; +0x29, 0x1400e2b69\nmovss   xmm6, dword ptr [rax]                                          ; +0x2c, 0x1400e2b6c\ncall    EditorUI__getXMin                                              ; +0x30, 0x1400e2b70\nmov     rcx, [rdi+500h]                                                ; +0x35, 0x1400e2b75\nsubss   xmm6, xmm0                                                     ; +0x3c, 0x1400e2b7c\nmov     rbx, [rcx+35A0h]                                               ; +0x40, 0x1400e2b80\nsub     rbx, [rcx+3598h]                                               ; +0x47, 0x1400e2b87\nmov     rcx, [rcx+0FE8h]                                               ; +0x4e, 0x1400e2b8e\nxorps   xmm6, cs:xmmword_1406243F0                                     ; +0x55, 0x1400e2b95\nsar     rbx, 3                                                         ; +0x5c, 0x1400e2b9c\nmov     rax, [rcx]                                                     ; +0x60, 0x1400e2ba0\ncall    qword ptr [rax+0A8h]                                           ; +0x63, 0x1400e2ba3\nmov     eax, 64h ; 'd'                                                 ; +0x69, 0x1400e2ba9\nxorps   xmm2, xmm2                                                     ; +0x6e, 0x1400e2bae\ncmp     ebx, eax                                                       ; +0x71, 0x1400e2bb1\ncmovg   eax, ebx                                                       ; +0x73, 0x1400e2bb3\nmovd    xmm1, eax                                                      ; +0x76, 0x1400e2bb6\ncvtdq2ps xmm1, xmm1                                                    ; +0x7a, 0x1400e2bba\nmulss   xmm1, cs:dword_1406232BC                                       ; +0x7d, 0x1400e2bbd\nmulss   xmm0, xmm1                                                     ; +0x85, 0x1400e2bc5\nmovss   xmm1, cs:flt_140622C24                                         ; +0x89, 0x1400e2bc9\ndivss   xmm6, xmm0                                                     ; +0x91, 0x1400e2bd1\nmaxss   xmm2, xmm6                                                     ; +0x95, 0x1400e2bd5\ncomiss  xmm2, xmm1                                                     ; +0x99, 0x1400e2bd9\nja      short loc_1400E2BE1                                            ; +0x9c, 0x1400e2bdc\nmovaps  xmm1, xmm2                                                     ; +0x9e, 0x1400e2bde\nmov     rcx, [rdi+308h]                                                ; +0xa1, 0x1400e2be1\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa8, 0x1400e2be8\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xad, 0x1400e2bed\nadd     rsp, 30h                                                       ; +0xb2, 0x1400e2bf2\npop     rdi                                                            ; +0xb6, 0x1400e2bf6\njmp     Slider__setValue                                               ; +0xb7, 0x1400e2bf7", "xrefs": ["EditorUI::init @ 0x1400e0a2a", "EditorUI::onCreateObject @ 0x14010fb5c", "EditorUI::updateZoom @ 0x140112885", "EditorUI::ccTouchMoved @ 0x1401245ad", "EditorUI::scrollWheel @ 0x140126977", "LevelEditorLayer::init @ 0x1402d2c45", "LevelEditorLayer::init @ 0x1402d2c7c", "LevelEditorLayer::onStopPlaytest @ 0x1402e0e00", "<???> @ 0x1406c8bec"], "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"}