{"type": "func", "start": 6442646928, "end": 6442647131, "name": "cocos2d::CCRemoveSelf::copyWithZone", "pseudocode": "// \n// cocos2d::CCRemoveSelf::copyWithZone from 0x18002fd90 to 0x18002fe5b (203 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800eef88\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba150\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:33 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCObject *__fastcall cocos2d::CCRemoveSelf::copyWithZone(\n        cocos2d::CCRemoveSelf *this,\n        struct cocos2d::CCObject **a2)\n{\n  struct cocos2d::CCObject *v3; // rbx\n  cocos2d::CCAction *v5; // rax\n  cocos2d::CCAction *v6; // rbx\n  struct cocos2d::CCObject **v7; // rdi\n  tinyxml2::XMLHandle *v8; // rax\n\n  if ( a2 && (v3 = *a2) != nullptr )\n  {\n    cocos2d::CCActionInstant::copyWithZone(this, a2);\n    *((_BYTE *)v3 + 88) = *((_BYTE *)this + 88);\n    return v3;\n  }\n  else\n  {\n    v5 = (cocos2d::CCAction *)sub_1800E4AC0(0x60u);\n    v6 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCAction::CCAction(v5);\n      v7 = nullptr;\n      *((_DWORD *)v6 + 20) = 0;\n      *(_QWORD *)v6 = &cocos2d::CCRemoveSelf::`vftable';\n    }\n    else\n    {\n      v7 = nullptr;\n      v6 = nullptr;\n    }\n    v8 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);\n    if ( v8 )\n      v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v6);\n    cocos2d::CCActionInstant::copyWithZone(this, v7);\n    *((_BYTE *)v6 + 88) = *((_BYTE *)this + 88);\n    if ( v7 )\n      j_j_free_0(v7);\n    return v6;\n  }\n}", "assembly": "; \n; cocos2d::CCRemoveSelf::copyWithZone from 0x18002fd90 to 0x18002fe5b (203 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800eef88\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba150\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:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18002fd90\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002fd95\npush    rdi                                                            ; +0xa, 0x18002fd9a\nsub     rsp, 20h                                                       ; +0xb, 0x18002fd9b\nmov     rsi, rcx                                                       ; +0xf, 0x18002fd9f\ntest    rdx, rdx                                                       ; +0x12, 0x18002fda2\njz      short loc_18002FDCE                                            ; +0x15, 0x18002fda5\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002fda7\ntest    rbx, rbx                                                       ; +0x1a, 0x18002fdaa\njz      short loc_18002FDCE                                            ; +0x1d, 0x18002fdad\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002fdaf\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x24, 0x18002fdb4\nmov     [rbx+58h], cl                                                  ; +0x28, 0x18002fdb8\nmov     rax, rbx                                                       ; +0x2b, 0x18002fdbb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2e, 0x18002fdbe\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x33, 0x18002fdc3\nadd     rsp, 20h                                                       ; +0x38, 0x18002fdc8\npop     rdi                                                            ; +0x3c, 0x18002fdcc\nretn                                                                   ; +0x3d, 0x18002fdcd\nmov     ecx, 60h ; '`'; Size                                           ; +0x3e, 0x18002fdce\ncall    sub_1800E4AC0                                                  ; +0x43, 0x18002fdd3\nmov     rbx, rax                                                       ; +0x48, 0x18002fdd8\nmov     [rsp+28h+arg_0], rax                                           ; +0x4b, 0x18002fddb\ntest    rax, rax                                                       ; +0x50, 0x18002fde0\njz      short loc_18002FDFE                                            ; +0x53, 0x18002fde3\nmov     rcx, rax; this                                                 ; +0x55, 0x18002fde5\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x58, 0x18002fde8\nxor     edi, edi                                                       ; +0x5d, 0x18002fded\nmov     [rbx+50h], edi                                                 ; +0x5f, 0x18002fdef\nlea     rax, ??_7CCRemoveSelf@cocos2d@@6B@; const cocos2d::CCRemoveSelf::`vftable' ; +0x62, 0x18002fdf2\nmov     [rbx], rax                                                     ; +0x69, 0x18002fdf9\njmp     short loc_18002FE02                                            ; +0x6c, 0x18002fdfc\nxor     edi, edi                                                       ; +0x6e, 0x18002fdfe\nmov     ebx, edi                                                       ; +0x70, 0x18002fe00\nmov     ecx, 8; Size                                                   ; +0x72, 0x18002fe02\ncall    sub_1800E4AC0                                                  ; +0x77, 0x18002fe07\nmov     [rsp+28h+arg_0], rax                                           ; +0x7c, 0x18002fe0c\ntest    rax, rax                                                       ; +0x81, 0x18002fe11\njz      short loc_18002FE24                                            ; +0x84, 0x18002fe14\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x86, 0x18002fe16\nmov     rcx, rax; this                                                 ; +0x89, 0x18002fe19\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x8c, 0x18002fe1c\nmov     rdi, rax                                                       ; +0x91, 0x18002fe21\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x94, 0x18002fe24\nmov     rcx, rsi; this                                                 ; +0x97, 0x18002fe27\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x9a, 0x18002fe2a\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x9f, 0x18002fe2f\nmov     [rbx+58h], cl                                                  ; +0xa3, 0x18002fe33\ntest    rdi, rdi                                                       ; +0xa6, 0x18002fe36\njz      short loc_18002FE48                                            ; +0xa9, 0x18002fe39\nmov     edx, 8                                                         ; +0xab, 0x18002fe3b\nmov     rcx, rdi; Block                                                ; +0xb0, 0x18002fe40\ncall    j_j_free_0                                                     ; +0xb3, 0x18002fe43\nmov     rax, rbx                                                       ; +0xb8, 0x18002fe48\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbb, 0x18002fe4b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc0, 0x18002fe50\nadd     rsp, 20h                                                       ; +0xc5, 0x18002fe55\npop     rdi                                                            ; +0xc9, 0x18002fe59\nretn                                                                   ; +0xca, 0x18002fe5a", "xrefs": ["<???> @ 0x1800eef88", "<???> @ 0x18014cf68", "<???> @ 0x1801ba150"], "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"}