{"type": "func", "start": 5370550928, "end": 5370551267, "name": "EditorUI::keyDown", "pseudocode": "// \n// EditorUI::keyDown from 0x1401c1a90 to 0x1401c1be3 (339 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140751660\n// > <???> @ 0x14091a6c0\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:03 +0000\n// \n\nvoid __fastcall EditorUI::keyDown(_QWORD **a1, int a2)\n{\n  _QWORD *v3; // rcx\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // r8\n  _BYTE *v8; // rcx\n  __int64 v9; // rcx\n  __int64 v10; // rax\n\n  if ( a2 == 27 )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[61] + 344LL))(a1[61])\n      && ((v3 = a1[61], (v4 = v3[61]) != 0) && *(_BYTE *)(v4 + 468)\n       || (v5 = v3[62]) != 0 && *(_BYTE *)(v5 + 468)\n       || (v6 = v3[63]) != 0 && *(_BYTE *)(v6 + 468)) )\n    {\n      GJScaleControl::releaseInputFocus(v3);\n    }\n    else if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[58] + 344LL))(a1[58])\n           && (v8 = (_BYTE *)a1[58][58]) != nullptr\n           && v8[468] )\n    {\n      (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v8 + 1032LL))(v8, 0);\n    }\n    else\n    {\n      LOBYTE(v7) = 1;\n      ((void (__fastcall *)(_QWORD **, __int64, __int64))(*a1)[2])(a1, 20067, v7);\n    }\n  }\n  else if ( a2 == 13\n         && (!(*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[61] + 344LL))(a1[61])\n          || !GJScaleControl::applyFocusedInput(a1[61])) )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[58] + 344LL))(a1[58]) )\n    {\n      v9 = (__int64)a1[58];\n      v10 = *(_QWORD *)(v9 + 464);\n      if ( v10 )\n      {\n        if ( *(_BYTE *)(v10 + 468) )\n          GJRotationControl::onApplyAngle(v9);\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::keyDown from 0x1401c1a90 to 0x1401c1be3 (339 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140751660\n; > <???> @ 0x14091a6c0\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:03 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401c1a90\nsub     rsp, 30h                                                       ; +0x2, 0x1401c1a92\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x1401c1a96\nmovaps  xmm6, xmm2                                                     ; +0xb, 0x1401c1a9b\nmov     rbx, rcx                                                       ; +0xe, 0x1401c1a9e\ncmp     edx, 1Bh                                                       ; +0x11, 0x1401c1aa1\njnz     loc_1401C1B78                                                  ; +0x14, 0x1401c1aa4\nmov     rcx, [rcx+1E8h]                                                ; +0x1a, 0x1401c1aaa\nmov     rax, [rcx]                                                     ; +0x21, 0x1401c1ab1\ncall    qword ptr [rax+158h]                                           ; +0x24, 0x1401c1ab4\ntest    al, al                                                         ; +0x2a, 0x1401c1aba\njz      short loc_1401C1B13                                            ; +0x2c, 0x1401c1abc\nmov     rcx, [rbx+1E8h]                                                ; +0x2e, 0x1401c1abe\nmov     rax, [rcx+1E8h]                                                ; +0x35, 0x1401c1ac5\ntest    rax, rax                                                       ; +0x3c, 0x1401c1acc\njz      short loc_1401C1ADA                                            ; +0x3f, 0x1401c1acf\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x41, 0x1401c1ad1\njnz     short loc_1401C1B04                                            ; +0x48, 0x1401c1ad8\nmov     rax, [rcx+1F0h]                                                ; +0x4a, 0x1401c1ada\ntest    rax, rax                                                       ; +0x51, 0x1401c1ae1\njz      short loc_1401C1AEF                                            ; +0x54, 0x1401c1ae4\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x56, 0x1401c1ae6\njnz     short loc_1401C1B04                                            ; +0x5d, 0x1401c1aed\nmov     rax, [rcx+1F8h]                                                ; +0x5f, 0x1401c1aef\ntest    rax, rax                                                       ; +0x66, 0x1401c1af6\njz      short loc_1401C1B13                                            ; +0x69, 0x1401c1af9\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x6b, 0x1401c1afb\njz      short loc_1401C1B13                                            ; +0x72, 0x1401c1b02\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x74, 0x1401c1b04\nadd     rsp, 30h                                                       ; +0x79, 0x1401c1b09\npop     rbx                                                            ; +0x7d, 0x1401c1b0d\njmp     GJScaleControl__releaseInputFocus                              ; +0x7e, 0x1401c1b0e\nmov     rcx, [rbx+1D0h]                                                ; +0x83, 0x1401c1b13\nmov     rax, [rcx]                                                     ; +0x8a, 0x1401c1b1a\ncall    qword ptr [rax+158h]                                           ; +0x8d, 0x1401c1b1d\ntest    al, al                                                         ; +0x93, 0x1401c1b23\njz      short loc_1401C1B59                                            ; +0x95, 0x1401c1b25\nmov     rax, [rbx+1D0h]                                                ; +0x97, 0x1401c1b27\nmov     rcx, [rax+1D0h]                                                ; +0x9e, 0x1401c1b2e\ntest    rcx, rcx                                                       ; +0xa5, 0x1401c1b35\njz      short loc_1401C1B59                                            ; +0xa8, 0x1401c1b38\ncmp     byte ptr [rcx+1D4h], 0                                         ; +0xaa, 0x1401c1b3a\njz      short loc_1401C1B59                                            ; +0xb1, 0x1401c1b41\nmov     rax, [rcx]                                                     ; +0xb3, 0x1401c1b43\nxor     edx, edx                                                       ; +0xb6, 0x1401c1b46\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xb8, 0x1401c1b48\nadd     rsp, 30h                                                       ; +0xbd, 0x1401c1b4d\npop     rbx                                                            ; +0xc1, 0x1401c1b51\njmp     qword ptr [rax+408h]                                           ; +0xc2, 0x1401c1b52\nmov     rax, [rbx]                                                     ; +0xc9, 0x1401c1b59\nmovaps  xmm3, xmm6                                                     ; +0xcc, 0x1401c1b5c\nmov     r8b, 1                                                         ; +0xcf, 0x1401c1b5f\nmov     edx, 4E63h                                                     ; +0xd2, 0x1401c1b62\nmov     rcx, rbx                                                       ; +0xd7, 0x1401c1b67\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xda, 0x1401c1b6a\nadd     rsp, 30h                                                       ; +0xdf, 0x1401c1b6f\npop     rbx                                                            ; +0xe3, 0x1401c1b73\njmp     qword ptr [rax+10h]                                            ; +0xe4, 0x1401c1b74\ncmp     edx, 0Dh                                                       ; +0xe8, 0x1401c1b78\njnz     short loc_1401C1BD8                                            ; +0xeb, 0x1401c1b7b\nmov     rcx, [rcx+1E8h]                                                ; +0xed, 0x1401c1b7d\nmov     rax, [rcx]                                                     ; +0xf4, 0x1401c1b84\ncall    qword ptr [rax+158h]                                           ; +0xf7, 0x1401c1b87\ntest    al, al                                                         ; +0xfd, 0x1401c1b8d\njz      short loc_1401C1BA1                                            ; +0xff, 0x1401c1b8f\nmov     rcx, [rbx+1E8h]                                                ; +0x101, 0x1401c1b91\ncall    GJScaleControl__applyFocusedInput                              ; +0x108, 0x1401c1b98\ntest    al, al                                                         ; +0x10d, 0x1401c1b9d\njnz     short loc_1401C1BD8                                            ; +0x10f, 0x1401c1b9f\nmov     rcx, [rbx+1D0h]                                                ; +0x111, 0x1401c1ba1\nmov     rax, [rcx]                                                     ; +0x118, 0x1401c1ba8\ncall    qword ptr [rax+158h]                                           ; +0x11b, 0x1401c1bab\ntest    al, al                                                         ; +0x121, 0x1401c1bb1\njz      short loc_1401C1BD8                                            ; +0x123, 0x1401c1bb3\nmov     rcx, [rbx+1D0h]                                                ; +0x125, 0x1401c1bb5\nmov     rax, [rcx+1D0h]                                                ; +0x12c, 0x1401c1bbc\ntest    rax, rax                                                       ; +0x133, 0x1401c1bc3\njz      short loc_1401C1BD8                                            ; +0x136, 0x1401c1bc6\ncmp     byte ptr [rax+1D4h], 0                                         ; +0x138, 0x1401c1bc8\njz      short loc_1401C1BD8                                            ; +0x13f, 0x1401c1bcf\nxor     edx, edx                                                       ; +0x141, 0x1401c1bd1\ncall    GJRotationControl__onApplyAngle                                ; +0x143, 0x1401c1bd3\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x148, 0x1401c1bd8\nadd     rsp, 30h                                                       ; +0x14d, 0x1401c1bdd\npop     rbx                                                            ; +0x151, 0x1401c1be1\nretn                                                                   ; +0x152, 0x1401c1be2", "xrefs": ["<???> @ 0x140751660", "<???> @ 0x14091a6c0"], "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"}