{"type": "func", "start": 6442689696, "end": 6442689961, "name": "cocos2d::CCShatteredTiles3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCShatteredTiles3D::copyWithZone from 0x18003a4a0 to 0x18003a5a9 (265 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f0320\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801baef4\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\nstruct cocos2d::CCObject *__fastcall cocos2d::CCShatteredTiles3D::copyWithZone(\n        cocos2d::CCShatteredTiles3D *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  _DWORD *v5; // rbx\n  _OWORD *v6; // rax\n  tinyxml2::XMLHandle *v7; // rax\n  __int64 v8; // rdx\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_DWORD **)a2) == nullptr )\n  {\n    v6 = (_OWORD *)sub_1800E4AC0(0x70u);\n    v5 = v6;\n    if ( v6 )\n    {\n      *v6 = 0;\n      v6[1] = 0;\n      v6[2] = 0;\n      v6[3] = 0;\n      v6[4] = 0;\n      v6[5] = 0;\n      v6[6] = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);\n      v5[20] = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 24));\n      *(_QWORD *)v5 = &cocos2d::CCShatteredTiles3D::`vftable';\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v7 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);\n    if ( v7 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v7, (struct tinyxml2::XMLNode *)v5);\n    else\n      v2 = nullptr;\n    v4 = v2;\n  }\n  cocos2d::CCGridAction::copyWithZone(this, v2);\n  (*(void (__fastcall **)(_DWORD *, __int64, char *, _QWORD, _BYTE))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v8,\n    (char *)this + 96,\n    *((unsigned int *)this + 26),\n    *((_BYTE *)this + 109));\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCShatteredTiles3D::copyWithZone from 0x18003a4a0 to 0x18003a5a9 (265 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f0320\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801baef4\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, 0x18003a4a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a4a5\npush    rdi                                                            ; +0xa, 0x18003a4aa\nsub     rsp, 30h                                                       ; +0xb, 0x18003a4ab\nmov     rax, rdx                                                       ; +0xf, 0x18003a4af\nmov     rsi, rcx                                                       ; +0x12, 0x18003a4b2\nxor     edi, edi                                                       ; +0x15, 0x18003a4b5\ntest    rdx, rdx                                                       ; +0x17, 0x18003a4b7\njz      short loc_18003A4C8                                            ; +0x1a, 0x18003a4ba\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003a4bc\ntest    rbx, rbx                                                       ; +0x1f, 0x18003a4bf\njnz     loc_18003A552                                                  ; +0x22, 0x18003a4c2\nmov     ecx, 70h ; 'p'; Size                                           ; +0x28, 0x18003a4c8\ncall    sub_1800E4AC0                                                  ; +0x2d, 0x18003a4cd\nmov     rbx, rax                                                       ; +0x32, 0x18003a4d2\nmov     [rsp+38h+arg_0], rax                                           ; +0x35, 0x18003a4d5\ntest    rax, rax                                                       ; +0x3a, 0x18003a4da\njz      short loc_18003A528                                            ; +0x3d, 0x18003a4dd\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003a4df\nmovups  xmmword ptr [rax], xmm0                                        ; +0x42, 0x18003a4e2\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x45, 0x18003a4e5\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x49, 0x18003a4e9\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4d, 0x18003a4ed\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x51, 0x18003a4f1\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x55, 0x18003a4f5\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x59, 0x18003a4f9\nmov     rcx, rax; this                                                 ; +0x5d, 0x18003a4fd\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x60, 0x18003a500\nmov     [rbx+50h], edi                                                 ; +0x65, 0x18003a505\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x68, 0x18003a508\nmov     [rbx], rax                                                     ; +0x6f, 0x18003a50f\nlea     rcx, [rbx+60h]; this                                           ; +0x72, 0x18003a512\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x76, 0x18003a516\nnop                                                                    ; +0x7b, 0x18003a51b\nlea     rax, ??_7CCShatteredTiles3D@cocos2d@@6B@; const cocos2d::CCShatteredTiles3D::`vftable' ; +0x7c, 0x18003a51c\nmov     [rbx], rax                                                     ; +0x83, 0x18003a523\njmp     short loc_18003A52B                                            ; +0x86, 0x18003a526\nmov     rbx, rdi                                                       ; +0x88, 0x18003a528\nmov     ecx, 8; Size                                                   ; +0x8b, 0x18003a52b\ncall    sub_1800E4AC0                                                  ; +0x90, 0x18003a530\nmov     [rsp+38h+arg_0], rax                                           ; +0x95, 0x18003a535\ntest    rax, rax                                                       ; +0x9a, 0x18003a53a\njz      short loc_18003A54C                                            ; +0x9d, 0x18003a53d\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x9f, 0x18003a53f\nmov     rcx, rax; this                                                 ; +0xa2, 0x18003a542\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xa5, 0x18003a545\njmp     short loc_18003A54F                                            ; +0xaa, 0x18003a54a\nmov     rax, rdi                                                       ; +0xac, 0x18003a54c\nmov     rdi, rax                                                       ; +0xaf, 0x18003a54f\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb2, 0x18003a552\nmov     rcx, rsi; this                                                 ; +0xb5, 0x18003a555\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xb8, 0x18003a558\nlea     r8, [rsi+60h]                                                  ; +0xbd, 0x18003a55d\nmov     r9, [rbx]                                                      ; +0xc1, 0x18003a561\nmov     r10, [r9+80h]                                                  ; +0xc4, 0x18003a564\nmovzx   r9d, byte ptr [rsi+6Dh]                                        ; +0xcb, 0x18003a56b\nmov     [rsp+38h+var_18], r9b                                          ; +0xd0, 0x18003a570\nmov     r9d, [rsi+68h]                                                 ; +0xd5, 0x18003a575\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xd9, 0x18003a579\nmov     rcx, rbx                                                       ; +0xde, 0x18003a57e\ncall    r10                                                            ; +0xe1, 0x18003a581\ntest    rdi, rdi                                                       ; +0xe4, 0x18003a584\njz      short loc_18003A596                                            ; +0xe7, 0x18003a587\nmov     edx, 8                                                         ; +0xe9, 0x18003a589\nmov     rcx, rdi; Block                                                ; +0xee, 0x18003a58e\ncall    j_j_free_0                                                     ; +0xf1, 0x18003a591\nmov     rax, rbx                                                       ; +0xf6, 0x18003a596\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf9, 0x18003a599\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xfe, 0x18003a59e\nadd     rsp, 30h                                                       ; +0x103, 0x18003a5a3\npop     rdi                                                            ; +0x107, 0x18003a5a7\nretn                                                                   ; +0x108, 0x18003a5a8", "xrefs": ["<???> @ 0x1800f0320", "<???> @ 0x18014cf68", "<???> @ 0x1801baef4"], "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"}