{"type": "func", "start": 6443198608, "end": 6443198833, "name": "cocos2d::CCTouchDispatcher::forceRemoveDelegate", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::forceRemoveDelegate from 0x1800b6890 to 0x1800b6971 (225 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCTouchDispatcher::removeDelegate @ 0x1800b6d89\n// > cocos2d::CCTouchDispatcher::touches @ 0x1800b727f\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2928\n// > <???> @ 0x1801c2934\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:21 +0000\n// \n\nvoid __fastcall cocos2d::CCTouchDispatcher::forceRemoveDelegate(\n        cocos2d::CCTouchDispatcher *this,\n        struct cocos2d::CCTouchDelegate *a2)\n{\n  __int64 v2; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  cocos2d::CCNotificationObserver **v7; // rbx\n  cocos2d::CCNotificationObserver **i; // rsi\n  struct cocos2d::CCObject *v9; // rdi\n  __int64 v10; // rax\n  unsigned int *v11; // rbx\n  __int64 v12; // rax\n  cocos2d::CCNotificationObserver **v13; // rbx\n  cocos2d::CCNotificationObserver **j; // rsi\n  struct cocos2d::CCObject *v15; // rdi\n\n  v2 = *((_QWORD *)this + 9);\n  if ( v2 )\n  {\n    v5 = *(unsigned int **)(v2 + 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 + 9), v9);\n          break;\n        }\n      }\n    }\n  }\n  v10 = *((_QWORD *)this + 8);\n  if ( v10 )\n  {\n    v11 = *(unsigned int **)(v10 + 56);\n    v12 = *v11;\n    if ( (_DWORD)v12 )\n    {\n      v13 = *((cocos2d::CCNotificationObserver ***)v11 + 2);\n      for ( j = &v13[v12 - 1]; v13 <= j; ++v13 )\n      {\n        v15 = *v13;\n        if ( !*v13 )\n          break;\n        if ( cocos2d::CCNotificationObserver::getTarget(*v13) == a2 )\n        {\n          cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 8), v15);\n          return;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::forceRemoveDelegate from 0x1800b6890 to 0x1800b6971 (225 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCTouchDispatcher::removeDelegate @ 0x1800b6d89\n; > cocos2d::CCTouchDispatcher::touches @ 0x1800b727f\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2928\n; > <???> @ 0x1801c2934\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:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b6890\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b6895\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b689a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800b689f\npush    r14                                                            ; +0x14, 0x1800b68a4\nsub     rsp, 20h                                                       ; +0x16, 0x1800b68a6\nmov     rax, [rcx+48h]                                                 ; +0x1a, 0x1800b68aa\nmov     rbp, rdx                                                       ; +0x1e, 0x1800b68ae\nmov     r14, rcx                                                       ; +0x21, 0x1800b68b1\ntest    rax, rax                                                       ; +0x24, 0x1800b68b4\njz      short loc_1800B6903                                            ; +0x27, 0x1800b68b7\nmov     rbx, [rax+38h]                                                 ; +0x29, 0x1800b68b9\nmov     eax, [rbx]                                                     ; +0x2d, 0x1800b68bd\ntest    eax, eax                                                       ; +0x2f, 0x1800b68bf\njz      short loc_1800B6903                                            ; +0x31, 0x1800b68c1\nmov     rbx, [rbx+10h]                                                 ; +0x33, 0x1800b68c3\nlea     rsi, [rax-1]                                                   ; +0x37, 0x1800b68c7\nlea     rsi, [rbx+rsi*8]                                               ; +0x3b, 0x1800b68cb\ncmp     rbx, rsi                                                       ; +0x3f, 0x1800b68cf\nja      short loc_1800B6903                                            ; +0x42, 0x1800b68d2\nmov     rdi, [rbx]                                                     ; +0x44, 0x1800b68d4\ntest    rdi, rdi                                                       ; +0x47, 0x1800b68d7\njz      short loc_1800B6903                                            ; +0x4a, 0x1800b68da\nmov     rcx, rdi; this                                                 ; +0x4c, 0x1800b68dc\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x4f, 0x1800b68df\ncmp     rax, rbp                                                       ; +0x54, 0x1800b68e4\njz      short loc_1800B68F4                                            ; +0x57, 0x1800b68e7\nadd     rbx, 8                                                         ; +0x59, 0x1800b68e9\ncmp     rbx, rsi                                                       ; +0x5d, 0x1800b68ed\njbe     short loc_1800B68D4                                            ; +0x60, 0x1800b68f0\njmp     short loc_1800B6903                                            ; +0x62, 0x1800b68f2\nmov     rcx, [r14+48h]; this                                           ; +0x64, 0x1800b68f4\nmov     r8b, 1; bool                                                   ; +0x68, 0x1800b68f8\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x6b, 0x1800b68fb\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x6e, 0x1800b68fe\nmov     rax, [r14+40h]                                                 ; +0x73, 0x1800b6903\ntest    rax, rax                                                       ; +0x77, 0x1800b6907\njz      short loc_1800B6956                                            ; +0x7a, 0x1800b690a\nmov     rbx, [rax+38h]                                                 ; +0x7c, 0x1800b690c\nmov     eax, [rbx]                                                     ; +0x80, 0x1800b6910\ntest    eax, eax                                                       ; +0x82, 0x1800b6912\njz      short loc_1800B6956                                            ; +0x84, 0x1800b6914\nmov     rbx, [rbx+10h]                                                 ; +0x86, 0x1800b6916\nlea     rsi, [rax-1]                                                   ; +0x8a, 0x1800b691a\nlea     rsi, [rbx+rsi*8]                                               ; +0x8e, 0x1800b691e\ncmp     rbx, rsi                                                       ; +0x92, 0x1800b6922\nja      short loc_1800B6956                                            ; +0x95, 0x1800b6925\nmov     rdi, [rbx]                                                     ; +0x97, 0x1800b6927\ntest    rdi, rdi                                                       ; +0x9a, 0x1800b692a\njz      short loc_1800B6956                                            ; +0x9d, 0x1800b692d\nmov     rcx, rdi; this                                                 ; +0x9f, 0x1800b692f\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0xa2, 0x1800b6932\ncmp     rax, rbp                                                       ; +0xa7, 0x1800b6937\njz      short loc_1800B6947                                            ; +0xaa, 0x1800b693a\nadd     rbx, 8                                                         ; +0xac, 0x1800b693c\ncmp     rbx, rsi                                                       ; +0xb0, 0x1800b6940\njbe     short loc_1800B6927                                            ; +0xb3, 0x1800b6943\njmp     short loc_1800B6956                                            ; +0xb5, 0x1800b6945\nmov     rcx, [r14+40h]; this                                           ; +0xb7, 0x1800b6947\nmov     r8b, 1; bool                                                   ; +0xbb, 0x1800b694b\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0xbe, 0x1800b694e\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xc1, 0x1800b6951\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc6, 0x1800b6956\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xcb, 0x1800b695b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xd0, 0x1800b6960\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xd5, 0x1800b6965\nadd     rsp, 20h                                                       ; +0xda, 0x1800b696a\npop     r14                                                            ; +0xde, 0x1800b696e\nretn                                                                   ; +0xe0, 0x1800b6970", "xrefs": ["cocos2d::CCTouchDispatcher::removeDelegate @ 0x1800b6d89", "cocos2d::CCTouchDispatcher::touches @ 0x1800b727f", "<???> @ 0x18014cf68", "<???> @ 0x1801c2928", "<???> @ 0x1801c2934"], "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"}