{"type": "func", "start": 4295142144, "end": 4295142324, "name": "EditorUI::updateSlider", "pseudocode": "// \n// EditorUI::updateSlider from 0x10002ab00 to 0x10002abb4 (180 bytes)\n// \n// 4 xrefs:\n// > EditorUI::ccTouchMoved @ 0x10004f6b4\n// > LevelEditorLayer::init @ 0x1000dbfd4\n// > LevelEditorLayer::init @ 0x1000dc00e\n// > LevelEditorLayer::onStopPlaytest @ 0x1000f32f6\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 __fastcall EditorUI::updateSlider(EditorUI *a1)\n{\n  int SectionCount; // eax\n  int v2; // ecx\n  float v3; // xmm0_4\n  float v4; // [rsp+Ch] [rbp-14h]\n  float XMin; // [rsp+10h] [rbp-10h]\n  float v6; // [rsp+14h] [rbp-Ch]\n\n  v4 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer);\n  XMin = EditorUI::getXMin(a1, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer);\n  v2 = 100;\n  if ( SectionCount >= 101 )\n    v2 = SectionCount;\n  v6 = (float)v2 * -100.0;\n  v3 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer);\n  Slider::setValue(a1->m_positionSlider, fminf(fmaxf((float)(v4 - XMin) / (float)(v3 * v6), 0.0), 1.0));\n}", "assembly": "; \n; EditorUI::updateSlider from 0x10002ab00 to 0x10002abb4 (180 bytes)\n; \n; 4 xrefs:\n; > EditorUI::ccTouchMoved @ 0x10004f6b4\n; > LevelEditorLayer::init @ 0x1000dbfd4\n; > LevelEditorLayer::init @ 0x1000dc00e\n; > LevelEditorLayer::onStopPlaytest @ 0x1000f32f6\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, 0x10002ab00\nmov     rbp, rsp                                                       ; +0x1, 0x10002ab01\npush    rbx                                                            ; +0x4, 0x10002ab04\nsub     rsp, 18h                                                       ; +0x5, 0x10002ab05\nmov     rbx, rdi                                                       ; +0x9, 0x10002ab09\nmov     rax, [rdi+4E8h]                                                ; +0xc, 0x10002ab0c\nmov     rdi, [rax+0EB8h]                                               ; +0x13, 0x10002ab13\nmov     rax, [rdi]                                                     ; +0x1a, 0x10002ab1a\ncall    qword ptr [rax+0C0h]                                           ; +0x1d, 0x10002ab1d\nmovss   xmm0, dword ptr [rax]                                          ; +0x23, 0x10002ab23\nmovss   [rbp+var_14], xmm0                                             ; +0x27, 0x10002ab27\nmov     rdi, rbx                                                       ; +0x2c, 0x10002ab2c\nxor     esi, esi                                                       ; +0x2f, 0x10002ab2f\ncall    EditorUI__getXMin                                              ; +0x31, 0x10002ab31\nmovss   [rbp+var_10], xmm0                                             ; +0x36, 0x10002ab36\nmov     rdi, [rbx+4E8h]                                                ; +0x3b, 0x10002ab3b\ncall    LevelEditorLayer__getSectionCount                              ; +0x42, 0x10002ab42\ncmp     eax, 65h ; 'e'                                                 ; +0x47, 0x10002ab47\nmov     ecx, 64h ; 'd'                                                 ; +0x4a, 0x10002ab4a\ncmovge  ecx, eax                                                       ; +0x4f, 0x10002ab4f\nxorps   xmm0, xmm0                                                     ; +0x52, 0x10002ab52\ncvtsi2ss xmm0, ecx                                                     ; +0x55, 0x10002ab55\nmulss   xmm0, cs:dword_10081501C                                       ; +0x59, 0x10002ab59\nmovss   [rbp+var_C], xmm0                                              ; +0x61, 0x10002ab61\nmov     rax, [rbx+4E8h]                                                ; +0x66, 0x10002ab66\nmov     rdi, [rax+0EB8h]                                               ; +0x6d, 0x10002ab6d\nmov     rax, [rdi]                                                     ; +0x74, 0x10002ab74\ncall    qword ptr [rax+0A8h]                                           ; +0x77, 0x10002ab77\nmulss   xmm0, [rbp+var_C]                                              ; +0x7d, 0x10002ab7d\nmovss   xmm1, [rbp+var_14]                                             ; +0x82, 0x10002ab82\nsubss   xmm1, [rbp+var_10]                                             ; +0x87, 0x10002ab87\ndivss   xmm1, xmm0                                                     ; +0x8c, 0x10002ab8c\nxorps   xmm0, xmm0                                                     ; +0x90, 0x10002ab90\nmaxss   xmm1, xmm0                                                     ; +0x93, 0x10002ab93\nminss   xmm1, cs:alpha                                                 ; +0x97, 0x10002ab97\nmovaps  xmm0, xmm1                                                     ; +0x9f, 0x10002ab9f\nmov     rdi, [rbx+2F0h]                                                ; +0xa2, 0x10002aba2\nadd     rsp, 18h                                                       ; +0xa9, 0x10002aba9\npop     rbx                                                            ; +0xad, 0x10002abad\npop     rbp                                                            ; +0xae, 0x10002abae\njmp     Slider__setValue                                               ; +0xaf, 0x10002abaf", "xrefs": ["EditorUI::ccTouchMoved @ 0x10004f6b4", "LevelEditorLayer::init @ 0x1000dbfd4", "LevelEditorLayer::init @ 0x1000dc00e", "LevelEditorLayer::onStopPlaytest @ 0x1000f32f6"], "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"}