{"type": "func", "start": 6442846848, "end": 6442846970, "name": "cocos2d::CCMouseHandler::setDelegate", "pseudocode": "// \n// cocos2d::CCMouseHandler::setDelegate from 0x180060a80 to 0x180060afa (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b34d4\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::CCMouseHandler::setDelegate(\n        cocos2d::CCMouseHandler *this,\n        struct cocos2d::CCMouseDelegate *a2)\n{\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCMouseDelegate *m_pDelegate; // 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  m_pDelegate = this->m_pDelegate;\n  if ( m_pDelegate )\n  {\n    v6 = (cocos2d::CCObject *)_RTDynamicCast(\n                                m_pDelegate,\n                                0,\n                                &cocos2d::CCMouseDelegate `RTTI Type Descriptor',\n                                &cocos2d::CCObject `RTTI Type Descriptor',\n                                0);\n    cocos2d::CCObject::release(v6);\n  }\n  this->m_pDelegate = a2;\n}", "assembly": "; \n; cocos2d::CCMouseHandler::setDelegate from 0x180060a80 to 0x180060afa (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b34d4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180060a80\npush    rdi                                                            ; +0x5, 0x180060a85\nsub     rsp, 30h                                                       ; +0x6, 0x180060a86\nmov     rbx, rdx                                                       ; +0xa, 0x180060a8a\nmov     rdi, rcx                                                       ; +0xd, 0x180060a8d\ntest    rdx, rdx                                                       ; +0x10, 0x180060a90\njz      short loc_180060ABD                                            ; +0x13, 0x180060a93\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x15, 0x180060a95\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x180060a9c\nlea     r8, ??_R0?AVCCMouseDelegate@cocos2d@@@8; cocos2d::CCMouseDelegate `RTTI Type Descriptor' ; +0x24, 0x180060aa4\nxor     edx, edx                                                       ; +0x2b, 0x180060aab\nmov     rcx, rbx                                                       ; +0x2d, 0x180060aad\ncall    __RTDynamicCast                                                ; +0x30, 0x180060ab0\nmov     rcx, rax; this                                                 ; +0x35, 0x180060ab5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x180060ab8\nmov     rcx, [rdi+38h]                                                 ; +0x3d, 0x180060abd\ntest    rcx, rcx                                                       ; +0x41, 0x180060ac1\njz      short loc_180060AEB                                            ; +0x44, 0x180060ac4\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x46, 0x180060ac6\nmov     [rsp+38h+var_18], 0                                            ; +0x4d, 0x180060acd\nlea     r8, ??_R0?AVCCMouseDelegate@cocos2d@@@8; cocos2d::CCMouseDelegate `RTTI Type Descriptor' ; +0x55, 0x180060ad5\nxor     edx, edx                                                       ; +0x5c, 0x180060adc\ncall    __RTDynamicCast                                                ; +0x5e, 0x180060ade\nmov     rcx, rax; this                                                 ; +0x63, 0x180060ae3\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x180060ae6\nmov     [rdi+38h], rbx                                                 ; +0x6b, 0x180060aeb\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x180060aef\nadd     rsp, 30h                                                       ; +0x74, 0x180060af4\npop     rdi                                                            ; +0x78, 0x180060af8\nretn                                                                   ; +0x79, 0x180060af9", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b34d4"], "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"}