{"type": "func", "start": 7918042, "end": 7918130, "name": "EditorWindowPopup::keyDown", "pseudocode": "// \n// EditorWindowPopup::keyDown from 0x78d1da to 0x78d232 (88 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::keyDown @ 0x7788b8\n// > `non-virtual thunk to'EditorWindowPopup::keyDown @ 0x78d236\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:59:37 +0000\n// \n\nint __fastcall EditorWindowPopup::keyDown(int a1, int a2, int a3, int a4)\n{\n  int result; // r0\n\n  result = EditorWindowPopup::fieldHoldsKeys((EditorWindowPopup *)a1);\n  if ( result )\n  {\n    *(_BYTE *)(a1 + 771) = 0;\n    if ( a2 == 13 )\n    {\n      return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 764))(a1);\n    }\n    else if ( a2 == 27 )\n    {\n      return EditorWindowPopup::blurField((EditorWindowPopup *)a1);\n    }\n  }\n  else\n  {\n    result = *(_DWORD *)(a1 + 712);\n    if ( result )\n      return (*(int (__fastcall **)(int, int, int, int))(*(_DWORD *)result + 564))(result, a2, a3, a4);\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::keyDown from 0x78d1da to 0x78d232 (88 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::keyDown @ 0x7788b8\n; > `non-virtual thunk to'EditorWindowPopup::keyDown @ 0x78d236\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:59:37 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x78d1da\nMOV             R4, R0                                                 ; +0x4, 0x78d1de\nMOV             R5, R1                                                 ; +0x6, 0x78d1e0\nMOV             R6, R2                                                 ; +0x8, 0x78d1e2\nMOV             R7, R3                                                 ; +0xa, 0x78d1e4\nBL              _ZN17EditorWindowPopup14fieldHoldsKeysEv; EditorWindowPopup::fieldHoldsKeys(void) ; +0xc, 0x78d1e6\nCBZ             R0, loc_78D214                                         ; +0x10, 0x78d1ea\nCMP             R5, #0xD                                               ; +0x12, 0x78d1ec\nMOV.W           R3, #0                                                 ; +0x14, 0x78d1ee\nSTRB.W          R3, [R4,#0x303]                                        ; +0x18, 0x78d1f2\nBNE             loc_78D206                                             ; +0x1c, 0x78d1f6\nLDR             R3, [R4]                                               ; +0x1e, 0x78d1f8\nMOV             R0, R4                                                 ; +0x20, 0x78d1fa\nPOP.W           {R4-R8,LR}                                             ; +0x22, 0x78d1fc\nLDR.W           R3, [R3,#0x2FC]                                        ; +0x26, 0x78d200\nBX              R3                                                     ; +0x2a, 0x78d204\nCMP             R5, #0x1B                                              ; +0x2c, 0x78d206\nBNE             locret_78D22E                                          ; +0x2e, 0x78d208\nMOV             R0, R4; this                                           ; +0x30, 0x78d20a\nPOP.W           {R4-R8,LR}                                             ; +0x32, 0x78d20c\nB.W             _ZN17EditorWindowPopup9blurFieldEv; EditorWindowPopup::blurField(void) ; +0x36, 0x78d210\nLDR.W           R0, [R4,#0x2C8]                                        ; +0x3a, 0x78d214\nCBZ             R0, locret_78D22E                                      ; +0x3e, 0x78d218\nLDR             R3, [R0]                                               ; +0x40, 0x78d21a\nMOV             R1, R5                                                 ; +0x42, 0x78d21c\nMOV             R2, R6                                                 ; +0x44, 0x78d21e\nLDR.W           R4, [R3,#0x234]                                        ; +0x46, 0x78d220\nMOV             R3, R7                                                 ; +0x4a, 0x78d224\nMOV             R12, R4                                                ; +0x4c, 0x78d226\nPOP.W           {R4-R8,LR}                                             ; +0x4e, 0x78d228\nBX              R12                                                    ; +0x52, 0x78d22c\nPOP.W           {R4-R8,PC}                                             ; +0x54, 0x78d22e", "xrefs": ["EmotePickerPopup::keyDown @ 0x7788b8", "`non-virtual thunk to'EditorWindowPopup::keyDown @ 0x78d236"], "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"}