{"type": "func", "start": 5370564784, "end": 5370565206, "name": "EditorUI::scrollWheel", "pseudocode": "// \n// EditorUI::scrollWheel from 0x1401c50b0 to 0x1401c5256 (422 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140751228\n// > <???> @ 0x14091a708\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:28:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall EditorUI::scrollWheel(__int64 a1, float a2, float a3)\n{\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  float v8; // xmm0_4\n  __int64 v9; // rax\n  float v10; // xmm1_4\n  void *v11; // [rsp+50h] [rbp+8h]\n\n  if ( *(_DWORD *)(*(_QWORD *)(a1 + 1160) + 2204LL) == 1 )\n    return 0;\n  v6 = cocos2d::CCDirector::sharedDirector(a1);\n  if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 176LL))(v6) + 153) )\n  {\n    if ( a2 > 0.0 || a3 > 0.0 )\n    {\n      v7 = a1 - 352;\n      v8 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v7 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(v7 + 1512) + 4296LL))\n         - 0.1;\n    }\n    else\n    {\n      v7 = a1 - 352;\n      v8 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(v7 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(v7 + 1512) + 4296LL))\n         + 0.1;\n    }\n    fmaxf(fminf(roundf((float)(v8 / 0.1) + 0.001) * 0.1, 10.0), 0.1);\n    EditorUI::updateZoom_1(v7);\n    return 1;\n  }\n  else\n  {\n    v9 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v11 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v9 = qword_14090BFD0;\n    }\n    v10 = *(float *)(v9 + 1140);\n    *(float *)(a1 + 1356) = (float)(v10 * a3) + *(float *)(a1 + 1356);\n    *(float *)(a1 + 1360) = (float)(v10 * a2) + *(float *)(a1 + 1360);\n    if ( !*(_BYTE *)(a1 + 1364) )\n    {\n      cocos2d::CCNode::schedule(a1 - 352, EditorUI::updatePanDecay);\n      *(_BYTE *)(a1 + 1364) = 1;\n    }\n    return 1;\n  }\n}", "assembly": "; \n; EditorUI::scrollWheel from 0x1401c50b0 to 0x1401c5256 (422 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140751228\n; > <???> @ 0x14091a708\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:28:04 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401c50b0\nsub     rsp, 40h                                                       ; +0x2, 0x1401c50b2\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x6, 0x1401c50b6\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0xb, 0x1401c50bb\nmovaps  xmm6, xmm2                                                     ; +0x10, 0x1401c50c0\nmovaps  xmm7, xmm1                                                     ; +0x13, 0x1401c50c3\nmov     rbx, rcx                                                       ; +0x16, 0x1401c50c6\nmov     rax, [rcx+488h]                                                ; +0x19, 0x1401c50c9\ncmp     dword ptr [rax+89Ch], 1                                        ; +0x20, 0x1401c50d0\njnz     short loc_1401C50EB                                            ; +0x27, 0x1401c50d7\nxor     al, al                                                         ; +0x29, 0x1401c50d9\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x2b, 0x1401c50db\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x30, 0x1401c50e0\nadd     rsp, 40h                                                       ; +0x35, 0x1401c50e5\npop     rbx                                                            ; +0x39, 0x1401c50e9\nretn                                                                   ; +0x3a, 0x1401c50ea\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3b, 0x1401c50eb\nmov     rcx, [rax]                                                     ; +0x41, 0x1401c50f1\nmov     rdx, [rcx+0B0h]                                                ; +0x44, 0x1401c50f4\nmov     rcx, rax                                                       ; +0x4b, 0x1401c50fb\ncall    rdx                                                            ; +0x4e, 0x1401c50fe\ncmp     byte ptr [rax+99h], 0                                          ; +0x50, 0x1401c5100\njz      loc_1401C51AF                                                  ; +0x57, 0x1401c5107\nxorps   xmm0, xmm0                                                     ; +0x5d, 0x1401c510d\ncomiss  xmm7, xmm0                                                     ; +0x60, 0x1401c5110\nja      short loc_1401C5146                                            ; +0x63, 0x1401c5113\ncomiss  xmm6, xmm0                                                     ; +0x65, 0x1401c5115\nja      short loc_1401C5146                                            ; +0x68, 0x1401c5118\nadd     rbx, 0FFFFFFFFFFFFFEA0h                                        ; +0x6a, 0x1401c511a\nmov     rax, [rbx+5E8h]                                                ; +0x71, 0x1401c5121\nmov     rcx, [rax+10C8h]                                               ; +0x78, 0x1401c5128\nmov     rax, [rcx]                                                     ; +0x7f, 0x1401c512f\ncall    qword ptr [rax+0A8h]                                           ; +0x82, 0x1401c5132\nmovss   xmm6, cs:dword_140834E00                                       ; +0x88, 0x1401c5138\naddss   xmm0, xmm6                                                     ; +0x90, 0x1401c5140\njmp     short loc_1401C5170                                            ; +0x94, 0x1401c5144\nadd     rbx, 0FFFFFFFFFFFFFEA0h                                        ; +0x96, 0x1401c5146\nmov     rax, [rbx+5E8h]                                                ; +0x9d, 0x1401c514d\nmov     rcx, [rax+10C8h]                                               ; +0xa4, 0x1401c5154\nmov     rax, [rcx]                                                     ; +0xab, 0x1401c515b\ncall    qword ptr [rax+0A8h]                                           ; +0xae, 0x1401c515e\nmovss   xmm6, cs:dword_140834E00                                       ; +0xb4, 0x1401c5164\nsubss   xmm0, xmm6                                                     ; +0xbc, 0x1401c516c\ndivss   xmm0, xmm6                                                     ; +0xc0, 0x1401c5170\naddss   xmm0, cs:dword_140834D8C; X                                    ; +0xc4, 0x1401c5174\ncall    cs:__imp_roundf                                                ; +0xcc, 0x1401c517c\nmulss   xmm0, xmm6                                                     ; +0xd2, 0x1401c5182\nminss   xmm0, cs:flt_1408354EC                                         ; +0xd6, 0x1401c5186\nmaxss   xmm0, xmm6                                                     ; +0xde, 0x1401c518e\nmovaps  xmm1, xmm0                                                     ; +0xe2, 0x1401c5192\nmov     rcx, rbx                                                       ; +0xe5, 0x1401c5195\ncall    EditorUI__updateZoom_1                                         ; +0xe8, 0x1401c5198\nmov     al, 1                                                          ; +0xed, 0x1401c519d\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xef, 0x1401c519f\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xf4, 0x1401c51a4\nadd     rsp, 40h                                                       ; +0xf9, 0x1401c51a9\npop     rbx                                                            ; +0xfd, 0x1401c51ad\nretn                                                                   ; +0xfe, 0x1401c51ae\nmov     rax, cs:qword_14090BFD0                                        ; +0xff, 0x1401c51af\ntest    rax, rax                                                       ; +0x106, 0x1401c51b6\njnz     short loc_1401C51ED                                            ; +0x109, 0x1401c51b9\nmov     ecx, 6E8h; Size                                                ; +0x10b, 0x1401c51bb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x110, 0x1401c51c0\nmov     [rsp+48h+arg_0], rax                                           ; +0x115, 0x1401c51c5\nmov     rcx, rax                                                       ; +0x11a, 0x1401c51ca\ncall    GameManager__GameManager                                       ; +0x11d, 0x1401c51cd\nnop                                                                    ; +0x122, 0x1401c51d2\nmov     cs:qword_14090BFD0, rax                                        ; +0x123, 0x1401c51d3\nmov     rcx, [rax]                                                     ; +0x12a, 0x1401c51da\nmov     rdx, [rcx+48h]                                                 ; +0x12d, 0x1401c51dd\nmov     rcx, rax                                                       ; +0x131, 0x1401c51e1\ncall    rdx                                                            ; +0x134, 0x1401c51e4\nmov     rax, cs:qword_14090BFD0                                        ; +0x136, 0x1401c51e6\nmovss   xmm1, dword ptr [rax+474h]                                     ; +0x13d, 0x1401c51ed\nmovaps  xmm0, xmm1                                                     ; +0x145, 0x1401c51f5\nmulss   xmm0, xmm6                                                     ; +0x148, 0x1401c51f8\naddss   xmm0, dword ptr [rbx+54Ch]                                     ; +0x14c, 0x1401c51fc\nmovss   dword ptr [rbx+54Ch], xmm0                                     ; +0x154, 0x1401c5204\nmulss   xmm1, xmm7                                                     ; +0x15c, 0x1401c520c\naddss   xmm1, dword ptr [rbx+550h]                                     ; +0x160, 0x1401c5210\nmovss   dword ptr [rbx+550h], xmm1                                     ; +0x168, 0x1401c5218\ncmp     byte ptr [rbx+554h], 0                                         ; +0x170, 0x1401c5220\njnz     short loc_1401C5244                                            ; +0x177, 0x1401c5227\nlea     rcx, [rbx-160h]                                                ; +0x179, 0x1401c5229\nlea     rdx, EditorUI__updatePanDecay                                  ; +0x180, 0x1401c5230\ncall    cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float)) ; +0x187, 0x1401c5237\nmov     byte ptr [rbx+554h], 1                                         ; +0x18d, 0x1401c523d\nmov     al, 1                                                          ; +0x194, 0x1401c5244\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x196, 0x1401c5246\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x19b, 0x1401c524b\nadd     rsp, 40h                                                       ; +0x1a0, 0x1401c5250\npop     rbx                                                            ; +0x1a4, 0x1401c5254\nretn                                                                   ; +0x1a5, 0x1401c5255", "xrefs": ["<???> @ 0x140751228", "<???> @ 0x14091a708"], "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"}