{"type": "func", "start": 6442655792, "end": 6442656007, "name": "cocos2d::CCFadeOut::copyWithZone", "pseudocode": "// \n// cocos2d::CCFadeOut::copyWithZone from 0x180032030 to 0x180032107 (215 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e9c00\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0438\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\nstruct cocos2d::CCObject *__fastcall cocos2d::CCFadeOut::copyWithZone(\n        cocos2d::CCFadeOut *this,\n        struct cocos2d::CCObject **a2)\n{\n  struct cocos2d::CCObject *v3; // rbx\n  struct tinyxml2::XMLNode *v5; // rax\n  struct tinyxml2::XMLNode *v6; // rbx\n  struct cocos2d::CCObject **v7; // rdi\n  tinyxml2::XMLHandle *v8; // rax\n\n  if ( a2 && (v3 = *a2) != nullptr )\n  {\n    cocos2d::CCActionInterval::copyWithZone(this, a2);\n    return v3;\n  }\n  else\n  {\n    v5 = (struct tinyxml2::XMLNode *)operator new(0x60u);\n    v6 = v5;\n    if ( v5 )\n    {\n      *(_OWORD *)v5 = 0;\n      *((_OWORD *)v5 + 1) = 0;\n      *((_OWORD *)v5 + 2) = 0;\n      *((_OWORD *)v5 + 3) = 0;\n      *((_OWORD *)v5 + 4) = 0;\n      *((_OWORD *)v5 + 5) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      v7 = nullptr;\n      *((_DWORD *)v6 + 20) = 0;\n      *(_QWORD *)v6 = &cocos2d::CCFadeOut::`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, v6);\n    cocos2d::CCActionInterval::copyWithZone(this, v7);\n    if ( v7 )\n      j_j_free_0(v7);\n    return (struct cocos2d::CCObject *)v6;\n  }\n}", "assembly": "; \n; cocos2d::CCFadeOut::copyWithZone from 0x180032030 to 0x180032107 (215 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e9c00\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0438\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, 0x180032030\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180032035\npush    rdi                                                            ; +0xa, 0x18003203a\nsub     rsp, 20h                                                       ; +0xb, 0x18003203b\nmov     rsi, rcx                                                       ; +0xf, 0x18003203f\ntest    rdx, rdx                                                       ; +0x12, 0x180032042\njz      short loc_180032067                                            ; +0x15, 0x180032045\nmov     rbx, [rdx]                                                     ; +0x17, 0x180032047\ntest    rbx, rbx                                                       ; +0x1a, 0x18003204a\njz      short loc_180032067                                            ; +0x1d, 0x18003204d\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18003204f\nmov     rax, rbx                                                       ; +0x24, 0x180032054\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x27, 0x180032057\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x2c, 0x18003205c\nadd     rsp, 20h                                                       ; +0x31, 0x180032061\npop     rdi                                                            ; +0x35, 0x180032065\nretn                                                                   ; +0x36, 0x180032066\nmov     ecx, 60h ; '`'; Size                                           ; +0x37, 0x180032067\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x18003206c\nmov     rbx, rax                                                       ; +0x41, 0x180032071\nmov     [rsp+28h+arg_8], rax                                           ; +0x44, 0x180032074\ntest    rax, rax                                                       ; +0x49, 0x180032079\njz      short loc_1800320B1                                            ; +0x4c, 0x18003207c\nxorps   xmm0, xmm0                                                     ; +0x4e, 0x18003207e\nmovups  xmmword ptr [rax], xmm0                                        ; +0x51, 0x180032081\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x54, 0x180032084\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x58, 0x180032088\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x5c, 0x18003208c\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x60, 0x180032090\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x64, 0x180032094\nmov     rcx, rax; this                                                 ; +0x68, 0x180032098\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x6b, 0x18003209b\nxor     edi, edi                                                       ; +0x70, 0x1800320a0\nmov     [rbx+50h], edi                                                 ; +0x72, 0x1800320a2\nlea     rax, ??_7CCFadeOut@cocos2d@@6B@; const cocos2d::CCFadeOut::`vftable' ; +0x75, 0x1800320a5\nmov     [rbx], rax                                                     ; +0x7c, 0x1800320ac\njmp     short loc_1800320B5                                            ; +0x7f, 0x1800320af\nxor     edi, edi                                                       ; +0x81, 0x1800320b1\nmov     ebx, edi                                                       ; +0x83, 0x1800320b3\nmov     ecx, 8; Size                                                   ; +0x85, 0x1800320b5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8a, 0x1800320ba\nmov     [rsp+28h+arg_8], rax                                           ; +0x8f, 0x1800320bf\ntest    rax, rax                                                       ; +0x94, 0x1800320c4\njz      short loc_1800320D7                                            ; +0x97, 0x1800320c7\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x99, 0x1800320c9\nmov     rcx, rax; this                                                 ; +0x9c, 0x1800320cc\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x9f, 0x1800320cf\nmov     rdi, rax                                                       ; +0xa4, 0x1800320d4\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0xa7, 0x1800320d7\nmov     rcx, rsi; this                                                 ; +0xaa, 0x1800320da\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0xad, 0x1800320dd\ntest    rdi, rdi                                                       ; +0xb2, 0x1800320e2\njz      short loc_1800320F4                                            ; +0xb5, 0x1800320e5\nmov     edx, 8                                                         ; +0xb7, 0x1800320e7\nmov     rcx, rdi; Block                                                ; +0xbc, 0x1800320ec\ncall    j_j_free_0                                                     ; +0xbf, 0x1800320ef\nmov     rax, rbx                                                       ; +0xc4, 0x1800320f4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc7, 0x1800320f7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xcc, 0x1800320fc\nadd     rsp, 20h                                                       ; +0xd1, 0x180032101\npop     rdi                                                            ; +0xd5, 0x180032105\nretn                                                                   ; +0xd6, 0x180032106", "xrefs": ["<???> @ 0x1800e9c00", "<???> @ 0x1801438a8", "<???> @ 0x1801b0438"], "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"}