{"type": "func", "start": 6442646080, "end": 6442646287, "name": "cocos2d::CCFlipX::copyWithZone", "pseudocode": "// \n// cocos2d::CCFlipX::copyWithZone from 0x18002fa40 to 0x18002fb0f (207 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ef000\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba120\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:33 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCObject *__fastcall cocos2d::CCFlipX::copyWithZone(\n        cocos2d::CCFlipX *this,\n        struct cocos2d::CCObject **a2)\n{\n  struct cocos2d::CCObject *v3; // rbx\n  cocos2d::CCAction *v5; // rax\n  cocos2d::CCAction *v6; // rbx\n  struct cocos2d::CCObject **v7; // rdi\n  tinyxml2::XMLHandle *v8; // rax\n\n  if ( a2 && (v3 = *a2) != nullptr )\n  {\n    cocos2d::CCActionInstant::copyWithZone(this, a2);\n    *((_BYTE *)v3 + 88) = *((_BYTE *)this + 88);\n    return v3;\n  }\n  else\n  {\n    v5 = (cocos2d::CCAction *)sub_1800E4AC0(0x60u);\n    v6 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCAction::CCAction(v5);\n      v7 = nullptr;\n      *((_DWORD *)v6 + 20) = 0;\n      *(_QWORD *)v6 = &cocos2d::CCFlipX::`vftable';\n      *((_BYTE *)v6 + 88) = 0;\n    }\n    else\n    {\n      v7 = nullptr;\n      v6 = nullptr;\n    }\n    v8 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);\n    if ( v8 )\n      v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v6);\n    cocos2d::CCActionInstant::copyWithZone(this, v7);\n    *((_BYTE *)v6 + 88) = *((_BYTE *)this + 88);\n    if ( v7 )\n      j_j_free_0(v7);\n    return v6;\n  }\n}", "assembly": "; \n; cocos2d::CCFlipX::copyWithZone from 0x18002fa40 to 0x18002fb0f (207 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ef000\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba120\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:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18002fa40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002fa45\npush    rdi                                                            ; +0xa, 0x18002fa4a\nsub     rsp, 20h                                                       ; +0xb, 0x18002fa4b\nmov     rsi, rcx                                                       ; +0xf, 0x18002fa4f\ntest    rdx, rdx                                                       ; +0x12, 0x18002fa52\njz      short loc_18002FA7E                                            ; +0x15, 0x18002fa55\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002fa57\ntest    rbx, rbx                                                       ; +0x1a, 0x18002fa5a\njz      short loc_18002FA7E                                            ; +0x1d, 0x18002fa5d\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002fa5f\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x24, 0x18002fa64\nmov     [rbx+58h], cl                                                  ; +0x28, 0x18002fa68\nmov     rax, rbx                                                       ; +0x2b, 0x18002fa6b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2e, 0x18002fa6e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x33, 0x18002fa73\nadd     rsp, 20h                                                       ; +0x38, 0x18002fa78\npop     rdi                                                            ; +0x3c, 0x18002fa7c\nretn                                                                   ; +0x3d, 0x18002fa7d\nmov     ecx, 60h ; '`'; Size                                           ; +0x3e, 0x18002fa7e\ncall    sub_1800E4AC0                                                  ; +0x43, 0x18002fa83\nmov     rbx, rax                                                       ; +0x48, 0x18002fa88\nmov     [rsp+28h+arg_0], rax                                           ; +0x4b, 0x18002fa8b\ntest    rax, rax                                                       ; +0x50, 0x18002fa90\njz      short loc_18002FAB2                                            ; +0x53, 0x18002fa93\nmov     rcx, rax; this                                                 ; +0x55, 0x18002fa95\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x58, 0x18002fa98\nxor     edi, edi                                                       ; +0x5d, 0x18002fa9d\nmov     [rbx+50h], edi                                                 ; +0x5f, 0x18002fa9f\nlea     rax, ??_7CCFlipX@cocos2d@@6B@; const cocos2d::CCFlipX::`vftable' ; +0x62, 0x18002faa2\nmov     [rbx], rax                                                     ; +0x69, 0x18002faa9\nmov     [rbx+58h], dil                                                 ; +0x6c, 0x18002faac\njmp     short loc_18002FAB6                                            ; +0x70, 0x18002fab0\nxor     edi, edi                                                       ; +0x72, 0x18002fab2\nmov     ebx, edi                                                       ; +0x74, 0x18002fab4\nmov     ecx, 8; Size                                                   ; +0x76, 0x18002fab6\ncall    sub_1800E4AC0                                                  ; +0x7b, 0x18002fabb\nmov     [rsp+28h+arg_0], rax                                           ; +0x80, 0x18002fac0\ntest    rax, rax                                                       ; +0x85, 0x18002fac5\njz      short loc_18002FAD8                                            ; +0x88, 0x18002fac8\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x8a, 0x18002faca\nmov     rcx, rax; this                                                 ; +0x8d, 0x18002facd\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x90, 0x18002fad0\nmov     rdi, rax                                                       ; +0x95, 0x18002fad5\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x98, 0x18002fad8\nmov     rcx, rsi; this                                                 ; +0x9b, 0x18002fadb\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x9e, 0x18002fade\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0xa3, 0x18002fae3\nmov     [rbx+58h], cl                                                  ; +0xa7, 0x18002fae7\ntest    rdi, rdi                                                       ; +0xaa, 0x18002faea\njz      short loc_18002FAFC                                            ; +0xad, 0x18002faed\nmov     edx, 8                                                         ; +0xaf, 0x18002faef\nmov     rcx, rdi; Block                                                ; +0xb4, 0x18002faf4\ncall    j_j_free_0                                                     ; +0xb7, 0x18002faf7\nmov     rax, rbx                                                       ; +0xbc, 0x18002fafc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbf, 0x18002faff\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc4, 0x18002fb04\nadd     rsp, 20h                                                       ; +0xc9, 0x18002fb09\npop     rdi                                                            ; +0xcd, 0x18002fb0d\nretn                                                                   ; +0xce, 0x18002fb0e", "xrefs": ["<???> @ 0x1800ef000", "<???> @ 0x18014cf68", "<???> @ 0x1801ba120"], "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"}