{"type": "func", "start": 6442466624, "end": 6442466756, "name": "cocos2d::extension::CCControl::registerWithTouchDispatcher", "pseudocode": "// \n// cocos2d::extension::CCControl::registerWithTouchDispatcher from 0x180003d40 to 0x180003dc4 (132 bytes)\n// \n// 10 xrefs:\n// > <???> @ 0x180025f80\n// > <???> @ 0x1800265a0\n// > <???> @ 0x180026b20\n// > <???> @ 0x180027828\n// > <???> @ 0x180028400\n// > <???> @ 0x1800289f0\n// > <???> @ 0x180029038\n// > <???> @ 0x18002a518\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b330\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:15:35 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControl::registerWithTouchDispatcher(\n        cocos2d::extension::CCControl *this,\n        __int64 a2)\n{\n  __int64 v3; // r14\n  __int64 (__fastcall *v4)(__int64); // rdi\n  int v5; // esi\n  struct cocos2d::CCTouchDelegate *v6; // rbx\n  cocos2d::CCTouchDispatcher *v7; // rax\n\n  v3 = cocos2d::CCDirector::sharedDirector(this, a2);\n  v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL);\n  v5 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControl *))(*(_QWORD *)this + 952LL))(this);\n  v6 = (cocos2d::extension::CCControl *)((char *)this + 320);\n  if ( !this )\n    v6 = nullptr;\n  v7 = (cocos2d::CCTouchDispatcher *)v4(v3);\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(v7, v6, v5, 1);\n}", "assembly": "; \n; cocos2d::extension::CCControl::registerWithTouchDispatcher from 0x180003d40 to 0x180003dc4 (132 bytes)\n; \n; 10 xrefs:\n; > <???> @ 0x180025f80\n; > <???> @ 0x1800265a0\n; > <???> @ 0x180026b20\n; > <???> @ 0x180027828\n; > <???> @ 0x180028400\n; > <???> @ 0x1800289f0\n; > <???> @ 0x180029038\n; > <???> @ 0x18002a518\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b330\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:15:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180003d40\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180003d45\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x180003d4a\nmov     [rsp+arg_18], r14                                              ; +0xf, 0x180003d4f\npush    r15                                                            ; +0x14, 0x180003d54\nsub     rsp, 20h                                                       ; +0x16, 0x180003d56\nmov     r15, rcx                                                       ; +0x1a, 0x180003d5a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x180003d5d\nmov     rdx, [r15]                                                     ; +0x23, 0x180003d63\nmov     rcx, r15                                                       ; +0x26, 0x180003d66\nmov     r14, rax                                                       ; +0x29, 0x180003d69\nmov     r8, [rdx+3B8h]                                                 ; +0x2c, 0x180003d6c\nmov     rdx, [rax]                                                     ; +0x33, 0x180003d73\nmov     rdi, [rdx+90h]                                                 ; +0x36, 0x180003d76\ncall    r8                                                             ; +0x3d, 0x180003d7d\nmov     esi, eax                                                       ; +0x40, 0x180003d80\nlea     rbx, [r15+140h]                                                ; +0x42, 0x180003d82\nxor     eax, eax                                                       ; +0x49, 0x180003d89\nmov     rcx, r14                                                       ; +0x4b, 0x180003d8b\ntest    r15, r15                                                       ; +0x4e, 0x180003d8e\ncmovz   rbx, rax                                                       ; +0x51, 0x180003d91\ncall    rdi                                                            ; +0x55, 0x180003d95\nmov     rcx, rax                                                       ; +0x57, 0x180003d97\nmov     r9b, 1                                                         ; +0x5a, 0x180003d9a\nmov     r8d, esi                                                       ; +0x5d, 0x180003d9d\nmov     rdx, rbx                                                       ; +0x60, 0x180003da0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x180003da3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x68, 0x180003da8\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x6d, 0x180003dad\nmov     r14, [rsp+28h+arg_18]                                          ; +0x72, 0x180003db2\nadd     rsp, 20h                                                       ; +0x77, 0x180003db7\npop     r15                                                            ; +0x7b, 0x180003dbb\njmp     cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x7d, 0x180003dbd", "xrefs": ["<???> @ 0x180025f80", "<???> @ 0x1800265a0", "<???> @ 0x180026b20", "<???> @ 0x180027828", "<???> @ 0x180028400", "<???> @ 0x1800289f0", "<???> @ 0x180029038", "<???> @ 0x18002a518", "<???> @ 0x180032408", "<???> @ 0x18004b330"], "is_objc": false, "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"}