{"type": "func", "start": 5369637440, "end": 5369637693, "name": "EditorUI::sliderChanged", "pseudocode": "// \n// EditorUI::sliderChanged from 0x1400e2a40 to 0x1400e2b3d (253 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1400df4e7\n// > <???> @ 0x1406c8be0\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::sliderChanged(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  float Value; // xmm8_4\n  cocos2d::CCLayer *m_objectLayer; // rdi\n  int v5; // edx\n  float XMin; // xmm0_4\n  LevelEditorLayer *m_editorLayer; // rcx\n  float v8; // xmm7_4\n  __int64 v9; // rbx\n  double v10; // xmm0_8\n  int v11; // eax\n  cocos2d::CCLayer_vtbl *v12; // rbx\n  float v13; // xmm6_4\n  __int64 v14; // rax\n  const cocos2d::CCPoint *v15; // rax\n  cocos2d::CCPoint v16; // [rsp+60h] [rbp+8h] BYREF\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  XMin = EditorUI::getXMin(a1, v5);\n  m_editorLayer = a1->m_editorLayer;\n  v8 = XMin;\n  v9 = m_editorLayer->m_sections._Mypair._Myval2._Mylast - m_editorLayer->m_sections._Mypair._Myval2._Myfirst;\n  v10 = ((double (__fastcall *)(cocos2d::CCLayer *))m_editorLayer->m_objectLayer->getScale)(m_editorLayer->m_objectLayer);\n  v11 = 100;\n  if ( (int)v9 > 100 )\n    v11 = v9;\n  v12 = m_objectLayer->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v13 = *(float *)&v10 * (float)((float)v11 * 100.0);\n  v14 = (__int64)m_objectLayer->getPosition_0(m_objectLayer);\n  cocos2d::CCPoint::CCPoint(&v16, -(float)((float)(v13 * Value) - v8), *(float *)(v14 + 4));\n  v12->setPosition_0(m_objectLayer, v15);\n  EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);\n}", "assembly": "; \n; EditorUI::sliderChanged from 0x1400e2a40 to 0x1400e2b3d (253 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1400df4e7\n; > <???> @ 0x1406c8be0\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_8], rbx                                               ; +0x0, 0x1400e2a40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400e2a45\npush    rdi                                                            ; +0xa, 0x1400e2a4a\nsub     rsp, 50h                                                       ; +0xb, 0x1400e2a4b\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xf, 0x1400e2a4f\nmov     rsi, rcx                                                       ; +0x14, 0x1400e2a54\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x17, 0x1400e2a57\nmov     rcx, rdx                                                       ; +0x1c, 0x1400e2a5c\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x1f, 0x1400e2a5f\ncall    SliderThumb__getValue                                          ; +0x25, 0x1400e2a65\nmov     rax, [rsi+500h]                                                ; +0x2a, 0x1400e2a6a\nmov     rcx, rsi                                                       ; +0x31, 0x1400e2a71\nmovaps  xmm8, xmm0                                                     ; +0x34, 0x1400e2a74\nmov     rdi, [rax+0FE8h]                                               ; +0x38, 0x1400e2a78\ncall    EditorUI__getXMin                                              ; +0x3f, 0x1400e2a7f\nmov     rcx, [rsi+500h]                                                ; +0x44, 0x1400e2a84\nmovaps  xmm7, xmm0                                                     ; +0x4b, 0x1400e2a8b\nmov     rbx, [rcx+35A0h]                                               ; +0x4e, 0x1400e2a8e\nsub     rbx, [rcx+3598h]                                               ; +0x55, 0x1400e2a95\nmov     rcx, [rcx+0FE8h]                                               ; +0x5c, 0x1400e2a9c\nsar     rbx, 3                                                         ; +0x63, 0x1400e2aa3\nmov     rax, [rcx]                                                     ; +0x67, 0x1400e2aa7\ncall    qword ptr [rax+0A8h]                                           ; +0x6a, 0x1400e2aaa\nmov     eax, 64h ; 'd'                                                 ; +0x70, 0x1400e2ab0\nmov     rcx, rdi                                                       ; +0x75, 0x1400e2ab5\ncmp     ebx, eax                                                       ; +0x78, 0x1400e2ab8\nmovaps  xmm6, xmm0                                                     ; +0x7a, 0x1400e2aba\ncmovg   eax, ebx                                                       ; +0x7d, 0x1400e2abd\nmov     rbx, [rdi]                                                     ; +0x80, 0x1400e2ac0\nmovd    xmm1, eax                                                      ; +0x83, 0x1400e2ac3\ncvtdq2ps xmm1, xmm1                                                    ; +0x87, 0x1400e2ac7\nmulss   xmm1, cs:dword_1406232BC                                       ; +0x8a, 0x1400e2aca\nmulss   xmm6, xmm1                                                     ; +0x92, 0x1400e2ad2\ncall    qword ptr [rbx+0C8h]                                           ; +0x96, 0x1400e2ad6\nmulss   xmm6, xmm8                                                     ; +0x9c, 0x1400e2adc\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xa1, 0x1400e2ae1\nmovss   xmm2, dword ptr [rax+4]                                        ; +0xa6, 0x1400e2ae6\nsubss   xmm6, xmm7                                                     ; +0xab, 0x1400e2aeb\nxorps   xmm6, cs:xmmword_1406243F0                                     ; +0xaf, 0x1400e2aef\nmovaps  xmm1, xmm6                                                     ; +0xb6, 0x1400e2af6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb9, 0x1400e2af9\nmov     rdx, rax                                                       ; +0xbf, 0x1400e2aff\nmov     rcx, rdi                                                       ; +0xc2, 0x1400e2b02\ncall    qword ptr [rbx+0B8h]                                           ; +0xc5, 0x1400e2b05\nmovss   xmm1, cs:dword_1406239E8                                       ; +0xcb, 0x1400e2b0b\nmov     rcx, rsi                                                       ; +0xd3, 0x1400e2b13\nmovaps  xmm2, xmm1                                                     ; +0xd6, 0x1400e2b16\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xd9, 0x1400e2b19\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xde, 0x1400e2b1e\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xe3, 0x1400e2b23\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xe8, 0x1400e2b28\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xed, 0x1400e2b2d\nadd     rsp, 50h                                                       ; +0xf3, 0x1400e2b33\npop     rdi                                                            ; +0xf7, 0x1400e2b37\njmp     EditorUI__constrainGameLayerPosition                           ; +0xf8, 0x1400e2b38", "xrefs": ["EditorUI::init @ 0x1400df4e7", "<???> @ 0x1406c8be0"], "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"}