{"type": "func", "start": 6442736176, "end": 6442736224, "name": "cocos2d::CCMouseDispatcher::removeDelegate", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::removeDelegate from 0x180045a30 to 0x180045a60 (48 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCLayer::onExit @ 0x180050778\n// > cocos2d::CCLayer::onExit @ 0x1800507a6\n// > cocos2d::CCLayer::onExit @ 0x1800507d4\n// > cocos2d::CCLayer::setKeyboardEnabled @ 0x180050c52\n// > cocos2d::CCLayer::setKeypadEnabled @ 0x180050cfd\n// > cocos2d::CCLayer::setMouseEnabled @ 0x180050da2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1704\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\n// Alternative name is '?removeDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z'\n// Alternative name is '?removeDelegate@CCKeypadDispatcher@cocos2d@@QEAAXPEAVCCKeypadDelegate@2@@Z'\nvoid __fastcall cocos2d::CCMouseDispatcher::removeDelegate(\n        cocos2d::CCMouseDispatcher *this,\n        struct cocos2d::CCObject *a2)\n{\n  if ( a2 )\n  {\n    if ( this->m_bLocked )\n    {\n      sub_18009E170(this->m_pHandlersToRemove);\n      this->m_bToRemove = 1;\n    }\n    else\n    {\n      cocos2d::CCMouseDispatcher::forceRemoveDelegate(this, a2);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::removeDelegate from 0x180045a30 to 0x180045a60 (48 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCLayer::onExit @ 0x180050778\n; > cocos2d::CCLayer::onExit @ 0x1800507a6\n; > cocos2d::CCLayer::onExit @ 0x1800507d4\n; > cocos2d::CCLayer::setKeyboardEnabled @ 0x180050c52\n; > cocos2d::CCLayer::setKeypadEnabled @ 0x180050cfd\n; > cocos2d::CCLayer::setMouseEnabled @ 0x180050da2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1704\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\ntest    rdx, rdx                                                       ; +0x0, 0x180045a30\njz      short locret_180045A5F                                         ; +0x3, 0x180045a33\npush    rbx                                                            ; +0x5, 0x180045a35\nsub     rsp, 20h                                                       ; +0x6, 0x180045a36\ncmp     byte ptr [rcx+40h], 0                                          ; +0xa, 0x180045a3a\nmov     rbx, rcx                                                       ; +0xe, 0x180045a3e\njnz     short loc_180045A4D                                            ; +0x11, 0x180045a41\nadd     rsp, 20h                                                       ; +0x13, 0x180045a43\npop     rbx                                                            ; +0x17, 0x180045a47\njmp     ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0x18, 0x180045a48\nmov     rcx, [rcx+50h]                                                 ; +0x1d, 0x180045a4d\ncall    sub_18009E170                                                  ; +0x21, 0x180045a51\nmov     byte ptr [rbx+42h], 1                                          ; +0x26, 0x180045a56\nadd     rsp, 20h                                                       ; +0x2a, 0x180045a5a\npop     rbx                                                            ; +0x2e, 0x180045a5e\nretn                                                                   ; +0x2f, 0x180045a5f", "xrefs": ["cocos2d::CCLayer::onExit @ 0x180050778", "cocos2d::CCLayer::onExit @ 0x1800507a6", "cocos2d::CCLayer::onExit @ 0x1800507d4", "cocos2d::CCLayer::setKeyboardEnabled @ 0x180050c52", "cocos2d::CCLayer::setKeypadEnabled @ 0x180050cfd", "cocos2d::CCLayer::setMouseEnabled @ 0x180050da2", "<???> @ 0x1801438a8", "<???> @ 0x1801b1704"], "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"}