{"type": "func", "start": 6443199840, "end": 6443200026, "name": "cocos2d::CCTouchDispatcher::removeDelegate", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::removeDelegate from 0x1800b6d60 to 0x1800b6e1a (186 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCLayer::onExit @ 0x18005254b\n// > cocos2d::CCLayer::setTouchEnabled @ 0x180052d33\n// > <???> @ 0x18014a224\n// > <???> @ 0x18014a234\n// > <???> @ 0x18014a250\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2994\n// > <???> @ 0x1801c29a0\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 11:22:22 +0000\n// \n\nvoid __fastcall cocos2d::CCTouchDispatcher::removeDelegate(\n        cocos2d::CCTouchDispatcher *this,\n        struct cocos2d::CCTouchDelegate *a2)\n{\n  __int64 v4; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  cocos2d::CCNotificationObserver **v7; // rbx\n  cocos2d::CCNotificationObserver **i; // r14\n  struct cocos2d::CCObject *v9; // rdi\n\n  if ( a2 )\n  {\n    if ( *((_BYTE *)this + 80) )\n    {\n      v4 = *((_QWORD *)this + 11);\n      if ( v4 )\n      {\n        v5 = *(unsigned int **)(v4 + 56);\n        v6 = *v5;\n        if ( (_DWORD)v6 )\n        {\n          v7 = *((cocos2d::CCNotificationObserver ***)v5 + 2);\n          for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )\n          {\n            v9 = *v7;\n            if ( !*v7 )\n              break;\n            if ( cocos2d::CCNotificationObserver::getTarget(*v7) == a2 )\n            {\n              cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 11), v9);\n              return;\n            }\n          }\n        }\n      }\n      sub_1800A1E00(*((_QWORD *)this + 12), (__int64)a2);\n      *((_BYTE *)this + 82) = 1;\n    }\n    else\n    {\n      cocos2d::CCTouchDispatcher::forceRemoveDelegate(this, a2);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::removeDelegate from 0x1800b6d60 to 0x1800b6e1a (186 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCLayer::onExit @ 0x18005254b\n; > cocos2d::CCLayer::setTouchEnabled @ 0x180052d33\n; > <???> @ 0x18014a224\n; > <???> @ 0x18014a234\n; > <???> @ 0x18014a250\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2994\n; > <???> @ 0x1801c29a0\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 11:22:22 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1800b6d60\njz      locret_1800B6E08                                               ; +0x3, 0x1800b6d63\nmov     [rsp+arg_18], rbp                                              ; +0x9, 0x1800b6d69\npush    rsi                                                            ; +0xe, 0x1800b6d6e\nsub     rsp, 20h                                                       ; +0xf, 0x1800b6d6f\ncmp     byte ptr [rcx+50h], 0                                          ; +0x13, 0x1800b6d73\nmov     rbp, rdx                                                       ; +0x17, 0x1800b6d77\nmov     rsi, rcx                                                       ; +0x1a, 0x1800b6d7a\njnz     short loc_1800B6D8E                                            ; +0x1d, 0x1800b6d7d\nmov     rbp, [rsp+28h+arg_18]                                          ; +0x1f, 0x1800b6d7f\nadd     rsp, 20h                                                       ; +0x24, 0x1800b6d84\npop     rsi                                                            ; +0x28, 0x1800b6d88\njmp     ?forceRemoveDelegate@CCTouchDispatcher@cocos2d@@IEAAXPEAVCCTouchDelegate@2@@Z; cocos2d::CCTouchDispatcher::forceRemoveDelegate(cocos2d::CCTouchDelegate *) ; +0x29, 0x1800b6d89\nmov     rax, [rcx+58h]                                                 ; +0x2e, 0x1800b6d8e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x32, 0x1800b6d92\nmov     [rsp+28h+arg_8], rdi                                           ; +0x37, 0x1800b6d97\nmov     [rsp+28h+arg_10], r14                                          ; +0x3c, 0x1800b6d9c\ntest    rax, rax                                                       ; +0x41, 0x1800b6da1\njz      short loc_1800B6DDF                                            ; +0x44, 0x1800b6da4\nmov     rbx, [rax+38h]                                                 ; +0x46, 0x1800b6da6\nmov     eax, [rbx]                                                     ; +0x4a, 0x1800b6daa\ntest    eax, eax                                                       ; +0x4c, 0x1800b6dac\njz      short loc_1800B6DDF                                            ; +0x4e, 0x1800b6dae\nmov     rbx, [rbx+10h]                                                 ; +0x50, 0x1800b6db0\nlea     r14, [rax-1]                                                   ; +0x54, 0x1800b6db4\nlea     r14, [rbx+r14*8]                                               ; +0x58, 0x1800b6db8\ncmp     rbx, r14                                                       ; +0x5c, 0x1800b6dbc\nja      short loc_1800B6DDF                                            ; +0x5f, 0x1800b6dbf\nmov     rdi, [rbx]                                                     ; +0x61, 0x1800b6dc1\ntest    rdi, rdi                                                       ; +0x64, 0x1800b6dc4\njz      short loc_1800B6DDF                                            ; +0x67, 0x1800b6dc7\nmov     rcx, rdi; this                                                 ; +0x69, 0x1800b6dc9\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x6c, 0x1800b6dcc\ncmp     rax, rbp                                                       ; +0x71, 0x1800b6dd1\njz      short loc_1800B6E09                                            ; +0x74, 0x1800b6dd4\nadd     rbx, 8                                                         ; +0x76, 0x1800b6dd6\ncmp     rbx, r14                                                       ; +0x7a, 0x1800b6dda\njbe     short loc_1800B6DC1                                            ; +0x7d, 0x1800b6ddd\nmov     rcx, [rsi+60h]                                                 ; +0x7f, 0x1800b6ddf\nmov     rdx, rbp                                                       ; +0x83, 0x1800b6de3\ncall    sub_1800A1E00                                                  ; +0x86, 0x1800b6de6\nmov     byte ptr [rsi+52h], 1                                          ; +0x8b, 0x1800b6deb\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x8f, 0x1800b6def\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x1800b6df4\nmov     r14, [rsp+28h+arg_10]                                          ; +0x99, 0x1800b6df9\nmov     rbp, [rsp+28h+arg_18]                                          ; +0x9e, 0x1800b6dfe\nadd     rsp, 20h                                                       ; +0xa3, 0x1800b6e03\npop     rsi                                                            ; +0xa7, 0x1800b6e07\nretn                                                                   ; +0xa8, 0x1800b6e08\nmov     rcx, [rsi+58h]; this                                           ; +0xa9, 0x1800b6e09\nmov     r8b, 1; bool                                                   ; +0xad, 0x1800b6e0d\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0xb0, 0x1800b6e10\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xb3, 0x1800b6e13\njmp     short loc_1800B6DEF                                            ; +0xb8, 0x1800b6e18", "xrefs": ["cocos2d::CCLayer::onExit @ 0x18005254b", "cocos2d::CCLayer::setTouchEnabled @ 0x180052d33", "<???> @ 0x18014a224", "<???> @ 0x18014a234", "<???> @ 0x18014a250", "<???> @ 0x18014cf68", "<???> @ 0x1801c2994", "<???> @ 0x1801c29a0"], "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"}