{"type": "func", "start": 5370470400, "end": 5370470653, "name": "EditorUI::sliderChanged", "pseudocode": "// \n// EditorUI::sliderChanged from 0x1401ae000 to 0x1401ae0fd (253 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x1401a9a9a\n// > <???> @ 0x140919d90\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 11:27:54 +0000\n// \n\n__int64 __fastcall EditorUI::sliderChanged(__int64 a1, float *a2)\n{\n  float Value; // xmm8_4\n  __int64 *v4; // rdi\n  double XMin; // xmm0_8\n  __int64 v6; // rcx\n  float v7; // xmm7_4\n  __int64 v8; // rbx\n  double v9; // xmm0_8\n  int v10; // eax\n  __int64 v11; // rbx\n  float v12; // xmm6_4\n  __int64 v13; // rax\n  __int64 v14; // rax\n  char v16; // [rsp+60h] [rbp+8h] BYREF\n\n  Value = SliderThumb::getValue(a2);\n  v4 = *(__int64 **)(*(_QWORD *)(a1 + 1512) + 4296LL);\n  XMin = EditorUI::getXMin(a1);\n  v6 = *(_QWORD *)(a1 + 1512);\n  v7 = *(float *)&XMin;\n  v8 = (__int64)(*(_QWORD *)(v6 + 13984) - *(_QWORD *)(v6 + 13976)) >> 3;\n  v9 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 4296) + 168LL))(*(_QWORD *)(v6 + 4296));\n  v10 = 100;\n  if ( (int)v8 > 100 )\n    v10 = v8;\n  v11 = *v4;\n  v12 = (float)((float)(*(float *)&v9 * (float)((float)v10 * 100.0)) * Value) - v7;\n  v13 = (*(__int64 (__fastcall **)(__int64 *))(*v4 + 200))(v4);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, -v12, *(float *)(v13 + 4));\n  (*(void (__fastcall **)(__int64 *, __int64))(v11 + 184))(v4, v14);\n  return EditorUI::constrainGameLayerPosition(a1);\n}", "assembly": "; \n; EditorUI::sliderChanged from 0x1401ae000 to 0x1401ae0fd (253 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x1401a9a9a\n; > <???> @ 0x140919d90\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 11:27:54 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401ae000\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1401ae005\npush    rdi                                                            ; +0xa, 0x1401ae00a\nsub     rsp, 50h                                                       ; +0xb, 0x1401ae00b\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xf, 0x1401ae00f\nmov     rsi, rcx                                                       ; +0x14, 0x1401ae014\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x17, 0x1401ae017\nmov     rcx, rdx                                                       ; +0x1c, 0x1401ae01c\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x1f, 0x1401ae01f\ncall    SliderThumb__getValue                                          ; +0x25, 0x1401ae025\nmov     rax, [rsi+5E8h]                                                ; +0x2a, 0x1401ae02a\nmov     rcx, rsi                                                       ; +0x31, 0x1401ae031\nmovaps  xmm8, xmm0                                                     ; +0x34, 0x1401ae034\nmov     rdi, [rax+10C8h]                                               ; +0x38, 0x1401ae038\ncall    EditorUI__getXMin                                              ; +0x3f, 0x1401ae03f\nmov     rcx, [rsi+5E8h]                                                ; +0x44, 0x1401ae044\nmovaps  xmm7, xmm0                                                     ; +0x4b, 0x1401ae04b\nmov     rbx, [rcx+36A0h]                                               ; +0x4e, 0x1401ae04e\nsub     rbx, [rcx+3698h]                                               ; +0x55, 0x1401ae055\nmov     rcx, [rcx+10C8h]                                               ; +0x5c, 0x1401ae05c\nsar     rbx, 3                                                         ; +0x63, 0x1401ae063\nmov     rax, [rcx]                                                     ; +0x67, 0x1401ae067\ncall    qword ptr [rax+0A8h]                                           ; +0x6a, 0x1401ae06a\nmov     eax, 64h ; 'd'                                                 ; +0x70, 0x1401ae070\nmov     rcx, rdi                                                       ; +0x75, 0x1401ae075\nmovaps  xmm6, xmm0                                                     ; +0x78, 0x1401ae078\ncmp     ebx, eax                                                       ; +0x7b, 0x1401ae07b\ncmovg   eax, ebx                                                       ; +0x7d, 0x1401ae07d\nmov     rbx, [rdi]                                                     ; +0x80, 0x1401ae080\nmovd    xmm0, eax                                                      ; +0x83, 0x1401ae083\ncvtdq2ps xmm0, xmm0                                                    ; +0x87, 0x1401ae087\nmulss   xmm0, cs:dword_1408357B0                                       ; +0x8a, 0x1401ae08a\nmulss   xmm6, xmm0                                                     ; +0x92, 0x1401ae092\nmulss   xmm6, xmm8                                                     ; +0x96, 0x1401ae096\nsubss   xmm6, xmm7                                                     ; +0x9b, 0x1401ae09b\ncall    qword ptr [rbx+0C8h]                                           ; +0x9f, 0x1401ae09f\nxorps   xmm6, cs:xmmword_140836CC0                                     ; +0xa5, 0x1401ae0a5\nlea     rcx, [rsp+58h+arg_0]                                           ; +0xac, 0x1401ae0ac\nmovaps  xmm1, xmm6                                                     ; +0xb1, 0x1401ae0b1\nmovss   xmm2, dword ptr [rax+4]                                        ; +0xb4, 0x1401ae0b4\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb9, 0x1401ae0b9\nmov     rdx, rax                                                       ; +0xbf, 0x1401ae0bf\nmov     rcx, rdi                                                       ; +0xc2, 0x1401ae0c2\ncall    qword ptr [rbx+0B8h]                                           ; +0xc5, 0x1401ae0c5\nmovss   xmm1, cs:dword_140835FA8                                       ; +0xcb, 0x1401ae0cb\nmov     rcx, rsi                                                       ; +0xd3, 0x1401ae0d3\nmovaps  xmm2, xmm1                                                     ; +0xd6, 0x1401ae0d6\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xd9, 0x1401ae0d9\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xde, 0x1401ae0de\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xe3, 0x1401ae0e3\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xe8, 0x1401ae0e8\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xed, 0x1401ae0ed\nadd     rsp, 50h                                                       ; +0xf3, 0x1401ae0f3\npop     rdi                                                            ; +0xf7, 0x1401ae0f7\njmp     EditorUI__constrainGameLayerPosition                           ; +0xf8, 0x1401ae0f8", "xrefs": ["EditorUI::init @ 0x1401a9a9a", "<???> @ 0x140919d90"], "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"}