{"type": "func", "start": 6442689184, "end": 6442689453, "name": "cocos2d::CCWavesTiles3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCWavesTiles3D::copyWithZone from 0x18003a2a0 to 0x18003a3ad (269 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea6d0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0e04\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=3\nstruct cocos2d::CCObject *__fastcall cocos2d::CCWavesTiles3D::copyWithZone(cocos2d::CCWavesTiles3D *this, void **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  void *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  __int64 v7; // rdx\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *a2) == nullptr )\n  {\n    v5 = operator new(0x78u);\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      *((_OWORD *)v5 + 6) = 0;\n      *((_QWORD *)v5 + 14) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n      *(_QWORD *)v5 = &cocos2d::CCWavesTiles3D::`vftable';\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v6 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v5);\n    else\n      v2 = nullptr;\n    v4 = v2;\n  }\n  cocos2d::CCGridAction::copyWithZone(this, (void **)v2);\n  (*(void (__fastcall **)(void *, __int64, cocos2d::CCWavesTiles3D *, _QWORD, _DWORD))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v7,\n    this + 1,\n    *((unsigned int *)this + 26),\n    *((_DWORD *)this + 27));\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCWavesTiles3D::copyWithZone from 0x18003a2a0 to 0x18003a3ad (269 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea6d0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0e04\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, 0x18003a2a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a2a5\npush    rdi                                                            ; +0xa, 0x18003a2aa\nsub     rsp, 30h                                                       ; +0xb, 0x18003a2ab\nmov     rax, rdx                                                       ; +0xf, 0x18003a2af\nmov     rsi, rcx                                                       ; +0x12, 0x18003a2b2\nxor     edi, edi                                                       ; +0x15, 0x18003a2b5\ntest    rdx, rdx                                                       ; +0x17, 0x18003a2b7\njz      short loc_18003A2C8                                            ; +0x1a, 0x18003a2ba\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003a2bc\ntest    rbx, rbx                                                       ; +0x1f, 0x18003a2bf\njnz     loc_18003A358                                                  ; +0x22, 0x18003a2c2\nmov     ecx, 78h ; 'x'; Size                                           ; +0x28, 0x18003a2c8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x18003a2cd\nmov     rbx, rax                                                       ; +0x32, 0x18003a2d2\nmov     [rsp+38h+arg_0], rax                                           ; +0x35, 0x18003a2d5\ntest    rax, rax                                                       ; +0x3a, 0x18003a2da\njz      short loc_18003A32E                                            ; +0x3d, 0x18003a2dd\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003a2df\nxor     eax, eax                                                       ; +0x42, 0x18003a2e2\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18003a2e4\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18003a2e7\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18003a2eb\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18003a2ef\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18003a2f3\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18003a2f7\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x5b, 0x18003a2fb\nmov     [rbx+70h], rax                                                 ; +0x5f, 0x18003a2ff\nmov     rcx, rbx; this                                                 ; +0x63, 0x18003a303\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x66, 0x18003a306\nmov     [rbx+50h], edi                                                 ; +0x6b, 0x18003a30b\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6e, 0x18003a30e\nmov     [rbx], rax                                                     ; +0x75, 0x18003a315\nlea     rcx, [rbx+60h]; this                                           ; +0x78, 0x18003a318\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7c, 0x18003a31c\nnop                                                                    ; +0x81, 0x18003a321\nlea     rax, ??_7CCWavesTiles3D@cocos2d@@6B@; const cocos2d::CCWavesTiles3D::`vftable' ; +0x82, 0x18003a322\nmov     [rbx], rax                                                     ; +0x89, 0x18003a329\njmp     short loc_18003A331                                            ; +0x8c, 0x18003a32c\nmov     rbx, rdi                                                       ; +0x8e, 0x18003a32e\nmov     ecx, 8; Size                                                   ; +0x91, 0x18003a331\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x96, 0x18003a336\nmov     [rsp+38h+arg_0], rax                                           ; +0x9b, 0x18003a33b\ntest    rax, rax                                                       ; +0xa0, 0x18003a340\njz      short loc_18003A352                                            ; +0xa3, 0x18003a343\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xa5, 0x18003a345\nmov     rcx, rax; this                                                 ; +0xa8, 0x18003a348\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xab, 0x18003a34b\njmp     short loc_18003A355                                            ; +0xb0, 0x18003a350\nmov     rax, rdi                                                       ; +0xb2, 0x18003a352\nmov     rdi, rax                                                       ; +0xb5, 0x18003a355\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb8, 0x18003a358\nmov     rcx, rsi; this                                                 ; +0xbb, 0x18003a35b\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xbe, 0x18003a35e\nmov     r10, [rbx]                                                     ; +0xc3, 0x18003a363\nlea     r8, [rsi+60h]                                                  ; +0xc6, 0x18003a366\nmovss   xmm0, dword ptr [rsi+6Ch]                                      ; +0xca, 0x18003a36a\nmovss   [rsp+38h+var_18], xmm0                                         ; +0xcf, 0x18003a36f\nmov     r9d, [rsi+68h]                                                 ; +0xd5, 0x18003a375\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xd9, 0x18003a379\nmov     rcx, rbx                                                       ; +0xde, 0x18003a37e\ncall    qword ptr [r10+80h]                                            ; +0xe1, 0x18003a381\ntest    rdi, rdi                                                       ; +0xe8, 0x18003a388\njz      short loc_18003A39A                                            ; +0xeb, 0x18003a38b\nmov     edx, 8                                                         ; +0xed, 0x18003a38d\nmov     rcx, rdi; Block                                                ; +0xf2, 0x18003a392\ncall    j_j_free_0                                                     ; +0xf5, 0x18003a395\nmov     rax, rbx                                                       ; +0xfa, 0x18003a39a\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xfd, 0x18003a39d\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x102, 0x18003a3a2\nadd     rsp, 30h                                                       ; +0x107, 0x18003a3a7\npop     rdi                                                            ; +0x10b, 0x18003a3ab\nretn                                                                   ; +0x10c, 0x18003a3ac", "xrefs": ["<???> @ 0x1800ea6d0", "<???> @ 0x1801438a8", "<???> @ 0x1801b0e04"], "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"}