{"type": "func", "start": 7279180, "end": 7279348, "name": "EditorUI::keyDown", "pseudocode": "// \n// EditorUI::keyDown from 0x6f124c to 0x6f12f4 (168 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::keyDown @ 0x6f12f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:35 +0000\n// \n\nint __fastcall EditorUI::keyDown(int result, int a2, int a3, int a4)\n{\n  GJRotationControl **v4; // r4\n\n  v4 = (GJRotationControl **)result;\n  if ( a2 == 27 )\n  {\n    if ( (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(result + 592) + 176))(*(_DWORD *)(result + 592))\n      && GJScaleControl::hasActiveInput(v4[148]) )\n    {\n      return GJScaleControl::releaseInputFocus(v4[148]);\n    }\n    else if ( (*(int (__fastcall **)(GJRotationControl *))(*(_DWORD *)v4[144] + 176))(v4[144])\n           && GJRotationControl::hasActiveInput(v4[144]) )\n    {\n      return GJRotationControl::releaseInputFocus(v4[144]);\n    }\n    else\n    {\n      return (*((int (__fastcall **)(GJRotationControl **, int, int, _DWORD, int, int))*v4 + 164))(\n               v4,\n               20067,\n               1,\n               *((_DWORD *)*v4 + 164),\n               a3,\n               a4);\n    }\n  }\n  else if ( a2 == 13\n         && (!(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(result + 592) + 176))(*(_DWORD *)(result + 592))\n          || (result = GJScaleControl::applyFocusedInput(v4[148])) == 0) )\n  {\n    result = (*(int (__fastcall **)(GJRotationControl *))(*(_DWORD *)v4[144] + 176))(v4[144]);\n    if ( result )\n      return GJRotationControl::applyFocusedInput(v4[144]);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::keyDown from 0x6f124c to 0x6f12f4 (168 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::keyDown @ 0x6f12f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:35 +0000\n; \nCMP             R1, #0x1B                                              ; +0x0, 0x6f124c\nPUSH            {R0,R1,R4,R6,R7,LR}                                    ; +0x2, 0x6f124e\nMOV             R4, R0                                                 ; +0x4, 0x6f1250\nMOV             R6, R2                                                 ; +0x6, 0x6f1252\nMOV             R7, R3                                                 ; +0x8, 0x6f1254\nBNE             loc_6F12A4                                             ; +0xa, 0x6f1256\nLDR.W           R0, [R0,#0x250]                                        ; +0xc, 0x6f1258\nLDR             R3, [R0]                                               ; +0x10, 0x6f125c\nLDR.W           R3, [R3,#0xB0]                                         ; +0x12, 0x6f125e\nBLX             R3                                                     ; +0x16, 0x6f1262\nCBZ             R0, loc_6F127E                                         ; +0x18, 0x6f1264\nLDR.W           R0, [R4,#0x250]; this                                  ; +0x1a, 0x6f1266\nBL              _ZN14GJScaleControl14hasActiveInputEv; GJScaleControl::hasActiveInput(void) ; +0x1e, 0x6f126a\nCBZ             R0, loc_6F127E                                         ; +0x22, 0x6f126e\nLDR.W           R0, [R4,#0x250]; this                                  ; +0x24, 0x6f1270\nADD             SP, SP, #8                                             ; +0x28, 0x6f1274\nPOP.W           {R4,R6,R7,LR}                                          ; +0x2a, 0x6f1276\nB.W             _ZN14GJScaleControl17releaseInputFocusEv; GJScaleControl::releaseInputFocus(void) ; +0x2e, 0x6f127a\nLDR.W           R0, [R4,#0x240]                                        ; +0x32, 0x6f127e\nLDR             R3, [R0]                                               ; +0x36, 0x6f1282\nLDR.W           R3, [R3,#0xB0]                                         ; +0x38, 0x6f1284\nBLX             R3                                                     ; +0x3c, 0x6f1288\nCBZ             R0, loc_6F12DC                                         ; +0x3e, 0x6f128a\nLDR.W           R0, [R4,#0x240]; this                                  ; +0x40, 0x6f128c\nBL              _ZN17GJRotationControl14hasActiveInputEv; GJRotationControl::hasActiveInput(void) ; +0x44, 0x6f1290\nCBZ             R0, loc_6F12DC                                         ; +0x48, 0x6f1294\nLDR.W           R0, [R4,#0x240]; this                                  ; +0x4a, 0x6f1296\nADD             SP, SP, #8                                             ; +0x4e, 0x6f129a\nPOP.W           {R4,R6,R7,LR}                                          ; +0x50, 0x6f129c\nB.W             _ZN17GJRotationControl17releaseInputFocusEv; GJRotationControl::releaseInputFocus(void) ; +0x54, 0x6f12a0\nCMP             R1, #0xD                                               ; +0x58, 0x6f12a4\nBNE             loc_6F12F0                                             ; +0x5a, 0x6f12a6\nLDR.W           R0, [R4,#0x250]                                        ; +0x5c, 0x6f12a8\nLDR             R3, [R0]                                               ; +0x60, 0x6f12ac\nLDR.W           R3, [R3,#0xB0]                                         ; +0x62, 0x6f12ae\nBLX             R3                                                     ; +0x66, 0x6f12b2\nCBZ             R0, loc_6F12C0                                         ; +0x68, 0x6f12b4\nLDR.W           R0, [R4,#0x250]; this                                  ; +0x6a, 0x6f12b6\nBL              _ZN14GJScaleControl17applyFocusedInputEv; GJScaleControl::applyFocusedInput(void) ; +0x6e, 0x6f12ba\nCBNZ            R0, loc_6F12F0                                         ; +0x72, 0x6f12be\nLDR.W           R0, [R4,#0x240]                                        ; +0x74, 0x6f12c0\nLDR             R3, [R0]                                               ; +0x78, 0x6f12c4\nLDR.W           R3, [R3,#0xB0]                                         ; +0x7a, 0x6f12c6\nBLX             R3                                                     ; +0x7e, 0x6f12ca\nCBZ             R0, loc_6F12F0                                         ; +0x80, 0x6f12cc\nLDR.W           R0, [R4,#0x240]; this                                  ; +0x82, 0x6f12ce\nADD             SP, SP, #8                                             ; +0x86, 0x6f12d2\nPOP.W           {R4,R6,R7,LR}                                          ; +0x88, 0x6f12d4\nB.W             _ZN17GJRotationControl17applyFocusedInputEv; GJRotationControl::applyFocusedInput(void) ; +0x8c, 0x6f12d8\nLDR             R3, [R4]                                               ; +0x90, 0x6f12dc\nMOV             R0, R4                                                 ; +0x92, 0x6f12de\nSTRD.W          R6, R7, [SP,#8+var_8]                                  ; +0x94, 0x6f12e0\nMOVW            R1, #0x4E63                                            ; +0x98, 0x6f12e4\nMOVS            R2, #1                                                 ; +0x9c, 0x6f12e8\nLDR.W           R3, [R3,#0x290]                                        ; +0x9e, 0x6f12ea\nBLX             R3                                                     ; +0xa2, 0x6f12ee\nADD             SP, SP, #8                                             ; +0xa4, 0x6f12f0\nPOP             {R4,R6,R7,PC}                                          ; +0xa6, 0x6f12f2", "xrefs": ["`non-virtual thunk to'EditorUI::keyDown @ 0x6f12f8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}