{"type": "func", "start": 6442630352, "end": 6442630602, "name": "cocos2d::CCFlipY3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCFlipY3D::copyWithZone from 0x18002bcd0 to 0x18002bdca (250 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e8970\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afc7c\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::CCFlipY3D::copyWithZone(cocos2d::CCFlipY3D *this, void **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  void *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *a2) == nullptr )\n  {\n    v5 = operator new(0x68u);\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      *((_QWORD *)v5 + 12) = 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::CCFlipY3D::`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::CCFlipX3D::copyWithZone(this, (void **)v2);\n  (*(void (__fastcall **)(void *, cocos2d::CCFlipY3D *))(*(_QWORD *)v5 + 136LL))(v5, this + 1);\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCFlipY3D::copyWithZone from 0x18002bcd0 to 0x18002bdca (250 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e8970\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afc7c\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, 0x18002bcd0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002bcd5\npush    rdi                                                            ; +0xa, 0x18002bcda\nsub     rsp, 20h                                                       ; +0xb, 0x18002bcdb\nmov     rax, rdx                                                       ; +0xf, 0x18002bcdf\nmov     rsi, rcx                                                       ; +0x12, 0x18002bce2\nxor     edi, edi                                                       ; +0x15, 0x18002bce5\ntest    rdx, rdx                                                       ; +0x17, 0x18002bce7\njz      short loc_18002BCF8                                            ; +0x1a, 0x18002bcea\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18002bcec\ntest    rbx, rbx                                                       ; +0x1f, 0x18002bcef\njnz     loc_18002BD84                                                  ; +0x22, 0x18002bcf2\nmov     ecx, 68h ; 'h'; Size                                           ; +0x28, 0x18002bcf8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x18002bcfd\nmov     rbx, rax                                                       ; +0x32, 0x18002bd02\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x18002bd05\ntest    rax, rax                                                       ; +0x3a, 0x18002bd0a\njz      short loc_18002BD5A                                            ; +0x3d, 0x18002bd0d\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18002bd0f\nxor     eax, eax                                                       ; +0x42, 0x18002bd12\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18002bd14\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18002bd17\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18002bd1b\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18002bd1f\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18002bd23\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18002bd27\nmov     [rbx+60h], rax                                                 ; +0x5b, 0x18002bd2b\nmov     rcx, rbx; this                                                 ; +0x5f, 0x18002bd2f\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x62, 0x18002bd32\nmov     [rbx+50h], edi                                                 ; +0x67, 0x18002bd37\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6a, 0x18002bd3a\nmov     [rbx], rax                                                     ; +0x71, 0x18002bd41\nlea     rcx, [rbx+60h]; this                                           ; +0x74, 0x18002bd44\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x78, 0x18002bd48\nnop                                                                    ; +0x7d, 0x18002bd4d\nlea     rax, ??_7CCFlipY3D@cocos2d@@6B@; const cocos2d::CCFlipY3D::`vftable' ; +0x7e, 0x18002bd4e\nmov     [rbx], rax                                                     ; +0x85, 0x18002bd55\njmp     short loc_18002BD5D                                            ; +0x88, 0x18002bd58\nmov     rbx, rdi                                                       ; +0x8a, 0x18002bd5a\nmov     ecx, 8; Size                                                   ; +0x8d, 0x18002bd5d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x92, 0x18002bd62\nmov     [rsp+28h+arg_0], rax                                           ; +0x97, 0x18002bd67\ntest    rax, rax                                                       ; +0x9c, 0x18002bd6c\njz      short loc_18002BD7E                                            ; +0x9f, 0x18002bd6f\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xa1, 0x18002bd71\nmov     rcx, rax; this                                                 ; +0xa4, 0x18002bd74\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xa7, 0x18002bd77\njmp     short loc_18002BD81                                            ; +0xac, 0x18002bd7c\nmov     rax, rdi                                                       ; +0xae, 0x18002bd7e\nmov     rdi, rax                                                       ; +0xb1, 0x18002bd81\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xb4, 0x18002bd84\nmov     rcx, rsi; this                                                 ; +0xb7, 0x18002bd87\ncall    ?copyWithZone@CCFlipX3D@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCFlipX3D::copyWithZone(cocos2d::CCZone *) ; +0xba, 0x18002bd8a\nmov     r8, [rbx]                                                      ; +0xbf, 0x18002bd8f\nlea     rdx, [rsi+60h]                                                 ; +0xc2, 0x18002bd92\nmovss   xmm2, dword ptr [rsi+50h]                                      ; +0xc6, 0x18002bd96\nmov     rcx, rbx                                                       ; +0xcb, 0x18002bd9b\ncall    qword ptr [r8+88h]                                             ; +0xce, 0x18002bd9e\ntest    rdi, rdi                                                       ; +0xd5, 0x18002bda5\njz      short loc_18002BDB7                                            ; +0xd8, 0x18002bda8\nmov     edx, 8                                                         ; +0xda, 0x18002bdaa\nmov     rcx, rdi; Block                                                ; +0xdf, 0x18002bdaf\ncall    j_j_free_0                                                     ; +0xe2, 0x18002bdb2\nmov     rax, rbx                                                       ; +0xe7, 0x18002bdb7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xea, 0x18002bdba\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xef, 0x18002bdbf\nadd     rsp, 20h                                                       ; +0xf4, 0x18002bdc4\npop     rdi                                                            ; +0xf8, 0x18002bdc8\nretn                                                                   ; +0xf9, 0x18002bdc9", "xrefs": ["<???> @ 0x1800e8970", "<???> @ 0x1801438a8", "<???> @ 0x1801afc7c"], "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"}