{"type": "func", "start": 6442847344, "end": 6442847412, "name": "cocos2d::CCMouseDispatcher::addDelegate", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::addDelegate from 0x180060c70 to 0x180060cb4 (68 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCLayer::onEnter @ 0x180050661\n// > cocos2d::CCLayer::setMouseEnabled @ 0x180050d87\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3504\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::CCMouseDispatcher::addDelegate(cocos2d::CCMouseDispatcher *this, cocos2d::CCObject_vtbl *a2)\n{\n  struct cocos2d::CCMouseHandler *v3; // rax\n\n  if ( a2 )\n  {\n    if ( this->m_bLocked )\n    {\n      sub_18009E170(this->m_pHandlersToAdd);\n      this->m_bToAdd = 1;\n    }\n    else\n    {\n      v3 = cocos2d::CCMouseHandler::handlerWithDelegate(a2);\n      if ( v3 )\n        cocos2d::CCArray::addObject(this->m_pMouseHandlers, v3);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::addDelegate from 0x180060c70 to 0x180060cb4 (68 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCLayer::onEnter @ 0x180050661\n; > cocos2d::CCLayer::setMouseEnabled @ 0x180050d87\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3504\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, 0x180060c70\njz      short locret_180060CB3                                         ; +0x3, 0x180060c73\npush    rbx                                                            ; +0x5, 0x180060c75\nsub     rsp, 20h                                                       ; +0x6, 0x180060c76\ncmp     byte ptr [rcx+40h], 0                                          ; +0xa, 0x180060c7a\nmov     rbx, rcx                                                       ; +0xe, 0x180060c7e\njnz     short loc_180060CA1                                            ; +0x11, 0x180060c81\nmov     rcx, rdx; struct cocos2d::CCMouseDelegate *                    ; +0x13, 0x180060c83\ncall    ?handlerWithDelegate@CCMouseHandler@cocos2d@@SAPEAV12@PEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *) ; +0x16, 0x180060c86\ntest    rax, rax                                                       ; +0x1b, 0x180060c8b\njz      short loc_180060CAE                                            ; +0x1e, 0x180060c8e\nmov     rcx, [rbx+38h]; this                                           ; +0x20, 0x180060c90\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x24, 0x180060c94\nadd     rsp, 20h                                                       ; +0x27, 0x180060c97\npop     rbx                                                            ; +0x2b, 0x180060c9b\njmp     ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2c, 0x180060c9c\nmov     rcx, [rcx+48h]                                                 ; +0x31, 0x180060ca1\ncall    sub_18009E170                                                  ; +0x35, 0x180060ca5\nmov     byte ptr [rbx+41h], 1                                          ; +0x3a, 0x180060caa\nadd     rsp, 20h                                                       ; +0x3e, 0x180060cae\npop     rbx                                                            ; +0x42, 0x180060cb2\nretn                                                                   ; +0x43, 0x180060cb3", "xrefs": ["cocos2d::CCLayer::onEnter @ 0x180050661", "cocos2d::CCLayer::setMouseEnabled @ 0x180050d87", "<???> @ 0x1801438a8", "<???> @ 0x1801b3504"], "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"}