{"type": "func", "start": 6442645072, "end": 6442645275, "name": "cocos2d::CCRemoveSelf::copyWithZone", "pseudocode": "// \n// cocos2d::CCRemoveSelf::copyWithZone from 0x18002f650 to 0x18002f71b (203 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e8f20\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b003c\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\n// Hidden C++ exception states: #wind=2\ncocos2d::CCAction *__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    LOBYTE(v3[1].m_uIndexInArray) = *((_BYTE *)this + 88);\n    return (cocos2d::CCAction *)v3;\n  }\n  else\n  {\n    v5 = (cocos2d::CCAction *)operator new(0x60u);\n    v6 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCAction::CCAction(v5);\n      v7 = nullptr;\n      LODWORD(v6[1].__vftable) = 0;\n      v6->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCRemoveSelf::`vftable';\n    }\n    else\n    {\n      v7 = nullptr;\n      v6 = nullptr;\n    }\n    v8 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v8 )\n      v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, (struct tinyxml2::XMLNode *)v6);\n    cocos2d::CCActionInstant::copyWithZone(this, v7);\n    LOBYTE(v6[1].m_uID) = *((_BYTE *)this + 88);\n    if ( v7 )\n      j_j_free_0(v7);\n    return v6;\n  }\n}", "assembly": "; \n; cocos2d::CCRemoveSelf::copyWithZone from 0x18002f650 to 0x18002f71b (203 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e8f20\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b003c\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_8], rbx                                               ; +0x0, 0x18002f650\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002f655\npush    rdi                                                            ; +0xa, 0x18002f65a\nsub     rsp, 20h                                                       ; +0xb, 0x18002f65b\nmov     rsi, rcx                                                       ; +0xf, 0x18002f65f\ntest    rdx, rdx                                                       ; +0x12, 0x18002f662\njz      short loc_18002F68E                                            ; +0x15, 0x18002f665\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002f667\ntest    rbx, rbx                                                       ; +0x1a, 0x18002f66a\njz      short loc_18002F68E                                            ; +0x1d, 0x18002f66d\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002f66f\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x24, 0x18002f674\nmov     [rbx+58h], cl                                                  ; +0x28, 0x18002f678\nmov     rax, rbx                                                       ; +0x2b, 0x18002f67b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2e, 0x18002f67e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x33, 0x18002f683\nadd     rsp, 20h                                                       ; +0x38, 0x18002f688\npop     rdi                                                            ; +0x3c, 0x18002f68c\nretn                                                                   ; +0x3d, 0x18002f68d\nmov     ecx, 60h ; '`'; Size                                           ; +0x3e, 0x18002f68e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x43, 0x18002f693\nmov     rbx, rax                                                       ; +0x48, 0x18002f698\nmov     [rsp+28h+arg_0], rax                                           ; +0x4b, 0x18002f69b\ntest    rax, rax                                                       ; +0x50, 0x18002f6a0\njz      short loc_18002F6BE                                            ; +0x53, 0x18002f6a3\nmov     rcx, rax; this                                                 ; +0x55, 0x18002f6a5\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x58, 0x18002f6a8\nxor     edi, edi                                                       ; +0x5d, 0x18002f6ad\nmov     [rbx+50h], edi                                                 ; +0x5f, 0x18002f6af\nlea     rax, ??_7CCRemoveSelf@cocos2d@@6B@; const cocos2d::CCRemoveSelf::`vftable' ; +0x62, 0x18002f6b2\nmov     [rbx], rax                                                     ; +0x69, 0x18002f6b9\njmp     short loc_18002F6C2                                            ; +0x6c, 0x18002f6bc\nxor     edi, edi                                                       ; +0x6e, 0x18002f6be\nmov     ebx, edi                                                       ; +0x70, 0x18002f6c0\nmov     ecx, 8; Size                                                   ; +0x72, 0x18002f6c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x77, 0x18002f6c7\nmov     [rsp+28h+arg_0], rax                                           ; +0x7c, 0x18002f6cc\ntest    rax, rax                                                       ; +0x81, 0x18002f6d1\njz      short loc_18002F6E4                                            ; +0x84, 0x18002f6d4\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x86, 0x18002f6d6\nmov     rcx, rax; this                                                 ; +0x89, 0x18002f6d9\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x8c, 0x18002f6dc\nmov     rdi, rax                                                       ; +0x91, 0x18002f6e1\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x94, 0x18002f6e4\nmov     rcx, rsi; this                                                 ; +0x97, 0x18002f6e7\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x9a, 0x18002f6ea\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x9f, 0x18002f6ef\nmov     [rbx+58h], cl                                                  ; +0xa3, 0x18002f6f3\ntest    rdi, rdi                                                       ; +0xa6, 0x18002f6f6\njz      short loc_18002F708                                            ; +0xa9, 0x18002f6f9\nmov     edx, 8                                                         ; +0xab, 0x18002f6fb\nmov     rcx, rdi; Block                                                ; +0xb0, 0x18002f700\ncall    j_j_free_0                                                     ; +0xb3, 0x18002f703\nmov     rax, rbx                                                       ; +0xb8, 0x18002f708\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbb, 0x18002f70b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc0, 0x18002f710\nadd     rsp, 20h                                                       ; +0xc5, 0x18002f715\npop     rdi                                                            ; +0xc9, 0x18002f719\nretn                                                                   ; +0xca, 0x18002f71a", "xrefs": ["<???> @ 0x1800e8f20", "<???> @ 0x1801438a8", "<???> @ 0x1801b003c"], "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"}