{"type": "func", "start": 4302927664, "end": 4302927830, "name": "-[CCWindow keyDown:]", "pseudocode": "// \n// -[CCWindow keyDown:] from 0x100797730 to 0x1007977d6 (166 bytes)\n// \n// 2 xrefs:\n// > -[CCWindow keyDown:] @ 0x1007977c4\n// > <???> @ 0x10099b698\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 0x100797730 to 0x1007977d6 (166 bytes)\n; \n; 2 xrefs:\n; > -[CCWindow keyDown:] @ 0x1007977c4\n; > <???> @ 0x10099b698\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100797730\nmov     rbp, rsp                                                       ; +0x1, 0x100797731\npush    r15                                                            ; +0x4, 0x100797734\npush    r14                                                            ; +0x6, 0x100797736\npush    r12                                                            ; +0x8, 0x100797738\npush    rbx                                                            ; +0xa, 0x10079773a\nsub     rsp, 10h                                                       ; +0xb, 0x10079773b\nmov     rbx, rdx                                                       ; +0xf, 0x10079773f\nmov     r14, rdi                                                       ; +0x12, 0x100797742\nmov     rsi, cs:selRef_keyCode; SEL                                    ; +0x15, 0x100797745\nmov     rdi, rdx; id                                                   ; +0x1c, 0x10079774c\ncall    cs:_objc_msgSend_ptr                                           ; +0x1f, 0x10079774f\ncmp     ax, 35h ; '5'                                                  ; +0x25, 0x100797755\njnz     short loc_1007977C9                                            ; +0x29, 0x100797759\nmov     rdi, cs:classRef_EAGLView; id                                  ; +0x2b, 0x10079775b\nmov     rsi, cs:selRef_sharedEGLView; SEL                              ; +0x32, 0x100797762\nmov     r12, cs:_objc_msgSend_ptr                                      ; +0x39, 0x100797769\ncall    r12 ; _objc_msgSend; +[EAGLView sharedEGLView] ...             ; +0x40, 0x100797770\nmov     r15, rax                                                       ; +0x43, 0x100797773\nmov     rsi, cs:selRef_isFullScreen; SEL                               ; +0x46, 0x100797776\nmov     rdi, rax; id                                                   ; +0x4d, 0x10079777d\ncall    r12 ; _objc_msgSend                                            ; +0x50, 0x100797780\ntest    al, al                                                         ; +0x53, 0x100797783\njz      short loc_1007977A7                                            ; +0x55, 0x100797785\nmov     rsi, cs:selRef_setFullScreen_borderless_                       ; +0x57, 0x100797787\nmov     rdi, r15                                                       ; +0x5e, 0x10079778e\nxor     edx, edx                                                       ; +0x61, 0x100797791\nxor     ecx, ecx                                                       ; +0x63, 0x100797793\nadd     rsp, 10h                                                       ; +0x65, 0x100797795\npop     rbx                                                            ; +0x69, 0x100797799\npop     r12                                                            ; +0x6a, 0x10079779a\npop     r14                                                            ; +0x6c, 0x10079779c\npop     r15                                                            ; +0x6e, 0x10079779e\npop     rbp                                                            ; +0x70, 0x1007977a0\njmp     cs:_objc_msgSend_ptr                                           ; +0x71, 0x1007977a1\nmov     [rbp+var_30.receiver], r14                                     ; +0x77, 0x1007977a7\nmov     rax, cs:classRef_CCWindow_0                                    ; +0x7b, 0x1007977ab\nmov     [rbp+var_30.super_class], rax                                  ; +0x82, 0x1007977b2\nmov     rsi, cs:selRef_keyDown_; SEL                                   ; +0x86, 0x1007977b6\nlea     rdi, [rbp+var_30]; objc_super *                                ; +0x8d, 0x1007977bd\nmov     rdx, rbx                                                       ; +0x91, 0x1007977c1\ncall    _objc_msgSendSuper2; -[CCWindow keyDown:] ...                  ; +0x94, 0x1007977c4\nadd     rsp, 10h                                                       ; +0x99, 0x1007977c9\npop     rbx                                                            ; +0x9d, 0x1007977cd\npop     r12                                                            ; +0x9e, 0x1007977ce\npop     r14                                                            ; +0xa0, 0x1007977d0\npop     r15                                                            ; +0xa2, 0x1007977d2\npop     rbp                                                            ; +0xa4, 0x1007977d4\nretn                                                                   ; +0xa5, 0x1007977d5", "xrefs": ["-[CCWindow keyDown:] @ 0x1007977c4", "<???> @ 0x10099b698"], "is_objc": true, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}