{"type": "func", "start": 6442691056, "end": 6442691328, "name": "cocos2d::CCWavesTiles3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCWavesTiles3D::copyWithZone from 0x18003a9f0 to 0x18003ab00 (272 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f0730\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801baf30\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:36 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nstruct cocos2d::CCObject *__fastcall cocos2d::CCWavesTiles3D::copyWithZone(\n        cocos2d::CCWavesTiles3D *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  __int64 v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  __int64 v7; // rdx\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_QWORD *)a2) == 0 )\n  {\n    v5 = sub_1800E4AC0(0x78u);\n    if ( v5 )\n    {\n      *(_OWORD *)v5 = 0;\n      *(_OWORD *)(v5 + 16) = 0;\n      *(_OWORD *)(v5 + 32) = 0;\n      *(_OWORD *)(v5 + 48) = 0;\n      *(_OWORD *)(v5 + 64) = 0;\n      *(_OWORD *)(v5 + 80) = 0;\n      *(_OWORD *)(v5 + 96) = 0;\n      *(_QWORD *)(v5 + 112) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *(_DWORD *)(v5 + 80) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 96));\n      *(_QWORD *)v5 = &cocos2d::CCWavesTiles3D::`vftable';\n    }\n    else\n    {\n      v5 = 0;\n    }\n    v6 = (tinyxml2::XMLHandle *)sub_1800E4AC0(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, v2);\n  (*(void (__fastcall **)(__int64, __int64, char *, _QWORD, _DWORD))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v7,\n    (char *)this + 96,\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 0x18003a9f0 to 0x18003ab00 (272 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f0730\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801baf30\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:36 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18003a9f0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a9f5\npush    rdi                                                            ; +0xa, 0x18003a9fa\nsub     rsp, 30h                                                       ; +0xb, 0x18003a9fb\nmov     rax, rdx                                                       ; +0xf, 0x18003a9ff\nmov     rsi, rcx                                                       ; +0x12, 0x18003aa02\nxor     edi, edi                                                       ; +0x15, 0x18003aa05\ntest    rdx, rdx                                                       ; +0x17, 0x18003aa07\njz      short loc_18003AA18                                            ; +0x1a, 0x18003aa0a\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003aa0c\ntest    rbx, rbx                                                       ; +0x1f, 0x18003aa0f\njnz     loc_18003AAA8                                                  ; +0x22, 0x18003aa12\nmov     ecx, 78h ; 'x'; Size                                           ; +0x28, 0x18003aa18\ncall    sub_1800E4AC0                                                  ; +0x2d, 0x18003aa1d\nmov     rbx, rax                                                       ; +0x32, 0x18003aa22\nmov     [rsp+38h+arg_0], rax                                           ; +0x35, 0x18003aa25\ntest    rax, rax                                                       ; +0x3a, 0x18003aa2a\njz      short loc_18003AA7E                                            ; +0x3d, 0x18003aa2d\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003aa2f\nxor     eax, eax                                                       ; +0x42, 0x18003aa32\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18003aa34\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18003aa37\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18003aa3b\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18003aa3f\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18003aa43\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18003aa47\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x5b, 0x18003aa4b\nmov     [rbx+70h], rax                                                 ; +0x5f, 0x18003aa4f\nmov     rcx, rbx; this                                                 ; +0x63, 0x18003aa53\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x66, 0x18003aa56\nmov     [rbx+50h], edi                                                 ; +0x6b, 0x18003aa5b\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6e, 0x18003aa5e\nmov     [rbx], rax                                                     ; +0x75, 0x18003aa65\nlea     rcx, [rbx+60h]; this                                           ; +0x78, 0x18003aa68\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7c, 0x18003aa6c\nnop                                                                    ; +0x81, 0x18003aa71\nlea     rax, ??_7CCWavesTiles3D@cocos2d@@6B@; const cocos2d::CCWavesTiles3D::`vftable' ; +0x82, 0x18003aa72\nmov     [rbx], rax                                                     ; +0x89, 0x18003aa79\njmp     short loc_18003AA81                                            ; +0x8c, 0x18003aa7c\nmov     rbx, rdi                                                       ; +0x8e, 0x18003aa7e\nmov     ecx, 8; Size                                                   ; +0x91, 0x18003aa81\ncall    sub_1800E4AC0                                                  ; +0x96, 0x18003aa86\nmov     [rsp+38h+arg_0], rax                                           ; +0x9b, 0x18003aa8b\ntest    rax, rax                                                       ; +0xa0, 0x18003aa90\njz      short loc_18003AAA2                                            ; +0xa3, 0x18003aa93\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xa5, 0x18003aa95\nmov     rcx, rax; this                                                 ; +0xa8, 0x18003aa98\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xab, 0x18003aa9b\njmp     short loc_18003AAA5                                            ; +0xb0, 0x18003aaa0\nmov     rax, rdi                                                       ; +0xb2, 0x18003aaa2\nmov     rdi, rax                                                       ; +0xb5, 0x18003aaa5\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb8, 0x18003aaa8\nmov     rcx, rsi; this                                                 ; +0xbb, 0x18003aaab\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xbe, 0x18003aaae\nlea     r8, [rsi+60h]                                                  ; +0xc3, 0x18003aab3\nmov     r9, [rbx]                                                      ; +0xc7, 0x18003aab7\nmov     r10, [r9+80h]                                                  ; +0xca, 0x18003aaba\nmovss   xmm0, dword ptr [rsi+6Ch]                                      ; +0xd1, 0x18003aac1\nmovss   [rsp+38h+var_18], xmm0                                         ; +0xd6, 0x18003aac6\nmov     r9d, [rsi+68h]                                                 ; +0xdc, 0x18003aacc\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xe0, 0x18003aad0\nmov     rcx, rbx                                                       ; +0xe5, 0x18003aad5\ncall    r10                                                            ; +0xe8, 0x18003aad8\ntest    rdi, rdi                                                       ; +0xeb, 0x18003aadb\njz      short loc_18003AAED                                            ; +0xee, 0x18003aade\nmov     edx, 8                                                         ; +0xf0, 0x18003aae0\nmov     rcx, rdi; Block                                                ; +0xf5, 0x18003aae5\ncall    j_j_free_0                                                     ; +0xf8, 0x18003aae8\nmov     rax, rbx                                                       ; +0xfd, 0x18003aaed\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x100, 0x18003aaf0\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x105, 0x18003aaf5\nadd     rsp, 30h                                                       ; +0x10a, 0x18003aafa\npop     rdi                                                            ; +0x10e, 0x18003aafe\nretn                                                                   ; +0x10f, 0x18003aaff", "xrefs": ["<???> @ 0x1800f0730", "<???> @ 0x18014cf68", "<???> @ 0x1801baf30"], "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"}