{"type": "func", "start": 6442687840, "end": 6442688102, "name": "cocos2d::CCShatteredTiles3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCShatteredTiles3D::copyWithZone from 0x180039d60 to 0x180039e66 (262 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea2c0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0dc8\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\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  _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(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      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n      *(_QWORD *)v5 = &cocos2d::CCShatteredTiles3D::`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::CCShatteredTiles3D *, _QWORD, _BYTE))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v8,\n    this + 1,\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 0x180039d60 to 0x180039e66 (262 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea2c0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0dc8\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, 0x180039d60\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180039d65\npush    rdi                                                            ; +0xa, 0x180039d6a\nsub     rsp, 30h                                                       ; +0xb, 0x180039d6b\nmov     rax, rdx                                                       ; +0xf, 0x180039d6f\nmov     rsi, rcx                                                       ; +0x12, 0x180039d72\nxor     edi, edi                                                       ; +0x15, 0x180039d75\ntest    rdx, rdx                                                       ; +0x17, 0x180039d77\njz      short loc_180039D88                                            ; +0x1a, 0x180039d7a\nmov     rbx, [rdx]                                                     ; +0x1c, 0x180039d7c\ntest    rbx, rbx                                                       ; +0x1f, 0x180039d7f\njnz     loc_180039E12                                                  ; +0x22, 0x180039d82\nmov     ecx, 70h ; 'p'; Size                                           ; +0x28, 0x180039d88\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x180039d8d\nmov     rbx, rax                                                       ; +0x32, 0x180039d92\nmov     [rsp+38h+arg_0], rax                                           ; +0x35, 0x180039d95\ntest    rax, rax                                                       ; +0x3a, 0x180039d9a\njz      short loc_180039DE8                                            ; +0x3d, 0x180039d9d\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x180039d9f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x42, 0x180039da2\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x45, 0x180039da5\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x49, 0x180039da9\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4d, 0x180039dad\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x51, 0x180039db1\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x55, 0x180039db5\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x59, 0x180039db9\nmov     rcx, rax; this                                                 ; +0x5d, 0x180039dbd\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x60, 0x180039dc0\nmov     [rbx+50h], edi                                                 ; +0x65, 0x180039dc5\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x68, 0x180039dc8\nmov     [rbx], rax                                                     ; +0x6f, 0x180039dcf\nlea     rcx, [rbx+60h]; this                                           ; +0x72, 0x180039dd2\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x76, 0x180039dd6\nnop                                                                    ; +0x7b, 0x180039ddb\nlea     rax, ??_7CCShatteredTiles3D@cocos2d@@6B@; const cocos2d::CCShatteredTiles3D::`vftable' ; +0x7c, 0x180039ddc\nmov     [rbx], rax                                                     ; +0x83, 0x180039de3\njmp     short loc_180039DEB                                            ; +0x86, 0x180039de6\nmov     rbx, rdi                                                       ; +0x88, 0x180039de8\nmov     ecx, 8; Size                                                   ; +0x8b, 0x180039deb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x90, 0x180039df0\nmov     [rsp+38h+arg_0], rax                                           ; +0x95, 0x180039df5\ntest    rax, rax                                                       ; +0x9a, 0x180039dfa\njz      short loc_180039E0C                                            ; +0x9d, 0x180039dfd\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x9f, 0x180039dff\nmov     rcx, rax; this                                                 ; +0xa2, 0x180039e02\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xa5, 0x180039e05\njmp     short loc_180039E0F                                            ; +0xaa, 0x180039e0a\nmov     rax, rdi                                                       ; +0xac, 0x180039e0c\nmov     rdi, rax                                                       ; +0xaf, 0x180039e0f\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb2, 0x180039e12\nmov     rcx, rsi; this                                                 ; +0xb5, 0x180039e15\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xb8, 0x180039e18\nmov     r10, [rbx]                                                     ; +0xbd, 0x180039e1d\nlea     r8, [rsi+60h]                                                  ; +0xc0, 0x180039e20\nmovzx   r9d, byte ptr [rsi+6Dh]                                        ; +0xc4, 0x180039e24\nmov     [rsp+38h+var_18], r9b                                          ; +0xc9, 0x180039e29\nmov     r9d, [rsi+68h]                                                 ; +0xce, 0x180039e2e\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xd2, 0x180039e32\nmov     rcx, rbx                                                       ; +0xd7, 0x180039e37\ncall    qword ptr [r10+80h]                                            ; +0xda, 0x180039e3a\ntest    rdi, rdi                                                       ; +0xe1, 0x180039e41\njz      short loc_180039E53                                            ; +0xe4, 0x180039e44\nmov     edx, 8                                                         ; +0xe6, 0x180039e46\nmov     rcx, rdi; Block                                                ; +0xeb, 0x180039e4b\ncall    j_j_free_0                                                     ; +0xee, 0x180039e4e\nmov     rax, rbx                                                       ; +0xf3, 0x180039e53\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf6, 0x180039e56\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xfb, 0x180039e5b\nadd     rsp, 30h                                                       ; +0x100, 0x180039e60\npop     rdi                                                            ; +0x104, 0x180039e64\nretn                                                                   ; +0x105, 0x180039e65", "xrefs": ["<???> @ 0x1800ea2c0", "<???> @ 0x1801438a8", "<???> @ 0x1801b0dc8"], "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"}