{"type": "func", "start": 4297587984, "end": 4297588168, "name": "-[CCEventDispatcher addTouchDelegate:priority:]", "pseudocode": "// \n// -[CCEventDispatcher addTouchDelegate:priority:] from 0x10027fd10 to 0x10027fdc8 (184 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bdbe78\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 addTouchDelegate:priority:](CCEventDispatcher *self, SEL a2, id a3, signed __int64 a4)\n{\n  int v6; // r12d\n  int v7; // r13d\n  int v8; // r12d\n  char v9; // al\n\n  v6 = ((unsigned __int8)objc_opt_respondsToSelector(a3, \"ccTouchesBeganWithEvent:\") != 0) << 13;\n  v7 = v6 | (((unsigned __int8)objc_opt_respondsToSelector(a3, \"ccTouchesMovedWithEvent:\") != 0) << 14);\n  v8 = v7 | (((unsigned __int8)objc_opt_respondsToSelector(a3, \"ccTouchesEndedWithEvent:\") != 0) << 15);\n  v9 = objc_opt_respondsToSelector(a3, \"ccTouchesCancelledWithEvent:\");\n  -[CCEventDispatcher addDelegate:priority:flags:list:](\n    self,\n    \"addDelegate:priority:flags:list:\",\n    a3,\n    a4,\n    v8 | ((unsigned __int8)(v9 != 0) << 16),\n    &self->touchDelegates_);\n}", "assembly": "; \n; -[CCEventDispatcher addTouchDelegate:priority:] from 0x10027fd10 to 0x10027fdc8 (184 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bdbe78\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, 0x10027fd10\nmov     rbp, rsp                                                       ; +0x1, 0x10027fd11\npush    r15                                                            ; +0x4, 0x10027fd14\npush    r14                                                            ; +0x6, 0x10027fd16\npush    r13                                                            ; +0x8, 0x10027fd18\npush    r12                                                            ; +0xa, 0x10027fd1a\npush    rbx                                                            ; +0xc, 0x10027fd1c\npush    rax                                                            ; +0xd, 0x10027fd1d\nmov     rbx, rcx                                                       ; +0xe, 0x10027fd1e\nmov     r14, rdx                                                       ; +0x11, 0x10027fd21\nmov     r15, rdi                                                       ; +0x14, 0x10027fd24\nmov     rsi, cs:selRef_ccTouchesBeganWithEvent_                        ; +0x17, 0x10027fd27\nmov     rdi, rdx                                                       ; +0x1e, 0x10027fd2e\ncall    _objc_opt_respondsToSelector                                   ; +0x21, 0x10027fd31\nxor     r12d, r12d                                                     ; +0x26, 0x10027fd36\ntest    al, al                                                         ; +0x29, 0x10027fd39\nsetnz   r12b                                                           ; +0x2b, 0x10027fd3b\nshl     r12d, 0Dh                                                      ; +0x2f, 0x10027fd3f\nmov     rsi, cs:selRef_ccTouchesMovedWithEvent_                        ; +0x33, 0x10027fd43\nmov     rdi, r14                                                       ; +0x3a, 0x10027fd4a\ncall    _objc_opt_respondsToSelector                                   ; +0x3d, 0x10027fd4d\nxor     r13d, r13d                                                     ; +0x42, 0x10027fd52\ntest    al, al                                                         ; +0x45, 0x10027fd55\nsetnz   r13b                                                           ; +0x47, 0x10027fd57\nshl     r13d, 0Eh                                                      ; +0x4b, 0x10027fd5b\nor      r13d, r12d                                                     ; +0x4f, 0x10027fd5f\nmov     rsi, cs:selRef_ccTouchesEndedWithEvent_                        ; +0x52, 0x10027fd62\nmov     rdi, r14                                                       ; +0x59, 0x10027fd69\ncall    _objc_opt_respondsToSelector                                   ; +0x5c, 0x10027fd6c\nxor     r12d, r12d                                                     ; +0x61, 0x10027fd71\ntest    al, al                                                         ; +0x64, 0x10027fd74\nsetnz   r12b                                                           ; +0x66, 0x10027fd76\nshl     r12d, 0Fh                                                      ; +0x6a, 0x10027fd7a\nor      r12d, r13d                                                     ; +0x6e, 0x10027fd7e\nmov     rsi, cs:selRef_ccTouchesCancelledWithEvent_                    ; +0x71, 0x10027fd81\nmov     rdi, r14                                                       ; +0x78, 0x10027fd88\ncall    _objc_opt_respondsToSelector                                   ; +0x7b, 0x10027fd8b\nxor     r8d, r8d                                                       ; +0x80, 0x10027fd90\ntest    al, al                                                         ; +0x83, 0x10027fd93\nsetnz   r8b                                                            ; +0x85, 0x10027fd95\nshl     r8d, 10h                                                       ; +0x89, 0x10027fd99\nor      r8d, r12d                                                      ; +0x8d, 0x10027fd9d\nlea     r9, [r15+20h]                                                  ; +0x90, 0x10027fda0\nmov     rsi, cs:selRef_addDelegate_priority_flags_list_                ; +0x94, 0x10027fda4\nmov     rdi, r15                                                       ; +0x9b, 0x10027fdab\nmov     rdx, r14                                                       ; +0x9e, 0x10027fdae\nmov     rcx, rbx                                                       ; +0xa1, 0x10027fdb1\nadd     rsp, 8                                                         ; +0xa4, 0x10027fdb4\npop     rbx                                                            ; +0xa8, 0x10027fdb8\npop     r12                                                            ; +0xa9, 0x10027fdb9\npop     r13                                                            ; +0xab, 0x10027fdbb\npop     r14                                                            ; +0xad, 0x10027fdbd\npop     r15                                                            ; +0xaf, 0x10027fdbf\npop     rbp                                                            ; +0xb1, 0x10027fdc1\njmp     cs:_objc_msgSend_ptr; -[CCEventDispatcher addDelegate:priority:flags:list:] ... ; +0xb2, 0x10027fdc2", "xrefs": ["<???> @ 0x100bdbe78"], "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"}