{"type": "func", "start": 4295014128, "end": 4295014367, "name": "EditorUI::sliderChanged", "pseudocode": "// \n// EditorUI::sliderChanged from 0x10000b6f0 to 0x10000b7df (239 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x100009162\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::sliderChanged(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCLayer *m_objectLayer; // r14\n  int SectionCount; // eax\n  int v4; // ecx\n  __m128 v5; // xmm0\n  __int64 v6; // rax\n  _BYTE v7[8]; // [rsp+8h] [rbp-38h] BYREF\n  __m128 v8; // [rsp+10h] [rbp-30h]\n  float XMin; // [rsp+20h] [rbp-20h]\n  float v10; // [rsp+24h] [rbp-1Ch]\n\n  v8.i32[0] = SliderThumb::getValue((SliderThumb *)a2);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  XMin = EditorUI::getXMin(a1, 0);\n  SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer);\n  v4 = 100;\n  if ( SectionCount >= 101 )\n    v4 = SectionCount;\n  v5 = 0;\n  v10 = (float)v4 * 100.0;\n  *(double *)v5.i64 = ((double (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer);\n  v5.f32[0] = (float)((float)(v5.f32[0] * v10) * v8.f32[0]) - XMin;\n  v8 = _mm_xor_ps(v5, (__m128)xmmword_1008150B0);\n  v6 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer);\n  sub_10028CBE0(v7, v8.f32[0], *(float *)(v6 + 4));\n  ((void (__fastcall *)(cocos2d::CCLayer *, _BYTE *))m_objectLayer->setPosition)(m_objectLayer, v7);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n}", "assembly": "; \n; EditorUI::sliderChanged from 0x10000b6f0 to 0x10000b7df (239 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x100009162\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, 0x10000b6f0\nmov     rbp, rsp                                                       ; +0x1, 0x10000b6f1\npush    r15                                                            ; +0x4, 0x10000b6f4\npush    r14                                                            ; +0x6, 0x10000b6f6\npush    rbx                                                            ; +0x8, 0x10000b6f8\nsub     rsp, 28h                                                       ; +0x9, 0x10000b6f9\nmov     rbx, rdi                                                       ; +0xd, 0x10000b6fd\nmov     rdi, rsi                                                       ; +0x10, 0x10000b700\ncall    SliderThumb__getValue                                          ; +0x13, 0x10000b703\nmovss   dword ptr [rbp+var_30], xmm0                                   ; +0x18, 0x10000b708\nmov     rax, [rbx+4E8h]                                                ; +0x1d, 0x10000b70d\nmov     r14, [rax+0EB8h]                                               ; +0x24, 0x10000b714\nmov     rdi, rbx                                                       ; +0x2b, 0x10000b71b\nxor     esi, esi                                                       ; +0x2e, 0x10000b71e\ncall    EditorUI__getXMin                                              ; +0x30, 0x10000b720\nmovss   [rbp+var_20], xmm0                                             ; +0x35, 0x10000b725\nmov     rdi, [rbx+4E8h]                                                ; +0x3a, 0x10000b72a\ncall    LevelEditorLayer__getSectionCount                              ; +0x41, 0x10000b731\ncmp     eax, 65h ; 'e'                                                 ; +0x46, 0x10000b736\nmov     ecx, 64h ; 'd'                                                 ; +0x49, 0x10000b739\ncmovge  ecx, eax                                                       ; +0x4e, 0x10000b73e\nxorps   xmm0, xmm0                                                     ; +0x51, 0x10000b741\ncvtsi2ss xmm0, ecx                                                     ; +0x54, 0x10000b744\nmulss   xmm0, cs:dword_100815014                                       ; +0x58, 0x10000b748\nmovss   [rbp+var_1C], xmm0                                             ; +0x60, 0x10000b750\nmov     rax, [rbx+4E8h]                                                ; +0x65, 0x10000b755\nmov     rdi, [rax+0EB8h]                                               ; +0x6c, 0x10000b75c\nmov     rax, [rdi]                                                     ; +0x73, 0x10000b763\ncall    qword ptr [rax+0A8h]                                           ; +0x76, 0x10000b766\nmulss   xmm0, [rbp+var_1C]                                             ; +0x7c, 0x10000b76c\nmulss   xmm0, dword ptr [rbp+var_30]                                   ; +0x81, 0x10000b771\nsubss   xmm0, [rbp+var_20]                                             ; +0x86, 0x10000b776\nxorps   xmm0, cs:xmmword_1008150B0                                     ; +0x8b, 0x10000b77b\nmovaps  [rbp+var_30], xmm0                                             ; +0x92, 0x10000b782\nmov     rax, [rbx+4E8h]                                                ; +0x96, 0x10000b786\nmov     rdi, [rax+0EB8h]                                               ; +0x9d, 0x10000b78d\nmov     rax, [rdi]                                                     ; +0xa4, 0x10000b794\ncall    qword ptr [rax+0C0h]                                           ; +0xa7, 0x10000b797\nmovss   xmm1, dword ptr [rax+4]                                        ; +0xad, 0x10000b79d\nlea     r15, [rbp+var_38]                                              ; +0xb2, 0x10000b7a2\nmov     rdi, r15                                                       ; +0xb6, 0x10000b7a6\nmovaps  xmm0, [rbp+var_30]                                             ; +0xb9, 0x10000b7a9\ncall    sub_10028CBE0                                                  ; +0xbd, 0x10000b7ad\nmov     rax, [r14]                                                     ; +0xc2, 0x10000b7b2\nmov     rdi, r14                                                       ; +0xc5, 0x10000b7b5\nmov     rsi, r15                                                       ; +0xc8, 0x10000b7b8\ncall    qword ptr [rax+0B8h]                                           ; +0xcb, 0x10000b7bb\nmovss   xmm0, cs:dword_10081501C                                       ; +0xd1, 0x10000b7c1\nmov     rdi, rbx                                                       ; +0xd9, 0x10000b7c9\nmovaps  xmm1, xmm0                                                     ; +0xdc, 0x10000b7cc\ncall    EditorUI__constrainGameLayerPosition                           ; +0xdf, 0x10000b7cf\nadd     rsp, 28h                                                       ; +0xe4, 0x10000b7d4\npop     rbx                                                            ; +0xe8, 0x10000b7d8\npop     r14                                                            ; +0xe9, 0x10000b7d9\npop     r15                                                            ; +0xeb, 0x10000b7db\npop     rbp                                                            ; +0xed, 0x10000b7dd\nretn                                                                   ; +0xee, 0x10000b7de", "xrefs": ["EditorUI::init @ 0x100009162"], "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"}