{"type": "func", "start": 4297587776, "end": 4297587906, "name": "-[CCEventDispatcher addKeyboardDelegate:priority:]", "pseudocode": "// \n// -[CCEventDispatcher addKeyboardDelegate:priority:] from 0x10027fc40 to 0x10027fcc2 (130 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bdbe30\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:27:43 +0000\n// \n\nvoid __cdecl -[CCEventDispatcher addKeyboardDelegate:priority:](\n        CCEventDispatcher *self,\n        SEL a2,\n        id a3,\n        signed __int64 a4)\n{\n  _BOOL8 v6; // r12\n  __int64 v7; // r12\n  char v8; // al\n\n  v6 = (unsigned __int8)objc_opt_respondsToSelector(a3, \"ccKeyUp:\") != 0;\n  v7 = v6 + 2LL * ((unsigned __int8)objc_opt_respondsToSelector(a3, \"ccKeyDown:\") != 0);\n  v8 = objc_opt_respondsToSelector(a3, \"ccFlagsChanged:\");\n  -[CCEventDispatcher addDelegate:priority:flags:list:](\n    self,\n    \"addDelegate:priority:flags:list:\",\n    a3,\n    a4,\n    v7 + 4LL * (v8 != 0),\n    &self->keyboardDelegates_);\n}", "assembly": "; \n; -[CCEventDispatcher addKeyboardDelegate:priority:] from 0x10027fc40 to 0x10027fcc2 (130 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bdbe30\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:27:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x10027fc40\nmov     rbp, rsp                                                       ; +0x1, 0x10027fc41\npush    r15                                                            ; +0x4, 0x10027fc44\npush    r14                                                            ; +0x6, 0x10027fc46\npush    r12                                                            ; +0x8, 0x10027fc48\npush    rbx                                                            ; +0xa, 0x10027fc4a\nmov     rbx, rcx                                                       ; +0xb, 0x10027fc4b\nmov     r14, rdx                                                       ; +0xe, 0x10027fc4e\nmov     r15, rdi                                                       ; +0x11, 0x10027fc51\nmov     rsi, cs:selRef_ccKeyUp_                                        ; +0x14, 0x10027fc54\nmov     rdi, rdx                                                       ; +0x1b, 0x10027fc5b\ncall    _objc_opt_respondsToSelector                                   ; +0x1e, 0x10027fc5e\nxor     r12d, r12d                                                     ; +0x23, 0x10027fc63\ntest    al, al                                                         ; +0x26, 0x10027fc66\nsetnz   r12b                                                           ; +0x28, 0x10027fc68\nmov     rsi, cs:selRef_ccKeyDown_                                      ; +0x2c, 0x10027fc6c\nmov     rdi, r14                                                       ; +0x33, 0x10027fc73\ncall    _objc_opt_respondsToSelector                                   ; +0x36, 0x10027fc76\nxor     ecx, ecx                                                       ; +0x3b, 0x10027fc7b\ntest    al, al                                                         ; +0x3d, 0x10027fc7d\nsetnz   cl                                                             ; +0x3f, 0x10027fc7f\nlea     r12, [r12+rcx*2]                                               ; +0x42, 0x10027fc82\nmov     rsi, cs:selRef_ccFlagsChanged_                                 ; +0x46, 0x10027fc86\nmov     rdi, r14                                                       ; +0x4d, 0x10027fc8d\ncall    _objc_opt_respondsToSelector                                   ; +0x50, 0x10027fc90\nxor     ecx, ecx                                                       ; +0x55, 0x10027fc95\ntest    al, al                                                         ; +0x57, 0x10027fc97\nsetnz   cl                                                             ; +0x59, 0x10027fc99\nlea     r8, [r12+rcx*4]                                                ; +0x5c, 0x10027fc9c\nlea     r9, [r15+10h]                                                  ; +0x60, 0x10027fca0\nmov     rsi, cs:selRef_addDelegate_priority_flags_list_                ; +0x64, 0x10027fca4\nmov     rdi, r15                                                       ; +0x6b, 0x10027fcab\nmov     rdx, r14                                                       ; +0x6e, 0x10027fcae\nmov     rcx, rbx                                                       ; +0x71, 0x10027fcb1\npop     rbx                                                            ; +0x74, 0x10027fcb4\npop     r12                                                            ; +0x75, 0x10027fcb5\npop     r14                                                            ; +0x77, 0x10027fcb7\npop     r15                                                            ; +0x79, 0x10027fcb9\npop     rbp                                                            ; +0x7b, 0x10027fcbb\njmp     cs:_objc_msgSend_ptr; -[CCEventDispatcher addDelegate:priority:flags:list:] ... ; +0x7c, 0x10027fcbc", "xrefs": ["<???> @ 0x100bdbe30"], "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"}