{"type": "func", "start": 6442856112, "end": 6442856180, "name": "cocos2d::CCMouseDispatcher::addDelegate", "pseudocode": "// \n// cocos2d::CCMouseDispatcher::addDelegate from 0x180062eb0 to 0x180062ef4 (68 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCLayer::onEnter @ 0x180052481\n// > cocos2d::CCLayer::setMouseEnabled @ 0x180052ba7\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd7c8\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:51 +0000\n// \n\nvoid __fastcall cocos2d::CCMouseDispatcher::addDelegate(\n        cocos2d::CCMouseDispatcher *this,\n        struct cocos2d::CCMouseDelegate *a2)\n{\n  struct cocos2d::CCObject *v3; // rax\n\n  if ( a2 )\n  {\n    if ( *((_BYTE *)this + 64) )\n    {\n      sub_1800A1E00(*((_QWORD *)this + 9));\n      *((_BYTE *)this + 65) = 1;\n    }\n    else\n    {\n      v3 = cocos2d::CCMouseHandler::handlerWithDelegate(a2);\n      if ( v3 )\n        cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v3);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCMouseDispatcher::addDelegate from 0x180062eb0 to 0x180062ef4 (68 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCLayer::onEnter @ 0x180052481\n; > cocos2d::CCLayer::setMouseEnabled @ 0x180052ba7\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd7c8\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:51 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x180062eb0\njz      short locret_180062EF3                                         ; +0x3, 0x180062eb3\npush    rbx                                                            ; +0x5, 0x180062eb5\nsub     rsp, 20h                                                       ; +0x6, 0x180062eb6\ncmp     byte ptr [rcx+40h], 0                                          ; +0xa, 0x180062eba\nmov     rbx, rcx                                                       ; +0xe, 0x180062ebe\njnz     short loc_180062EE1                                            ; +0x11, 0x180062ec1\nmov     rcx, rdx; struct cocos2d::CCMouseDelegate *                    ; +0x13, 0x180062ec3\ncall    ?handlerWithDelegate@CCMouseHandler@cocos2d@@SAPEAV12@PEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *) ; +0x16, 0x180062ec6\ntest    rax, rax                                                       ; +0x1b, 0x180062ecb\njz      short loc_180062EEE                                            ; +0x1e, 0x180062ece\nmov     rcx, [rbx+38h]; this                                           ; +0x20, 0x180062ed0\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0x24, 0x180062ed4\nadd     rsp, 20h                                                       ; +0x27, 0x180062ed7\npop     rbx                                                            ; +0x2b, 0x180062edb\njmp     ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2c, 0x180062edc\nmov     rcx, [rcx+48h]                                                 ; +0x31, 0x180062ee1\ncall    sub_1800A1E00                                                  ; +0x35, 0x180062ee5\nmov     byte ptr [rbx+41h], 1                                          ; +0x3a, 0x180062eea\nadd     rsp, 20h                                                       ; +0x3e, 0x180062eee\npop     rbx                                                            ; +0x42, 0x180062ef2\nretn                                                                   ; +0x43, 0x180062ef3", "xrefs": ["cocos2d::CCLayer::onEnter @ 0x180052481", "cocos2d::CCLayer::setMouseEnabled @ 0x180052ba7", "<???> @ 0x18014cf68", "<???> @ 0x1801bd7c8"], "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"}