{"type": "func", "start": 6442644224, "end": 6442644431, "name": "cocos2d::CCFlipX::copyWithZone", "pseudocode": "// \n// cocos2d::CCFlipX::copyWithZone from 0x18002f300 to 0x18002f3cf (207 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e8f98\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b000c\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=2\ncocos2d::CCAction *__fastcall cocos2d::CCFlipX::copyWithZone(cocos2d::CCFlipX *this, 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    LOBYTE(v3[1].m_uIndexInArray) = *((_BYTE *)this + 88);\n    return (cocos2d::CCAction *)v3;\n  }\n  else\n  {\n    v5 = (cocos2d::CCAction *)operator new(0x60u);\n    v6 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCAction::CCAction(v5);\n      v7 = nullptr;\n      LODWORD(v6[1].__vftable) = 0;\n      v6->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCFlipX::`vftable';\n      LOBYTE(v6[1].m_uID) = 0;\n    }\n    else\n    {\n      v7 = nullptr;\n      v6 = nullptr;\n    }\n    v8 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v8 )\n      v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, (struct tinyxml2::XMLNode *)v6);\n    cocos2d::CCActionInstant::copyWithZone(this, v7);\n    LOBYTE(v6[1].m_uID) = *((_BYTE *)this + 88);\n    if ( v7 )\n      j_j_free_0(v7);\n    return v6;\n  }\n}", "assembly": "; \n; cocos2d::CCFlipX::copyWithZone from 0x18002f300 to 0x18002f3cf (207 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e8f98\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b000c\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, 0x18002f300\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002f305\npush    rdi                                                            ; +0xa, 0x18002f30a\nsub     rsp, 20h                                                       ; +0xb, 0x18002f30b\nmov     rsi, rcx                                                       ; +0xf, 0x18002f30f\ntest    rdx, rdx                                                       ; +0x12, 0x18002f312\njz      short loc_18002F33E                                            ; +0x15, 0x18002f315\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002f317\ntest    rbx, rbx                                                       ; +0x1a, 0x18002f31a\njz      short loc_18002F33E                                            ; +0x1d, 0x18002f31d\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002f31f\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x24, 0x18002f324\nmov     [rbx+58h], cl                                                  ; +0x28, 0x18002f328\nmov     rax, rbx                                                       ; +0x2b, 0x18002f32b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2e, 0x18002f32e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x33, 0x18002f333\nadd     rsp, 20h                                                       ; +0x38, 0x18002f338\npop     rdi                                                            ; +0x3c, 0x18002f33c\nretn                                                                   ; +0x3d, 0x18002f33d\nmov     ecx, 60h ; '`'; Size                                           ; +0x3e, 0x18002f33e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x43, 0x18002f343\nmov     rbx, rax                                                       ; +0x48, 0x18002f348\nmov     [rsp+28h+arg_0], rax                                           ; +0x4b, 0x18002f34b\ntest    rax, rax                                                       ; +0x50, 0x18002f350\njz      short loc_18002F372                                            ; +0x53, 0x18002f353\nmov     rcx, rax; this                                                 ; +0x55, 0x18002f355\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x58, 0x18002f358\nxor     edi, edi                                                       ; +0x5d, 0x18002f35d\nmov     [rbx+50h], edi                                                 ; +0x5f, 0x18002f35f\nlea     rax, ??_7CCFlipX@cocos2d@@6B@; const cocos2d::CCFlipX::`vftable' ; +0x62, 0x18002f362\nmov     [rbx], rax                                                     ; +0x69, 0x18002f369\nmov     [rbx+58h], dil                                                 ; +0x6c, 0x18002f36c\njmp     short loc_18002F376                                            ; +0x70, 0x18002f370\nxor     edi, edi                                                       ; +0x72, 0x18002f372\nmov     ebx, edi                                                       ; +0x74, 0x18002f374\nmov     ecx, 8; Size                                                   ; +0x76, 0x18002f376\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7b, 0x18002f37b\nmov     [rsp+28h+arg_0], rax                                           ; +0x80, 0x18002f380\ntest    rax, rax                                                       ; +0x85, 0x18002f385\njz      short loc_18002F398                                            ; +0x88, 0x18002f388\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x8a, 0x18002f38a\nmov     rcx, rax; this                                                 ; +0x8d, 0x18002f38d\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x90, 0x18002f390\nmov     rdi, rax                                                       ; +0x95, 0x18002f395\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x98, 0x18002f398\nmov     rcx, rsi; this                                                 ; +0x9b, 0x18002f39b\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x9e, 0x18002f39e\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0xa3, 0x18002f3a3\nmov     [rbx+58h], cl                                                  ; +0xa7, 0x18002f3a7\ntest    rdi, rdi                                                       ; +0xaa, 0x18002f3aa\njz      short loc_18002F3BC                                            ; +0xad, 0x18002f3ad\nmov     edx, 8                                                         ; +0xaf, 0x18002f3af\nmov     rcx, rdi; Block                                                ; +0xb4, 0x18002f3b4\ncall    j_j_free_0                                                     ; +0xb7, 0x18002f3b7\nmov     rax, rbx                                                       ; +0xbc, 0x18002f3bc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbf, 0x18002f3bf\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc4, 0x18002f3c4\nadd     rsp, 20h                                                       ; +0xc9, 0x18002f3c9\npop     rdi                                                            ; +0xcd, 0x18002f3cd\nretn                                                                   ; +0xce, 0x18002f3ce", "xrefs": ["<???> @ 0x1800e8f98", "<???> @ 0x1801438a8", "<???> @ 0x1801b000c"], "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"}