{"type": "func", "start": 6442644432, "end": 6442644639, "name": "cocos2d::CCFlipY::copyWithZone", "pseudocode": "// \n// cocos2d::CCFlipY::copyWithZone from 0x18002f3d0 to 0x18002f49f (207 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e9010\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0018\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\ncocos2d::CCAction *__fastcall cocos2d::CCFlipY::copyWithZone(cocos2d::CCFlipY *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::CCFlipY::`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::CCFlipY::copyWithZone from 0x18002f3d0 to 0x18002f49f (207 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e9010\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0018\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, 0x18002f3d0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002f3d5\npush    rdi                                                            ; +0xa, 0x18002f3da\nsub     rsp, 20h                                                       ; +0xb, 0x18002f3db\nmov     rsi, rcx                                                       ; +0xf, 0x18002f3df\ntest    rdx, rdx                                                       ; +0x12, 0x18002f3e2\njz      short loc_18002F40E                                            ; +0x15, 0x18002f3e5\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002f3e7\ntest    rbx, rbx                                                       ; +0x1a, 0x18002f3ea\njz      short loc_18002F40E                                            ; +0x1d, 0x18002f3ed\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002f3ef\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0x24, 0x18002f3f4\nmov     [rbx+58h], cl                                                  ; +0x28, 0x18002f3f8\nmov     rax, rbx                                                       ; +0x2b, 0x18002f3fb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2e, 0x18002f3fe\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x33, 0x18002f403\nadd     rsp, 20h                                                       ; +0x38, 0x18002f408\npop     rdi                                                            ; +0x3c, 0x18002f40c\nretn                                                                   ; +0x3d, 0x18002f40d\nmov     ecx, 60h ; '`'; Size                                           ; +0x3e, 0x18002f40e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x43, 0x18002f413\nmov     rbx, rax                                                       ; +0x48, 0x18002f418\nmov     [rsp+28h+arg_0], rax                                           ; +0x4b, 0x18002f41b\ntest    rax, rax                                                       ; +0x50, 0x18002f420\njz      short loc_18002F442                                            ; +0x53, 0x18002f423\nmov     rcx, rax; this                                                 ; +0x55, 0x18002f425\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x58, 0x18002f428\nxor     edi, edi                                                       ; +0x5d, 0x18002f42d\nmov     [rbx+50h], edi                                                 ; +0x5f, 0x18002f42f\nlea     rax, ??_7CCFlipY@cocos2d@@6B@; const cocos2d::CCFlipY::`vftable' ; +0x62, 0x18002f432\nmov     [rbx], rax                                                     ; +0x69, 0x18002f439\nmov     [rbx+58h], dil                                                 ; +0x6c, 0x18002f43c\njmp     short loc_18002F446                                            ; +0x70, 0x18002f440\nxor     edi, edi                                                       ; +0x72, 0x18002f442\nmov     ebx, edi                                                       ; +0x74, 0x18002f444\nmov     ecx, 8; Size                                                   ; +0x76, 0x18002f446\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7b, 0x18002f44b\nmov     [rsp+28h+arg_0], rax                                           ; +0x80, 0x18002f450\ntest    rax, rax                                                       ; +0x85, 0x18002f455\njz      short loc_18002F468                                            ; +0x88, 0x18002f458\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x8a, 0x18002f45a\nmov     rcx, rax; this                                                 ; +0x8d, 0x18002f45d\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x90, 0x18002f460\nmov     rdi, rax                                                       ; +0x95, 0x18002f465\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x98, 0x18002f468\nmov     rcx, rsi; this                                                 ; +0x9b, 0x18002f46b\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x9e, 0x18002f46e\nmovzx   ecx, byte ptr [rsi+58h]                                        ; +0xa3, 0x18002f473\nmov     [rbx+58h], cl                                                  ; +0xa7, 0x18002f477\ntest    rdi, rdi                                                       ; +0xaa, 0x18002f47a\njz      short loc_18002F48C                                            ; +0xad, 0x18002f47d\nmov     edx, 8                                                         ; +0xaf, 0x18002f47f\nmov     rcx, rdi; Block                                                ; +0xb4, 0x18002f484\ncall    j_j_free_0                                                     ; +0xb7, 0x18002f487\nmov     rax, rbx                                                       ; +0xbc, 0x18002f48c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbf, 0x18002f48f\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc4, 0x18002f494\nadd     rsp, 20h                                                       ; +0xc9, 0x18002f499\npop     rdi                                                            ; +0xcd, 0x18002f49d\nretn                                                                   ; +0xce, 0x18002f49e", "xrefs": ["<???> @ 0x1800e9010", "<???> @ 0x1801438a8", "<???> @ 0x1801b0018"], "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"}