{"type": "func", "start": 4297676448, "end": 4297676632, "name": "-[CCEventDispatcher addTouchDelegate:priority:]", "pseudocode": "// \n// -[CCEventDispatcher addTouchDelegate:priority:] from 0x1002956a0 to 0x100295758 (184 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100999df0\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 -[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 0x1002956a0 to 0x100295758 (184 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100999df0\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, 0x1002956a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002956a1\npush    r15                                                            ; +0x4, 0x1002956a4\npush    r14                                                            ; +0x6, 0x1002956a6\npush    r13                                                            ; +0x8, 0x1002956a8\npush    r12                                                            ; +0xa, 0x1002956aa\npush    rbx                                                            ; +0xc, 0x1002956ac\npush    rax                                                            ; +0xd, 0x1002956ad\nmov     rbx, rcx                                                       ; +0xe, 0x1002956ae\nmov     r14, rdx                                                       ; +0x11, 0x1002956b1\nmov     r15, rdi                                                       ; +0x14, 0x1002956b4\nmov     rsi, cs:selRef_ccTouchesBeganWithEvent_                        ; +0x17, 0x1002956b7\nmov     rdi, rdx                                                       ; +0x1e, 0x1002956be\ncall    _objc_opt_respondsToSelector                                   ; +0x21, 0x1002956c1\nxor     r12d, r12d                                                     ; +0x26, 0x1002956c6\ntest    al, al                                                         ; +0x29, 0x1002956c9\nsetnz   r12b                                                           ; +0x2b, 0x1002956cb\nshl     r12d, 0Dh                                                      ; +0x2f, 0x1002956cf\nmov     rsi, cs:selRef_ccTouchesMovedWithEvent_                        ; +0x33, 0x1002956d3\nmov     rdi, r14                                                       ; +0x3a, 0x1002956da\ncall    _objc_opt_respondsToSelector                                   ; +0x3d, 0x1002956dd\nxor     r13d, r13d                                                     ; +0x42, 0x1002956e2\ntest    al, al                                                         ; +0x45, 0x1002956e5\nsetnz   r13b                                                           ; +0x47, 0x1002956e7\nshl     r13d, 0Eh                                                      ; +0x4b, 0x1002956eb\nor      r13d, r12d                                                     ; +0x4f, 0x1002956ef\nmov     rsi, cs:selRef_ccTouchesEndedWithEvent_                        ; +0x52, 0x1002956f2\nmov     rdi, r14                                                       ; +0x59, 0x1002956f9\ncall    _objc_opt_respondsToSelector                                   ; +0x5c, 0x1002956fc\nxor     r12d, r12d                                                     ; +0x61, 0x100295701\ntest    al, al                                                         ; +0x64, 0x100295704\nsetnz   r12b                                                           ; +0x66, 0x100295706\nshl     r12d, 0Fh                                                      ; +0x6a, 0x10029570a\nor      r12d, r13d                                                     ; +0x6e, 0x10029570e\nmov     rsi, cs:selRef_ccTouchesCancelledWithEvent_                    ; +0x71, 0x100295711\nmov     rdi, r14                                                       ; +0x78, 0x100295718\ncall    _objc_opt_respondsToSelector                                   ; +0x7b, 0x10029571b\nxor     r8d, r8d                                                       ; +0x80, 0x100295720\ntest    al, al                                                         ; +0x83, 0x100295723\nsetnz   r8b                                                            ; +0x85, 0x100295725\nshl     r8d, 10h                                                       ; +0x89, 0x100295729\nor      r8d, r12d                                                      ; +0x8d, 0x10029572d\nlea     r9, [r15+20h]                                                  ; +0x90, 0x100295730\nmov     rsi, cs:selRef_addDelegate_priority_flags_list_                ; +0x94, 0x100295734\nmov     rdi, r15                                                       ; +0x9b, 0x10029573b\nmov     rdx, r14                                                       ; +0x9e, 0x10029573e\nmov     rcx, rbx                                                       ; +0xa1, 0x100295741\nadd     rsp, 8                                                         ; +0xa4, 0x100295744\npop     rbx                                                            ; +0xa8, 0x100295748\npop     r12                                                            ; +0xa9, 0x100295749\npop     r13                                                            ; +0xab, 0x10029574b\npop     r14                                                            ; +0xad, 0x10029574d\npop     r15                                                            ; +0xaf, 0x10029574f\npop     rbp                                                            ; +0xb1, 0x100295751\njmp     cs:_objc_msgSend_ptr; -[CCEventDispatcher addDelegate:priority:flags:list:] ... ; +0xb2, 0x100295752", "xrefs": ["<???> @ 0x100999df0"], "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"}