{"type": "func", "start": 6442739072, "end": 6442739214, "name": "cocos2d::CCMouseDispatcher::forceRemoveDelegate", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::forceRemoveDelegate from 0x180046580 to 0x18004660e (142 bytes)\n// \n// 10 xrefs:\n// > cocos2d::CCKeyboardDispatcher::flushPendingDelegates @ 0x1800464dd\n// > cocos2d::CCMouseDispatcher::removeDelegate @ 0x180047168\n// > cocos2d::CCMouseDispatcher::dispatchRightClick @ 0x180062ffe\n// > cocos2d::CCMouseDispatcher::dispatchScrollMSG @ 0x18006316e\n// > cocos2d::CCMouseDispatcher::flushPendingDelegates @ 0x18006321d\n// > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1800b824d\n// > <???> @ 0x180140254\n// > <???> @ 0x180140288\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bb92c\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:21:41 +0000\n// \n\n// Alternative name is '?forceRemoveDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z'\n// Alternative name is '?forceRemoveDelegate@CCKeypadDispatcher@cocos2d@@QEAAXPEAVCCKeypadDelegate@2@@Z'\nvoid __fastcall cocos2d::CCMouseDispatcher::forceRemoveDelegate(\n        cocos2d::CCMouseDispatcher *this,\n        struct cocos2d::CCMouseDelegate *a2)\n{\n  __int64 v2; // rbx\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\n  v2 = *((_QWORD *)this + 7);\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 + 7), v9);\n          return;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::forceRemoveDelegate from 0x180046580 to 0x18004660e (142 bytes)\n; \n; 10 xrefs:\n; > cocos2d::CCKeyboardDispatcher::flushPendingDelegates @ 0x1800464dd\n; > cocos2d::CCMouseDispatcher::removeDelegate @ 0x180047168\n; > cocos2d::CCMouseDispatcher::dispatchRightClick @ 0x180062ffe\n; > cocos2d::CCMouseDispatcher::dispatchScrollMSG @ 0x18006316e\n; > cocos2d::CCMouseDispatcher::flushPendingDelegates @ 0x18006321d\n; > cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1800b824d\n; > <???> @ 0x180140254\n; > <???> @ 0x180140288\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bb92c\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:21:41 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180046580\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x180046585\npush    r14                                                            ; +0xa, 0x18004658a\nsub     rsp, 20h                                                       ; +0xc, 0x18004658c\nmov     rbx, [rcx+38h]                                                 ; +0x10, 0x180046590\nmov     rbp, rdx                                                       ; +0x14, 0x180046594\nmov     r14, rcx                                                       ; +0x17, 0x180046597\ntest    rbx, rbx                                                       ; +0x1a, 0x18004659a\njz      short loc_1800465FD                                            ; +0x1d, 0x18004659d\nmov     rbx, [rbx+38h]                                                 ; +0x1f, 0x18004659f\nmov     eax, [rbx]                                                     ; +0x23, 0x1800465a3\ntest    eax, eax                                                       ; +0x25, 0x1800465a5\njz      short loc_1800465FD                                            ; +0x27, 0x1800465a7\nmov     rbx, [rbx+10h]                                                 ; +0x29, 0x1800465a9\nmov     [rsp+28h+arg_0], rsi                                           ; +0x2d, 0x1800465ad\nlea     rsi, [rax-1]                                                   ; +0x32, 0x1800465b2\nlea     rsi, [rbx+rsi*8]                                               ; +0x36, 0x1800465b6\ncmp     rbx, rsi                                                       ; +0x3a, 0x1800465ba\nja      short loc_1800465F8                                            ; +0x3d, 0x1800465bd\nmov     [rsp+28h+arg_8], rdi                                           ; +0x3f, 0x1800465bf\nmov     rdi, [rbx]                                                     ; +0x44, 0x1800465c4\ntest    rdi, rdi                                                       ; +0x47, 0x1800465c7\njz      short loc_1800465F3                                            ; +0x4a, 0x1800465ca\nmov     rcx, rdi; this                                                 ; +0x4c, 0x1800465cc\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x4f, 0x1800465cf\ncmp     rax, rbp                                                       ; +0x54, 0x1800465d4\njz      short loc_1800465E4                                            ; +0x57, 0x1800465d7\nadd     rbx, 8                                                         ; +0x59, 0x1800465d9\ncmp     rbx, rsi                                                       ; +0x5d, 0x1800465dd\njbe     short loc_1800465C4                                            ; +0x60, 0x1800465e0\njmp     short loc_1800465F3                                            ; +0x62, 0x1800465e2\nmov     rcx, [r14+38h]; this                                           ; +0x64, 0x1800465e4\nmov     r8b, 1; bool                                                   ; +0x68, 0x1800465e8\nmov     rdx, rdi; struct cocos2d::CCObject *                           ; +0x6b, 0x1800465eb\ncall    ?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x6e, 0x1800465ee\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x73, 0x1800465f3\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x78, 0x1800465f8\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x7d, 0x1800465fd\nmov     rbp, [rsp+28h+arg_18]                                          ; +0x82, 0x180046602\nadd     rsp, 20h                                                       ; +0x87, 0x180046607\npop     r14                                                            ; +0x8b, 0x18004660b\nretn                                                                   ; +0x8d, 0x18004660d", "xrefs": ["cocos2d::CCKeyboardDispatcher::flushPendingDelegates @ 0x1800464dd", "cocos2d::CCMouseDispatcher::removeDelegate @ 0x180047168", "cocos2d::CCMouseDispatcher::dispatchRightClick @ 0x180062ffe", "cocos2d::CCMouseDispatcher::dispatchScrollMSG @ 0x18006316e", "cocos2d::CCMouseDispatcher::flushPendingDelegates @ 0x18006321d", "cocos2d::CCKeypadDispatcher::dispatchKeypadMSG @ 0x1800b824d", "<???> @ 0x180140254", "<???> @ 0x180140288", "<???> @ 0x18014cf68", "<???> @ 0x1801bb92c"], "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"}