{"type": "func", "start": 6442688912, "end": 6442689170, "name": "cocos2d::CCTurnOffTiles::copyWithZone", "pseudocode": "// \n// cocos2d::CCTurnOffTiles::copyWithZone from 0x18003a190 to 0x18003a292 (258 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea640\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0df8\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::CCTurnOffTiles::copyWithZone(cocos2d::CCTurnOffTiles *this, void **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  void *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  __int64 v7; // rdx\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *a2) == nullptr )\n  {\n    v5 = operator new(0x78u);\n    if ( v5 )\n    {\n      *(_OWORD *)v5 = 0;\n      *((_OWORD *)v5 + 1) = 0;\n      *((_OWORD *)v5 + 2) = 0;\n      *((_OWORD *)v5 + 3) = 0;\n      *((_OWORD *)v5 + 4) = 0;\n      *((_OWORD *)v5 + 5) = 0;\n      *((_OWORD *)v5 + 6) = 0;\n      *((_QWORD *)v5 + 14) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n      *(_QWORD *)v5 = &cocos2d::CCTurnOffTiles::`vftable';\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)operator new(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, (void **)v2);\n  (*(void (__fastcall **)(void *, __int64, cocos2d::CCTurnOffTiles *, _QWORD))(*(_QWORD *)v5 + 128LL))(\n    v5,\n    v7,\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::CCTurnOffTiles::copyWithZone from 0x18003a190 to 0x18003a292 (258 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea640\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0df8\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, 0x18003a190\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a195\npush    rdi                                                            ; +0xa, 0x18003a19a\nsub     rsp, 20h                                                       ; +0xb, 0x18003a19b\nmov     rax, rdx                                                       ; +0xf, 0x18003a19f\nmov     rsi, rcx                                                       ; +0x12, 0x18003a1a2\nxor     edi, edi                                                       ; +0x15, 0x18003a1a5\ntest    rdx, rdx                                                       ; +0x17, 0x18003a1a7\njz      short loc_18003A1B8                                            ; +0x1a, 0x18003a1aa\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003a1ac\ntest    rbx, rbx                                                       ; +0x1f, 0x18003a1af\njnz     loc_18003A248                                                  ; +0x22, 0x18003a1b2\nmov     ecx, 78h ; 'x'; Size                                           ; +0x28, 0x18003a1b8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x18003a1bd\nmov     rbx, rax                                                       ; +0x32, 0x18003a1c2\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x18003a1c5\ntest    rax, rax                                                       ; +0x3a, 0x18003a1ca\njz      short loc_18003A21E                                            ; +0x3d, 0x18003a1cd\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003a1cf\nxor     eax, eax                                                       ; +0x42, 0x18003a1d2\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18003a1d4\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18003a1d7\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18003a1db\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18003a1df\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18003a1e3\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18003a1e7\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x5b, 0x18003a1eb\nmov     [rbx+70h], rax                                                 ; +0x5f, 0x18003a1ef\nmov     rcx, rbx; this                                                 ; +0x63, 0x18003a1f3\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x66, 0x18003a1f6\nmov     [rbx+50h], edi                                                 ; +0x6b, 0x18003a1fb\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6e, 0x18003a1fe\nmov     [rbx], rax                                                     ; +0x75, 0x18003a205\nlea     rcx, [rbx+60h]; this                                           ; +0x78, 0x18003a208\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7c, 0x18003a20c\nnop                                                                    ; +0x81, 0x18003a211\nlea     rax, ??_7CCTurnOffTiles@cocos2d@@6B@; const cocos2d::CCTurnOffTiles::`vftable' ; +0x82, 0x18003a212\nmov     [rbx], rax                                                     ; +0x89, 0x18003a219\njmp     short loc_18003A221                                            ; +0x8c, 0x18003a21c\nmov     rbx, rdi                                                       ; +0x8e, 0x18003a21e\nmov     ecx, 8; Size                                                   ; +0x91, 0x18003a221\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x96, 0x18003a226\nmov     [rsp+28h+arg_0], rax                                           ; +0x9b, 0x18003a22b\ntest    rax, rax                                                       ; +0xa0, 0x18003a230\njz      short loc_18003A242                                            ; +0xa3, 0x18003a233\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xa5, 0x18003a235\nmov     rcx, rax; this                                                 ; +0xa8, 0x18003a238\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xab, 0x18003a23b\njmp     short loc_18003A245                                            ; +0xb0, 0x18003a240\nmov     rax, rdi                                                       ; +0xb2, 0x18003a242\nmov     rdi, rax                                                       ; +0xb5, 0x18003a245\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb8, 0x18003a248\nmov     rcx, rsi; this                                                 ; +0xbb, 0x18003a24b\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xbe, 0x18003a24e\nmov     r10, [rbx]                                                     ; +0xc3, 0x18003a253\nlea     r8, [rsi+60h]                                                  ; +0xc6, 0x18003a256\nmov     r9d, [rsi+68h]                                                 ; +0xca, 0x18003a25a\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xce, 0x18003a25e\nmov     rcx, rbx                                                       ; +0xd3, 0x18003a263\ncall    qword ptr [r10+80h]                                            ; +0xd6, 0x18003a266\ntest    rdi, rdi                                                       ; +0xdd, 0x18003a26d\njz      short loc_18003A27F                                            ; +0xe0, 0x18003a270\nmov     edx, 8                                                         ; +0xe2, 0x18003a272\nmov     rcx, rdi; Block                                                ; +0xe7, 0x18003a277\ncall    j_j_free_0                                                     ; +0xea, 0x18003a27a\nmov     rax, rbx                                                       ; +0xef, 0x18003a27f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf2, 0x18003a282\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xf7, 0x18003a287\nadd     rsp, 20h                                                       ; +0xfc, 0x18003a28c\npop     rdi                                                            ; +0x100, 0x18003a290\nretn                                                                   ; +0x101, 0x18003a291", "xrefs": ["<???> @ 0x1800ea640", "<???> @ 0x1801438a8", "<???> @ 0x1801b0df8"], "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"}