{"type": "func", "start": 6442855616, "end": 6442855738, "name": "cocos2d::CCMouseHandler::setDelegate", "pseudocode": "// \n// cocos2d::CCMouseHandler::setDelegate from 0x180062cc0 to 0x180062d3a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd798\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::CCMouseHandler::setDelegate(\n        cocos2d::CCMouseHandler *this,\n        struct cocos2d::CCMouseDelegate *a2)\n{\n  cocos2d::CCObject *v4; // rax\n  __int64 v5; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( a2 )\n  {\n    v4 = (cocos2d::CCObject *)_RTDynamicCast(\n                                a2,\n                                0,\n                                &cocos2d::CCMouseDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::retain(v4);\n  }\n  v5 = *((_QWORD *)this + 7);\n  if ( v5 )\n  {\n    v6 = (cocos2d::CCObject *)_RTDynamicCast(\n                                v5,\n                                0,\n                                &cocos2d::CCMouseDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::release(v6);\n  }\n  *((_QWORD *)this + 7) = a2;\n}", "assembly": "; \n; cocos2d::CCMouseHandler::setDelegate from 0x180062cc0 to 0x180062d3a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd798\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180062cc0\npush    rdi                                                            ; +0x5, 0x180062cc5\nsub     rsp, 30h                                                       ; +0x6, 0x180062cc6\nmov     rbx, rdx                                                       ; +0xa, 0x180062cca\nmov     rdi, rcx                                                       ; +0xd, 0x180062ccd\ntest    rdx, rdx                                                       ; +0x10, 0x180062cd0\njz      short loc_180062CFD                                            ; +0x13, 0x180062cd3\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x15, 0x180062cd5\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x180062cdc\nlea     r8, ??_R0?AVCCMouseDelegate@cocos2d@@@8; cocos2d::CCMouseDelegate `RTTI Type Descriptor' ; +0x24, 0x180062ce4\nxor     edx, edx                                                       ; +0x2b, 0x180062ceb\nmov     rcx, rbx                                                       ; +0x2d, 0x180062ced\ncall    __RTDynamicCast                                                ; +0x30, 0x180062cf0\nmov     rcx, rax; this                                                 ; +0x35, 0x180062cf5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x180062cf8\nmov     rcx, [rdi+38h]                                                 ; +0x3d, 0x180062cfd\ntest    rcx, rcx                                                       ; +0x41, 0x180062d01\njz      short loc_180062D2B                                            ; +0x44, 0x180062d04\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x46, 0x180062d06\nmov     [rsp+38h+var_18], 0                                            ; +0x4d, 0x180062d0d\nlea     r8, ??_R0?AVCCMouseDelegate@cocos2d@@@8; cocos2d::CCMouseDelegate `RTTI Type Descriptor' ; +0x55, 0x180062d15\nxor     edx, edx                                                       ; +0x5c, 0x180062d1c\ncall    __RTDynamicCast                                                ; +0x5e, 0x180062d1e\nmov     rcx, rax; this                                                 ; +0x63, 0x180062d23\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x180062d26\nmov     [rdi+38h], rbx                                                 ; +0x6b, 0x180062d2b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x180062d2f\nadd     rsp, 30h                                                       ; +0x74, 0x180062d34\npop     rdi                                                            ; +0x78, 0x180062d38\nretn                                                                   ; +0x79, 0x180062d39", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd798"], "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"}