{"type": "func", "start": 5369915376, "end": 5369915798, "name": "EditorUI::scrollWheel", "pseudocode": "// \n// EditorUI::scrollWheel from 0x1401267f0 to 0x140126996 (422 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140552700\n// > <???> @ 0x1406707d8\n// > <???> @ 0x1406707e8\n// > <???> @ 0x1406c99f0\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::scrollWheel(EditorUI *a1, float a2, float a3)\n{\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  float v6; // xmm0_4\n  float v7; // xmm0_4\n  __int64 v8; // rdi\n  __int64 v9; // rax\n  char v10; // [rsp+50h] [rbp+8h] BYREF\n  cocos2d::CCPoint v11; // [rsp+68h] [rbp+20h] BYREF\n\n  if ( LODWORD(a1->m_playtestBtn[4].m_fScaleX) != 1 )\n  {\n    *(double *)&a1->m_copyBtn = sub_14003CF30();\n    v5 = cocos2d::CCDirector::sharedDirector(v4);\n    if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 176LL))(v5) + 89) )\n    {\n      if ( a2 > 0.0 || a3 > 0.0 )\n      {\n        v7 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_playtestBtn[7].m_nScriptTapHandler + 168LL))(*(_QWORD *)&a1->m_playtestBtn[7].m_nScriptTapHandler);\n        EditorUI::updateZoom((EditorUI *)((char *)a1 - 352), fmaxf(0.1, fminf(4.0, v7 + -0.1)));\n      }\n      else\n      {\n        v6 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_playtestBtn[7].m_nScriptTapHandler + 168LL))(*(_QWORD *)&a1->m_playtestBtn[7].m_nScriptTapHandler);\n        EditorUI::updateZoom((EditorUI *)((char *)a1 - 352), fmaxf(0.1, fminf(4.0, v6 + 0.1)));\n      }\n    }\n    else\n    {\n      cocos2d::CCPoint::CCPoint(&v11, a3, a2);\n      v8 = *(_QWORD *)&a1->m_playtestBtn[7].m_nScriptTapHandler;\n      v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL))(v8);\n      cocos2d::CCPoint::operator+(v9, &v10);\n      (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 184LL))(v8, &v10);\n      EditorUI::constrainGameLayerPosition((EditorUI *)((char *)a1 - 352), -100.0, -100.0);\n      EditorUI::updateSlider((EditorUI *)((char *)a1 - 352));\n    }\n  }\n}", "assembly": "; \n; EditorUI::scrollWheel from 0x1401267f0 to 0x140126996 (422 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140552700\n; > <???> @ 0x1406707d8\n; > <???> @ 0x1406707e8\n; > <???> @ 0x1406c99f0\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    rsi                                                            ; +0x0, 0x1401267f0\nsub     rsp, 40h                                                       ; +0x2, 0x1401267f2\nmov     rax, [rcx+3A0h]                                                ; +0x6, 0x1401267f6\nmov     rsi, rcx                                                       ; +0xd, 0x1401267fd\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x10, 0x140126800\nmovaps  xmm6, xmm2                                                     ; +0x15, 0x140126805\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x18, 0x140126808\nmovaps  xmm7, xmm1                                                     ; +0x1d, 0x14012680d\ncmp     dword ptr [rax+880h], 1                                        ; +0x20, 0x140126810\njz      loc_140126986                                                  ; +0x27, 0x140126817\ncall    sub_14003CF30                                                  ; +0x2d, 0x14012681d\nmovsd   qword ptr [rsi+410h], xmm0                                     ; +0x32, 0x140126822\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3a, 0x14012682a\nmov     rcx, rax                                                       ; +0x40, 0x140126830\nmov     rdx, [rax]                                                     ; +0x43, 0x140126833\ncall    qword ptr [rdx+0B0h]                                           ; +0x46, 0x140126836\ncmp     byte ptr [rax+59h], 0                                          ; +0x4c, 0x14012683c\njz      loc_1401268FF                                                  ; +0x50, 0x140126840\nxorps   xmm0, xmm0                                                     ; +0x56, 0x140126846\ncomiss  xmm7, xmm0                                                     ; +0x59, 0x140126849\nja      short loc_1401268A7                                            ; +0x5c, 0x14012684c\ncomiss  xmm6, xmm0                                                     ; +0x5e, 0x14012684e\nja      short loc_1401268A7                                            ; +0x61, 0x140126851\nmov     rax, [rsi+3A0h]                                                ; +0x63, 0x140126853\nadd     rsi, 0FFFFFFFFFFFFFEA0h                                        ; +0x6a, 0x14012685a\nmov     rcx, [rax+0FE8h]                                               ; +0x71, 0x140126861\nmov     rax, [rcx]                                                     ; +0x78, 0x140126868\ncall    qword ptr [rax+0A8h]                                           ; +0x7b, 0x14012686b\nmovss   xmm3, cs:dword_140622A10                                       ; +0x81, 0x140126871\nmov     rcx, rsi                                                       ; +0x89, 0x140126879\nmovss   xmm1, cs:dword_140622FF0                                       ; +0x8c, 0x14012687c\naddss   xmm0, xmm3                                                     ; +0x94, 0x140126884\nminss   xmm1, xmm0                                                     ; +0x98, 0x140126888\nmaxss   xmm3, xmm1                                                     ; +0x9c, 0x14012688c\nmovaps  xmm1, xmm3                                                     ; +0xa0, 0x140126890\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xa3, 0x140126893\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xa8, 0x140126898\nadd     rsp, 40h                                                       ; +0xad, 0x14012689d\npop     rsi                                                            ; +0xb1, 0x1401268a1\njmp     EditorUI__updateZoom                                           ; +0xb2, 0x1401268a2\nmov     rax, [rsi+3A0h]                                                ; +0xb7, 0x1401268a7\nadd     rsi, 0FFFFFFFFFFFFFEA0h                                        ; +0xbe, 0x1401268ae\nmov     rcx, [rax+0FE8h]                                               ; +0xc5, 0x1401268b5\nmov     rax, [rcx]                                                     ; +0xcc, 0x1401268bc\ncall    qword ptr [rax+0A8h]                                           ; +0xcf, 0x1401268bf\nmovss   xmm3, cs:dword_140622A10                                       ; +0xd5, 0x1401268c5\nmov     rcx, rsi                                                       ; +0xdd, 0x1401268cd\naddss   xmm0, cs:dword_1406236C0                                       ; +0xe0, 0x1401268d0\nmovss   xmm2, cs:dword_140622FF0                                       ; +0xe8, 0x1401268d8\nminss   xmm2, xmm0                                                     ; +0xf0, 0x1401268e0\nmaxss   xmm3, xmm2                                                     ; +0xf4, 0x1401268e4\nmovaps  xmm1, xmm3                                                     ; +0xf8, 0x1401268e8\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xfb, 0x1401268eb\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x100, 0x1401268f0\nadd     rsp, 40h                                                       ; +0x105, 0x1401268f5\npop     rsi                                                            ; +0x109, 0x1401268f9\njmp     EditorUI__updateZoom                                           ; +0x10a, 0x1401268fa\nmov     [rsp+48h+arg_8], rbx                                           ; +0x10f, 0x1401268ff\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x114, 0x140126904\nmovaps  xmm2, xmm7                                                     ; +0x119, 0x140126909\nmov     [rsp+48h+arg_10], rdi                                          ; +0x11c, 0x14012690c\nmovaps  xmm1, xmm6                                                     ; +0x121, 0x140126911\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x124, 0x140126914\nmov     rcx, [rsi+3A0h]                                                ; +0x12a, 0x14012691a\nmov     rbx, rax                                                       ; +0x131, 0x140126921\nmov     rdi, [rcx+0FE8h]                                               ; +0x134, 0x140126924\nmov     rcx, rdi                                                       ; +0x13b, 0x14012692b\nmov     rdx, [rdi]                                                     ; +0x13e, 0x14012692e\ncall    qword ptr [rdx+0C8h]                                           ; +0x141, 0x140126931\nmov     r8, rbx                                                        ; +0x147, 0x140126937\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x14a, 0x14012693a\nmov     rcx, rax                                                       ; +0x14f, 0x14012693f\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x152, 0x140126942\nmov     rax, [rdi]                                                     ; +0x158, 0x140126948\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x15b, 0x14012694b\nmov     rcx, rdi                                                       ; +0x160, 0x140126950\ncall    qword ptr [rax+0B8h]                                           ; +0x163, 0x140126953\nmovss   xmm1, cs:dword_1406239E8                                       ; +0x169, 0x140126959\nlea     rcx, [rsi-160h]                                                ; +0x171, 0x140126961\nmovaps  xmm2, xmm1                                                     ; +0x178, 0x140126968\ncall    EditorUI__constrainGameLayerPosition                           ; +0x17b, 0x14012696b\nlea     rcx, [rsi-160h]                                                ; +0x180, 0x140126970\ncall    EditorUI__updateSlider                                         ; +0x187, 0x140126977\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x18c, 0x14012697c\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x191, 0x140126981\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x196, 0x140126986\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x19b, 0x14012698b\nadd     rsp, 40h                                                       ; +0x1a0, 0x140126990\npop     rsi                                                            ; +0x1a4, 0x140126994\nretn                                                                   ; +0x1a5, 0x140126995", "xrefs": ["<???> @ 0x140552700", "<???> @ 0x1406707d8", "<???> @ 0x1406707e8", "<???> @ 0x1406c99f0"], "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"}