{"type": "func", "start": 12413928, "end": 12414248, "name": "EditorUI::keyDown", "pseudocode": "// \n// EditorUI::keyDown from 0xbd6be8 to 0xbd6d28 (320 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorUI::keyDown @ 0xbd6d2c\n// > <???> @ 0xb7c70\n// > <???> @ 0x14371d8\n// \n// This function is hookable on this platform (idp: arm, 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 13:03:40 +0000\n// \n\n__int64 __fastcall EditorUI::keyDown(__int64 result, int a2, long double a3)\n{\n  GJRotationControl **v3; // x19\n  char v4; // w0\n  long double v5; // q0\n  char v6; // w0\n  long double v7; // q0\n  char v8; // w0\n  char hasActiveInput; // w0\n  long double v11; // [xsp+20h] [xbp+20h]\n\n  v3 = (GJRotationControl **)result;\n  if ( a2 == 27 )\n  {\n    v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(result + 784) + 352LL))(*(_QWORD *)(result + 784));\n    v5 = a3;\n    if ( v4 && (v8 = GJScaleControl::hasActiveInput(v3[98]), v5 = a3, v8) )\n    {\n      return GJScaleControl::releaseInputFocus(v3[98]);\n    }\n    else\n    {\n      v11 = v5;\n      v6 = (*(__int64 (__fastcall **)(GJRotationControl *))(*(_QWORD *)v3[95] + 352LL))(v3[95]);\n      v7 = v11;\n      if ( v6 && (hasActiveInput = GJRotationControl::hasActiveInput(v3[95]), v7 = v11, hasActiveInput) )\n        return GJRotationControl::releaseInputFocus(v3[95]);\n      else\n        return (*((__int64 (__fastcall **)(GJRotationControl **, __int64, __int64, long double))*v3 + 164))(\n                 v3,\n                 20067,\n                 1,\n                 v7);\n    }\n  }\n  else if ( a2 == 13 )\n  {\n    if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(result + 784) + 352LL))(*(_QWORD *)(result + 784))\n      || (result = (unsigned __int8)GJScaleControl::applyFocusedInput(v3[98]), !(_BYTE)result) )\n    {\n      result = (*(unsigned __int8 (__fastcall **)(GJRotationControl *))(*(_QWORD *)v3[95] + 352LL))(v3[95]);\n      if ( (_BYTE)result )\n        return GJRotationControl::applyFocusedInput(v3[95]);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::keyDown from 0xbd6be8 to 0xbd6d28 (320 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorUI::keyDown @ 0xbd6d2c\n; > <???> @ 0xb7c70\n; > <???> @ 0x14371d8\n; \n; This function is hookable on this platform (idp: arm, 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 13:03:40 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xbd6be8\nCMP             W1, #0x1B                                              ; +0x4, 0xbd6bec\nMOV             X29, SP                                                ; +0x8, 0xbd6bf0\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0xbd6bf4\nMOV             X19, X0                                                ; +0x10, 0xbd6bf8\nB.EQ            loc_BD6C14                                             ; +0x14, 0xbd6bfc\nCMP             W1, #0xD                                               ; +0x18, 0xbd6c00\nB.EQ            loc_BD6C80                                             ; +0x1c, 0xbd6c04\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x20, 0xbd6c08\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x24, 0xbd6c0c\nRET                                                                    ; +0x28, 0xbd6c10\nLDR             X1, [X0,#0x310]                                        ; +0x2c, 0xbd6c14\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x30, 0xbd6c18\nMOV             X0, X1                                                 ; +0x34, 0xbd6c1c\nLDR             X1, [X1]                                               ; +0x38, 0xbd6c20\nLDR             X1, [X1,#0x160]                                        ; +0x3c, 0xbd6c24\nBLR             X1                                                     ; +0x40, 0xbd6c28\nUXTB            W0, W0                                                 ; +0x44, 0xbd6c2c\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0x48, 0xbd6c30\nCBNZ            W0, loc_BD6CC8                                         ; +0x4c, 0xbd6c34\nLDR             X1, [X19,#0x2F8]                                       ; +0x50, 0xbd6c38\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x54, 0xbd6c3c\nMOV             X0, X1                                                 ; +0x58, 0xbd6c40\nLDR             X1, [X1]                                               ; +0x5c, 0xbd6c44\nLDR             X1, [X1,#0x160]                                        ; +0x60, 0xbd6c48\nBLR             X1                                                     ; +0x64, 0xbd6c4c\nUXTB            W0, W0                                                 ; +0x68, 0xbd6c50\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0x6c, 0xbd6c54\nCBNZ            W0, loc_BD6D00                                         ; +0x70, 0xbd6c58\nLDR             X3, [X19]                                              ; +0x74, 0xbd6c5c\nMOV             X0, X19                                                ; +0x78, 0xbd6c60\nMOV             W1, #0x4E63                                            ; +0x7c, 0xbd6c64\nMOV             W2, #1                                                 ; +0x80, 0xbd6c68\nLDR             X3, [X3,#0x520]                                        ; +0x84, 0xbd6c6c\nBLR             X3                                                     ; +0x88, 0xbd6c70\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x8c, 0xbd6c74\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x90, 0xbd6c78\nRET                                                                    ; +0x94, 0xbd6c7c\nLDR             X1, [X19,#0x310]                                       ; +0x98, 0xbd6c80\nMOV             X0, X1                                                 ; +0x9c, 0xbd6c84\nLDR             X1, [X1]                                               ; +0xa0, 0xbd6c88\nLDR             X1, [X1,#0x160]                                        ; +0xa4, 0xbd6c8c\nBLR             X1                                                     ; +0xa8, 0xbd6c90\nUXTB            W0, W0                                                 ; +0xac, 0xbd6c94\nCBNZ            W0, loc_BD6CEC                                         ; +0xb0, 0xbd6c98\nLDR             X1, [X19,#0x2F8]                                       ; +0xb4, 0xbd6c9c\nMOV             X0, X1                                                 ; +0xb8, 0xbd6ca0\nLDR             X1, [X1]                                               ; +0xbc, 0xbd6ca4\nLDR             X1, [X1,#0x160]                                        ; +0xc0, 0xbd6ca8\nBLR             X1                                                     ; +0xc4, 0xbd6cac\nUXTB            W0, W0                                                 ; +0xc8, 0xbd6cb0\nCBZ             W0, loc_BD6C08                                         ; +0xcc, 0xbd6cb4\nLDR             X0, [X19,#0x2F8]; this                                 ; +0xd0, 0xbd6cb8\nLDR             X19, [SP,#0x30+var_20]                                 ; +0xd4, 0xbd6cbc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xd8, 0xbd6cc0\nB               _ZN17GJRotationControl17applyFocusedInputEv; GJRotationControl::applyFocusedInput(void) ; +0xdc, 0xbd6cc4\nLDR             X0, [X19,#0x310]; this                                 ; +0xe0, 0xbd6cc8\nBL              _ZN14GJScaleControl14hasActiveInputEv; GJScaleControl::hasActiveInput(void) ; +0xe4, 0xbd6ccc\nUXTB            W0, W0                                                 ; +0xe8, 0xbd6cd0\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0xec, 0xbd6cd4\nCBZ             W0, loc_BD6C38                                         ; +0xf0, 0xbd6cd8\nLDR             X0, [X19,#0x310]; this                                 ; +0xf4, 0xbd6cdc\nLDR             X19, [SP,#0x30+var_20]                                 ; +0xf8, 0xbd6ce0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xfc, 0xbd6ce4\nB               _ZN14GJScaleControl17releaseInputFocusEv; GJScaleControl::releaseInputFocus(void) ; +0x100, 0xbd6ce8\nLDR             X0, [X19,#0x310]; this                                 ; +0x104, 0xbd6cec\nBL              _ZN14GJScaleControl17applyFocusedInputEv; GJScaleControl::applyFocusedInput(void) ; +0x108, 0xbd6cf0\nUXTB            W0, W0                                                 ; +0x10c, 0xbd6cf4\nCBZ             W0, loc_BD6C9C                                         ; +0x110, 0xbd6cf8\nB               loc_BD6C08                                             ; +0x114, 0xbd6cfc\nLDR             X0, [X19,#0x2F8]; this                                 ; +0x118, 0xbd6d00\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x11c, 0xbd6d04\nBL              _ZN17GJRotationControl14hasActiveInputEv; GJRotationControl::hasActiveInput(void) ; +0x120, 0xbd6d08\nUXTB            W0, W0                                                 ; +0x124, 0xbd6d0c\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0x128, 0xbd6d10\nCBZ             W0, loc_BD6C5C                                         ; +0x12c, 0xbd6d14\nLDR             X0, [X19,#0x2F8]; this                                 ; +0x130, 0xbd6d18\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x134, 0xbd6d1c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x138, 0xbd6d20\nB               _ZN17GJRotationControl17releaseInputFocusEv; GJRotationControl::releaseInputFocus(void) ; +0x13c, 0xbd6d24", "xrefs": ["`non-virtual thunk to'EditorUI::keyDown @ 0xbd6d2c", "<???> @ 0xb7c70", "<???> @ 0x14371d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}