{"type": "func", "start": 6442689968, "end": 6442690227, "name": "cocos2d::CCShuffleTiles::copyWithZone", "pseudocode": "// \n// cocos2d::CCShuffleTiles::copyWithZone from 0x18003a5b0 to 0x18003a6b3 (259 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f03b0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801baf00\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::CCShuffleTiles::copyWithZone(\n        cocos2d::CCShuffleTiles *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(0x80u);\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      v6[7] = 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::CCShuffleTiles::`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))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v8,\n    (char *)this + 96,\n    *((unsigned int *)this + 26));\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCShuffleTiles::copyWithZone from 0x18003a5b0 to 0x18003a6b3 (259 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f03b0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801baf00\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, 0x18003a5b0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a5b5\npush    rdi                                                            ; +0xa, 0x18003a5ba\nsub     rsp, 20h                                                       ; +0xb, 0x18003a5bb\nmov     rax, rdx                                                       ; +0xf, 0x18003a5bf\nmov     rsi, rcx                                                       ; +0x12, 0x18003a5c2\nxor     edi, edi                                                       ; +0x15, 0x18003a5c5\ntest    rdx, rdx                                                       ; +0x17, 0x18003a5c7\njz      short loc_18003A5D8                                            ; +0x1a, 0x18003a5ca\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003a5cc\ntest    rbx, rbx                                                       ; +0x1f, 0x18003a5cf\njnz     loc_18003A666                                                  ; +0x22, 0x18003a5d2\nmov     ecx, 80h; Size                                                 ; +0x28, 0x18003a5d8\ncall    sub_1800E4AC0                                                  ; +0x2d, 0x18003a5dd\nmov     rbx, rax                                                       ; +0x32, 0x18003a5e2\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x18003a5e5\ntest    rax, rax                                                       ; +0x3a, 0x18003a5ea\njz      short loc_18003A63C                                            ; +0x3d, 0x18003a5ed\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003a5ef\nmovups  xmmword ptr [rax], xmm0                                        ; +0x42, 0x18003a5f2\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x45, 0x18003a5f5\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x49, 0x18003a5f9\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4d, 0x18003a5fd\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x51, 0x18003a601\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x55, 0x18003a605\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x59, 0x18003a609\nmovups  xmmword ptr [rax+70h], xmm0                                    ; +0x5d, 0x18003a60d\nmov     rcx, rax; this                                                 ; +0x61, 0x18003a611\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x64, 0x18003a614\nmov     [rbx+50h], edi                                                 ; +0x69, 0x18003a619\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6c, 0x18003a61c\nmov     [rbx], rax                                                     ; +0x73, 0x18003a623\nlea     rcx, [rbx+60h]; this                                           ; +0x76, 0x18003a626\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7a, 0x18003a62a\nnop                                                                    ; +0x7f, 0x18003a62f\nlea     rax, ??_7CCShuffleTiles@cocos2d@@6B@; const cocos2d::CCShuffleTiles::`vftable' ; +0x80, 0x18003a630\nmov     [rbx], rax                                                     ; +0x87, 0x18003a637\njmp     short loc_18003A63F                                            ; +0x8a, 0x18003a63a\nmov     rbx, rdi                                                       ; +0x8c, 0x18003a63c\nmov     ecx, 8; Size                                                   ; +0x8f, 0x18003a63f\ncall    sub_1800E4AC0                                                  ; +0x94, 0x18003a644\nmov     [rsp+28h+arg_0], rax                                           ; +0x99, 0x18003a649\ntest    rax, rax                                                       ; +0x9e, 0x18003a64e\njz      short loc_18003A660                                            ; +0xa1, 0x18003a651\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xa3, 0x18003a653\nmov     rcx, rax; this                                                 ; +0xa6, 0x18003a656\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xa9, 0x18003a659\njmp     short loc_18003A663                                            ; +0xae, 0x18003a65e\nmov     rax, rdi                                                       ; +0xb0, 0x18003a660\nmov     rdi, rax                                                       ; +0xb3, 0x18003a663\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb6, 0x18003a666\nmov     rcx, rsi; this                                                 ; +0xb9, 0x18003a669\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xbc, 0x18003a66c\nlea     r8, [rsi+60h]                                                  ; +0xc1, 0x18003a671\nmov     r9, [rbx]                                                      ; +0xc5, 0x18003a675\nmov     r10, [r9+80h]                                                  ; +0xc8, 0x18003a678\nmov     r9d, [rsi+68h]                                                 ; +0xcf, 0x18003a67f\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xd3, 0x18003a683\nmov     rcx, rbx                                                       ; +0xd8, 0x18003a688\ncall    r10                                                            ; +0xdb, 0x18003a68b\ntest    rdi, rdi                                                       ; +0xde, 0x18003a68e\njz      short loc_18003A6A0                                            ; +0xe1, 0x18003a691\nmov     edx, 8                                                         ; +0xe3, 0x18003a693\nmov     rcx, rdi; Block                                                ; +0xe8, 0x18003a698\ncall    j_j_free_0                                                     ; +0xeb, 0x18003a69b\nmov     rax, rbx                                                       ; +0xf0, 0x18003a6a0\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf3, 0x18003a6a3\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xf8, 0x18003a6a8\nadd     rsp, 20h                                                       ; +0xfd, 0x18003a6ad\npop     rdi                                                            ; +0x101, 0x18003a6b1\nretn                                                                   ; +0x102, 0x18003a6b2", "xrefs": ["<???> @ 0x1800f03b0", "<???> @ 0x18014cf68", "<???> @ 0x1801baf00"], "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"}