{"type": "func", "start": 4295004672, "end": 4295004852, "name": "EditorUI::updateSlider", "pseudocode": "// \n// EditorUI::updateSlider from 0x100009200 to 0x1000092b4 (180 bytes)\n// \n// 6 xrefs:\n// > LevelEditorLayer::init @ 0x1000aade5\n// > LevelEditorLayer::init @ 0x1000aae1f\n// > LevelEditorLayer::onStopPlaytest @ 0x1000c7196\n// > EditorUI::ccTouchMoved @ 0x10060a4e7\n// > sub_10060DCB0 @ 0x10060df25\n// > EditorUI::updatePanDecay @ 0x10060e30a\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:48 +0000\n// \n\n__int64 __fastcall EditorUI::updateSlider(__int64 a1)\n{\n  int SectionCount; // eax\n  int v2; // ecx\n  double v3; // xmm1_8\n  float v5; // [rsp+Ch] [rbp-14h]\n  float XMin; // [rsp+10h] [rbp-10h]\n\n  v5 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));\n  XMin = EditorUI::getXMin(a1, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(*(_QWORD *)(a1 + 1440));\n  v2 = 100;\n  if ( SectionCount >= 101 )\n    v2 = SectionCount;\n  *(_QWORD *)&v3 = LODWORD(v5);\n  *(float *)&v3 = fminf(\n                    fmaxf(\n                      (float)(v5 - XMin)\n                    / (float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL))\n                            * (float)((float)v2 * -100.0)),\n                      0.0),\n                    1.0);\n  return Slider::setValue(*(_QWORD *)(a1 + 840), v3);\n}", "assembly": "; \n; EditorUI::updateSlider from 0x100009200 to 0x1000092b4 (180 bytes)\n; \n; 6 xrefs:\n; > LevelEditorLayer::init @ 0x1000aade5\n; > LevelEditorLayer::init @ 0x1000aae1f\n; > LevelEditorLayer::onStopPlaytest @ 0x1000c7196\n; > EditorUI::ccTouchMoved @ 0x10060a4e7\n; > sub_10060DCB0 @ 0x10060df25\n; > EditorUI::updatePanDecay @ 0x10060e30a\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:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100009200\nmov     rbp, rsp                                                       ; +0x1, 0x100009201\npush    rbx                                                            ; +0x4, 0x100009204\nsub     rsp, 18h                                                       ; +0x5, 0x100009205\nmov     rbx, rdi                                                       ; +0x9, 0x100009209\nmov     rax, [rdi+5A0h]                                                ; +0xc, 0x10000920c\nmov     rdi, [rax+0F50h]                                               ; +0x13, 0x100009213\nmov     rax, [rdi]                                                     ; +0x1a, 0x10000921a\ncall    qword ptr [rax+0C0h]                                           ; +0x1d, 0x10000921d\nmovss   xmm0, dword ptr [rax]                                          ; +0x23, 0x100009223\nmovss   [rbp+var_14], xmm0                                             ; +0x27, 0x100009227\nmov     rdi, rbx                                                       ; +0x2c, 0x10000922c\nxor     esi, esi                                                       ; +0x2f, 0x10000922f\ncall    EditorUI__getXMin                                              ; +0x31, 0x100009231\nmovss   [rbp+var_10], xmm0                                             ; +0x36, 0x100009236\nmov     rdi, [rbx+5A0h]                                                ; +0x3b, 0x10000923b\ncall    LevelEditorLayer__getSectionCount                              ; +0x42, 0x100009242\ncmp     eax, 65h ; 'e'                                                 ; +0x47, 0x100009247\nmov     ecx, 64h ; 'd'                                                 ; +0x4a, 0x10000924a\ncmovge  ecx, eax                                                       ; +0x4f, 0x10000924f\nxorps   xmm0, xmm0                                                     ; +0x52, 0x100009252\ncvtsi2ss xmm0, ecx                                                     ; +0x55, 0x100009255\nmulss   xmm0, cs:dword_100A03580                                       ; +0x59, 0x100009259\nmovss   [rbp+var_C], xmm0                                              ; +0x61, 0x100009261\nmov     rax, [rbx+5A0h]                                                ; +0x66, 0x100009266\nmov     rdi, [rax+0F50h]                                               ; +0x6d, 0x10000926d\nmov     rax, [rdi]                                                     ; +0x74, 0x100009274\ncall    qword ptr [rax+0A8h]                                           ; +0x77, 0x100009277\nmulss   xmm0, [rbp+var_C]                                              ; +0x7d, 0x10000927d\nmovss   xmm1, [rbp+var_14]                                             ; +0x82, 0x100009282\nsubss   xmm1, [rbp+var_10]                                             ; +0x87, 0x100009287\ndivss   xmm1, xmm0                                                     ; +0x8c, 0x10000928c\nxorps   xmm0, xmm0                                                     ; +0x90, 0x100009290\nmaxss   xmm1, xmm0                                                     ; +0x93, 0x100009293\nminss   xmm1, cs:alpha                                                 ; +0x97, 0x100009297\nmovaps  xmm0, xmm1                                                     ; +0x9f, 0x10000929f\nmov     rdi, [rbx+348h]                                                ; +0xa2, 0x1000092a2\nadd     rsp, 18h                                                       ; +0xa9, 0x1000092a9\npop     rbx                                                            ; +0xad, 0x1000092ad\npop     rbp                                                            ; +0xae, 0x1000092ae\njmp     Slider__setValue                                               ; +0xaf, 0x1000092af", "xrefs": ["LevelEditorLayer::init @ 0x1000aade5", "LevelEditorLayer::init @ 0x1000aae1f", "LevelEditorLayer::onStopPlaytest @ 0x1000c7196", "EditorUI::ccTouchMoved @ 0x10060a4e7", "sub_10060DCB0 @ 0x10060df25", "EditorUI::updatePanDecay @ 0x10060e30a"], "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"}