{"type": "func", "start": 6442688112, "end": 6442688368, "name": "cocos2d::CCShuffleTiles::copyWithZone", "pseudocode": "// \n// cocos2d::CCShuffleTiles::copyWithZone from 0x180039e70 to 0x180039f70 (256 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea350\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0dd4\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::CCShuffleTiles::copyWithZone(\n        cocos2d::CCShuffleTiles *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  _OWORD *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 = *(_OWORD **)a2) == nullptr )\n  {\n    v6 = operator new(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      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n      *(_QWORD *)v5 = &cocos2d::CCShuffleTiles::`vftable';\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v7 = (tinyxml2::XMLHandle *)operator new(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, (void **)v2);\n  (*(void (__fastcall **)(_OWORD *, __int64, cocos2d::CCShuffleTiles *, _QWORD))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v8,\n    this + 1,\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 0x180039e70 to 0x180039f70 (256 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea350\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0dd4\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, 0x180039e70\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180039e75\npush    rdi                                                            ; +0xa, 0x180039e7a\nsub     rsp, 20h                                                       ; +0xb, 0x180039e7b\nmov     rax, rdx                                                       ; +0xf, 0x180039e7f\nmov     rsi, rcx                                                       ; +0x12, 0x180039e82\nxor     edi, edi                                                       ; +0x15, 0x180039e85\ntest    rdx, rdx                                                       ; +0x17, 0x180039e87\njz      short loc_180039E98                                            ; +0x1a, 0x180039e8a\nmov     rbx, [rdx]                                                     ; +0x1c, 0x180039e8c\ntest    rbx, rbx                                                       ; +0x1f, 0x180039e8f\njnz     loc_180039F26                                                  ; +0x22, 0x180039e92\nmov     ecx, 80h; Size                                                 ; +0x28, 0x180039e98\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x180039e9d\nmov     rbx, rax                                                       ; +0x32, 0x180039ea2\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x180039ea5\ntest    rax, rax                                                       ; +0x3a, 0x180039eaa\njz      short loc_180039EFC                                            ; +0x3d, 0x180039ead\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x180039eaf\nmovups  xmmword ptr [rax], xmm0                                        ; +0x42, 0x180039eb2\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x45, 0x180039eb5\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x49, 0x180039eb9\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4d, 0x180039ebd\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x51, 0x180039ec1\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x55, 0x180039ec5\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x59, 0x180039ec9\nmovups  xmmword ptr [rax+70h], xmm0                                    ; +0x5d, 0x180039ecd\nmov     rcx, rax; this                                                 ; +0x61, 0x180039ed1\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x64, 0x180039ed4\nmov     [rbx+50h], edi                                                 ; +0x69, 0x180039ed9\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6c, 0x180039edc\nmov     [rbx], rax                                                     ; +0x73, 0x180039ee3\nlea     rcx, [rbx+60h]; this                                           ; +0x76, 0x180039ee6\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7a, 0x180039eea\nnop                                                                    ; +0x7f, 0x180039eef\nlea     rax, ??_7CCShuffleTiles@cocos2d@@6B@; const cocos2d::CCShuffleTiles::`vftable' ; +0x80, 0x180039ef0\nmov     [rbx], rax                                                     ; +0x87, 0x180039ef7\njmp     short loc_180039EFF                                            ; +0x8a, 0x180039efa\nmov     rbx, rdi                                                       ; +0x8c, 0x180039efc\nmov     ecx, 8; Size                                                   ; +0x8f, 0x180039eff\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x94, 0x180039f04\nmov     [rsp+28h+arg_0], rax                                           ; +0x99, 0x180039f09\ntest    rax, rax                                                       ; +0x9e, 0x180039f0e\njz      short loc_180039F20                                            ; +0xa1, 0x180039f11\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xa3, 0x180039f13\nmov     rcx, rax; this                                                 ; +0xa6, 0x180039f16\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xa9, 0x180039f19\njmp     short loc_180039F23                                            ; +0xae, 0x180039f1e\nmov     rax, rdi                                                       ; +0xb0, 0x180039f20\nmov     rdi, rax                                                       ; +0xb3, 0x180039f23\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb6, 0x180039f26\nmov     rcx, rsi; this                                                 ; +0xb9, 0x180039f29\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xbc, 0x180039f2c\nmov     r10, [rbx]                                                     ; +0xc1, 0x180039f31\nlea     r8, [rsi+60h]                                                  ; +0xc4, 0x180039f34\nmov     r9d, [rsi+68h]                                                 ; +0xc8, 0x180039f38\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xcc, 0x180039f3c\nmov     rcx, rbx                                                       ; +0xd1, 0x180039f41\ncall    qword ptr [r10+80h]                                            ; +0xd4, 0x180039f44\ntest    rdi, rdi                                                       ; +0xdb, 0x180039f4b\njz      short loc_180039F5D                                            ; +0xde, 0x180039f4e\nmov     edx, 8                                                         ; +0xe0, 0x180039f50\nmov     rcx, rdi; Block                                                ; +0xe5, 0x180039f55\ncall    j_j_free_0                                                     ; +0xe8, 0x180039f58\nmov     rax, rbx                                                       ; +0xed, 0x180039f5d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf0, 0x180039f60\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xf5, 0x180039f65\nadd     rsp, 20h                                                       ; +0xfa, 0x180039f6a\npop     rdi                                                            ; +0xfe, 0x180039f6e\nretn                                                                   ; +0xff, 0x180039f6f", "xrefs": ["<???> @ 0x1800ea350", "<???> @ 0x1801438a8", "<???> @ 0x1801b0dd4"], "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"}