{"type": "func", "start": 6443236304, "end": 6443236368, "name": "cocos2d::CCDirector::setTouchDispatcher", "pseudocode": "// \n// cocos2d::CCDirector::setTouchDispatcher from 0x1800bfbd0 to 0x1800bfc10 (64 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180107308\n// > <???> @ 0x180107418\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b93a8\n// > <???> @ 0x1801b93b4\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 __fastcall cocos2d::CCDirector::setTouchDispatcher(\n        cocos2d::CCDirector *this,\n        struct cocos2d::CCTouchDispatcher *a2)\n{\n  cocos2d::CCTouchDispatcher *m_pTouchDispatcher; // rcx\n\n  if ( this->m_pTouchDispatcher != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    m_pTouchDispatcher = this->m_pTouchDispatcher;\n    if ( m_pTouchDispatcher )\n      cocos2d::CCObject::release(m_pTouchDispatcher);\n    this->m_pTouchDispatcher = a2;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::setTouchDispatcher from 0x1800bfbd0 to 0x1800bfc10 (64 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180107308\n; > <???> @ 0x180107418\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b93a8\n; > <???> @ 0x1801b93b4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800bfbd0\npush    rdi                                                            ; +0x5, 0x1800bfbd5\nsub     rsp, 20h                                                       ; +0x6, 0x1800bfbd6\nmov     rbx, rdx                                                       ; +0xa, 0x1800bfbda\nmov     rdi, rcx                                                       ; +0xd, 0x1800bfbdd\ncmp     [rcx+78h], rdx                                                 ; +0x10, 0x1800bfbe0\njz      short loc_1800BFC05                                            ; +0x14, 0x1800bfbe4\ntest    rdx, rdx                                                       ; +0x16, 0x1800bfbe6\njz      short loc_1800BFBF3                                            ; +0x19, 0x1800bfbe9\nmov     rcx, rdx; this                                                 ; +0x1b, 0x1800bfbeb\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x1e, 0x1800bfbee\nmov     rcx, [rdi+78h]; this                                           ; +0x23, 0x1800bfbf3\ntest    rcx, rcx                                                       ; +0x27, 0x1800bfbf7\njz      short loc_1800BFC01                                            ; +0x2a, 0x1800bfbfa\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2c, 0x1800bfbfc\nmov     [rdi+78h], rbx                                                 ; +0x31, 0x1800bfc01\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x35, 0x1800bfc05\nadd     rsp, 20h                                                       ; +0x3a, 0x1800bfc0a\npop     rdi                                                            ; +0x3e, 0x1800bfc0e\nretn                                                                   ; +0x3f, 0x1800bfc0f", "xrefs": ["<???> @ 0x180107308", "<???> @ 0x180107418", "<???> @ 0x1801438a8", "<???> @ 0x1801b93a8", "<???> @ 0x1801b93b4"], "is_objc": false, "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"}