{"type": "func", "start": 6443187968, "end": 6443188090, "name": "cocos2d::CCTouchHandler::setDelegate", "pseudocode": "// \n// cocos2d::CCTouchHandler::setDelegate from 0x1800b3f00 to 0x1800b3f7a (122 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b87e4\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::CCTouchHandler::setDelegate(\n        cocos2d::CCTouchHandler *this,\n        struct cocos2d::CCTouchDelegate *a2)\n{\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCTouchDelegate *m_pDelegate; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( a2 )\n  {\n    v4 = (cocos2d::CCObject *)_RTDynamicCast(\n                                a2,\n                                0,\n                                &cocos2d::CCTouchDelegate `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::CCTouchDelegate `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::CCTouchHandler::setDelegate from 0x1800b3f00 to 0x1800b3f7a (122 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b87e4\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, 0x1800b3f00\npush    rdi                                                            ; +0x5, 0x1800b3f05\nsub     rsp, 30h                                                       ; +0x6, 0x1800b3f06\nmov     rbx, rdx                                                       ; +0xa, 0x1800b3f0a\nmov     rdi, rcx                                                       ; +0xd, 0x1800b3f0d\ntest    rdx, rdx                                                       ; +0x10, 0x1800b3f10\njz      short loc_1800B3F3D                                            ; +0x13, 0x1800b3f13\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x15, 0x1800b3f15\nmov     [rsp+38h+var_18], 0                                            ; +0x1c, 0x1800b3f1c\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x24, 0x1800b3f24\nxor     edx, edx                                                       ; +0x2b, 0x1800b3f2b\nmov     rcx, rbx                                                       ; +0x2d, 0x1800b3f2d\ncall    __RTDynamicCast                                                ; +0x30, 0x1800b3f30\nmov     rcx, rax; this                                                 ; +0x35, 0x1800b3f35\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x38, 0x1800b3f38\nmov     rcx, [rdi+38h]                                                 ; +0x3d, 0x1800b3f3d\ntest    rcx, rcx                                                       ; +0x41, 0x1800b3f41\njz      short loc_1800B3F6B                                            ; +0x44, 0x1800b3f44\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x46, 0x1800b3f46\nmov     [rsp+38h+var_18], 0                                            ; +0x4d, 0x1800b3f4d\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x55, 0x1800b3f55\nxor     edx, edx                                                       ; +0x5c, 0x1800b3f5c\ncall    __RTDynamicCast                                                ; +0x5e, 0x1800b3f5e\nmov     rcx, rax; this                                                 ; +0x63, 0x1800b3f63\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x66, 0x1800b3f66\nmov     [rdi+38h], rbx                                                 ; +0x6b, 0x1800b3f6b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6f, 0x1800b3f6f\nadd     rsp, 30h                                                       ; +0x74, 0x1800b3f74\npop     rdi                                                            ; +0x78, 0x1800b3f78\nretn                                                                   ; +0x79, 0x1800b3f79", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b87e4"], "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"}