{"type": "func", "start": 4303847728, "end": 4303847894, "name": "-[CCWindow keyDown:]", "pseudocode": "// \n// -[CCWindow keyDown:] from 0x100878130 to 0x1008781d6 (166 bytes)\n// \n// 2 xrefs:\n// > -[CCWindow keyDown:] @ 0x1008781c4\n// > <???> @ 0x100bdd768\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 12:36:53 +0000\n// \n\nvoid __cdecl -[CCWindow keyDown:](CCWindow *self, SEL a2, id a3)\n{\n  id v4; // r15\n  objc_super v5; // [rsp+0h] [rbp-30h] BYREF\n\n  if ( (unsigned __int16)objc_msgSend(a3, \"keyCode\") == 53 )\n  {\n    v4 = +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, \"sharedEGLView\");\n    if ( (unsigned __int8)objc_msgSend(v4, \"isFullScreen\") )\n    {\n      objc_msgSend(v4, \"setFullScreen:borderless:\", 0, 0);\n    }\n    else\n    {\n      v5.receiver = self;\n      v5.super_class = (Class)&OBJC_CLASS___CCWindow;\n      -[CCWindow keyDown:](&v5, \"keyDown:\", a3);\n    }\n  }\n}", "assembly": "; \n; -[CCWindow keyDown:] from 0x100878130 to 0x1008781d6 (166 bytes)\n; \n; 2 xrefs:\n; > -[CCWindow keyDown:] @ 0x1008781c4\n; > <???> @ 0x100bdd768\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 12:36:53 +0000\n; \npush    rbp                                                            ; +0x0, 0x100878130\nmov     rbp, rsp                                                       ; +0x1, 0x100878131\npush    r15                                                            ; +0x4, 0x100878134\npush    r14                                                            ; +0x6, 0x100878136\npush    r12                                                            ; +0x8, 0x100878138\npush    rbx                                                            ; +0xa, 0x10087813a\nsub     rsp, 10h                                                       ; +0xb, 0x10087813b\nmov     rbx, rdx                                                       ; +0xf, 0x10087813f\nmov     r14, rdi                                                       ; +0x12, 0x100878142\nmov     rsi, cs:selRef_keyCode; SEL                                    ; +0x15, 0x100878145\nmov     rdi, rdx; id                                                   ; +0x1c, 0x10087814c\ncall    cs:_objc_msgSend_ptr                                           ; +0x1f, 0x10087814f\ncmp     ax, 35h ; '5'                                                  ; +0x25, 0x100878155\njnz     short loc_1008781C9                                            ; +0x29, 0x100878159\nmov     rdi, cs:classRef_EAGLView; id                                  ; +0x2b, 0x10087815b\nmov     rsi, cs:selRef_sharedEGLView; SEL                              ; +0x32, 0x100878162\nmov     r12, cs:_objc_msgSend_ptr                                      ; +0x39, 0x100878169\ncall    r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ...             ; +0x40, 0x100878170\nmov     r15, rax                                                       ; +0x43, 0x100878173\nmov     rsi, cs:selRef_isFullScreen; SEL                               ; +0x46, 0x100878176\nmov     rdi, rax; id                                                   ; +0x4d, 0x10087817d\ncall    r12 ; _objc_msgSend                                            ; +0x50, 0x100878180\ntest    al, al                                                         ; +0x53, 0x100878183\njz      short loc_1008781A7                                            ; +0x55, 0x100878185\nmov     rsi, cs:selRef_setFullScreen_borderless_                       ; +0x57, 0x100878187\nmov     rdi, r15                                                       ; +0x5e, 0x10087818e\nxor     edx, edx                                                       ; +0x61, 0x100878191\nxor     ecx, ecx                                                       ; +0x63, 0x100878193\nadd     rsp, 10h                                                       ; +0x65, 0x100878195\npop     rbx                                                            ; +0x69, 0x100878199\npop     r12                                                            ; +0x6a, 0x10087819a\npop     r14                                                            ; +0x6c, 0x10087819c\npop     r15                                                            ; +0x6e, 0x10087819e\npop     rbp                                                            ; +0x70, 0x1008781a0\njmp     cs:_objc_msgSend_ptr                                           ; +0x71, 0x1008781a1\nmov     [rbp+var_30.receiver], r14                                     ; +0x77, 0x1008781a7\nmov     rax, cs:classRef_CCWindow_0                                    ; +0x7b, 0x1008781ab\nmov     [rbp+var_30.super_class], rax                                  ; +0x82, 0x1008781b2\nmov     rsi, cs:selRef_keyDown_; SEL                                   ; +0x86, 0x1008781b6\nlea     rdi, [rbp+var_30]; objc_super *                                ; +0x8d, 0x1008781bd\nmov     rdx, rbx                                                       ; +0x91, 0x1008781c1\ncall    _objc_msgSendSuper2; -[CCWindow keyDown:] ...                  ; +0x94, 0x1008781c4\nadd     rsp, 10h                                                       ; +0x99, 0x1008781c9\npop     rbx                                                            ; +0x9d, 0x1008781cd\npop     r12                                                            ; +0x9e, 0x1008781ce\npop     r14                                                            ; +0xa0, 0x1008781d0\npop     r15                                                            ; +0xa2, 0x1008781d2\npop     rbp                                                            ; +0xa4, 0x1008781d4\nretn                                                                   ; +0xa5, 0x1008781d5", "xrefs": ["-[CCWindow keyDown:] @ 0x1008781c4", "<???> @ 0x100bdd768"], "is_objc": true, "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"}