{"type": "func", "start": 6443027072, "end": 6443027270, "name": "cocos2d::CCAnimation::copyWithZone", "pseudocode": "// \n// cocos2d::CCAnimation::copyWithZone from 0x18008ca80 to 0x18008cb46 (198 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180109ce8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfc94\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:22:06 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCObject *__fastcall cocos2d::CCAnimation::copyWithZone(\n        cocos2d::CCAnimation *this,\n        cocos2d::CCObject **a2)\n{\n  tinyxml2::XMLHandle *v3; // rdi\n  cocos2d::CCObject *v4; // rbx\n  cocos2d::CCObject *v5; // rax\n  tinyxml2::XMLHandle *v6; // rax\n\n  v3 = nullptr;\n  if ( !a2 || (v4 = *a2) == nullptr )\n  {\n    v5 = (cocos2d::CCObject *)sub_1800E4AC0(0x58u);\n    v4 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCObject::CCObject(v5);\n      *(_QWORD *)v4 = &cocos2d::CCAnimation::`vftable';\n      *((_QWORD *)v4 + 7) = 0;\n      *((_DWORD *)v4 + 16) = 0;\n      *((_QWORD *)v4 + 9) = 0;\n      *((_BYTE *)v4 + 80) = 0;\n      *((_DWORD *)v4 + 21) = 0;\n    }\n    else\n    {\n      v4 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);\n    if ( v6 )\n      v3 = tinyxml2::XMLHandle::XMLHandle(v6, v4);\n  }\n  cocos2d::CCAnimation::initWithAnimationFrames(\n    v4,\n    *((struct cocos2d::CCArray **)this + 9),\n    *((float *)this + 15),\n    *((_DWORD *)this + 21));\n  *((_BYTE *)v4 + 80) = *((_BYTE *)this + 80);\n  if ( v3 )\n    j_j_free_0(v3);\n  return v4;\n}", "assembly": "; \n; cocos2d::CCAnimation::copyWithZone from 0x18008ca80 to 0x18008cb46 (198 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180109ce8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfc94\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:22:06 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18008ca80\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18008ca85\npush    rdi                                                            ; +0xa, 0x18008ca8a\nsub     rsp, 20h                                                       ; +0xb, 0x18008ca8b\nmov     rsi, rcx                                                       ; +0xf, 0x18008ca8f\nxor     edi, edi                                                       ; +0x12, 0x18008ca92\ntest    rdx, rdx                                                       ; +0x14, 0x18008ca94\njz      short loc_18008CAA1                                            ; +0x17, 0x18008ca97\nmov     rbx, [rdx]                                                     ; +0x19, 0x18008ca99\ntest    rbx, rbx                                                       ; +0x1c, 0x18008ca9c\njnz     short loc_18008CB03                                            ; +0x1f, 0x18008ca9f\nmov     ecx, 58h ; 'X'; Size                                           ; +0x21, 0x18008caa1\ncall    sub_1800E4AC0                                                  ; +0x26, 0x18008caa6\nmov     rbx, rax                                                       ; +0x2b, 0x18008caab\nmov     [rsp+28h+arg_0], rax                                           ; +0x2e, 0x18008caae\ntest    rax, rax                                                       ; +0x33, 0x18008cab3\njz      short loc_18008CADE                                            ; +0x36, 0x18008cab6\nmov     rcx, rax; this                                                 ; +0x38, 0x18008cab8\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x3b, 0x18008cabb\nlea     rax, ??_7CCAnimation@cocos2d@@6B@; const cocos2d::CCAnimation::`vftable' ; +0x40, 0x18008cac0\nmov     [rbx], rax                                                     ; +0x47, 0x18008cac7\nmov     [rbx+38h], rdi                                                 ; +0x4a, 0x18008caca\nmov     [rbx+40h], edi                                                 ; +0x4e, 0x18008cace\nmov     [rbx+48h], rdi                                                 ; +0x51, 0x18008cad1\nmov     byte ptr [rbx+50h], 0                                          ; +0x55, 0x18008cad5\nmov     [rbx+54h], edi                                                 ; +0x59, 0x18008cad9\njmp     short loc_18008CAE1                                            ; +0x5c, 0x18008cadc\nmov     rbx, rdi                                                       ; +0x5e, 0x18008cade\nmov     ecx, 8; Size                                                   ; +0x61, 0x18008cae1\ncall    sub_1800E4AC0                                                  ; +0x66, 0x18008cae6\nmov     [rsp+28h+arg_0], rax                                           ; +0x6b, 0x18008caeb\ntest    rax, rax                                                       ; +0x70, 0x18008caf0\njz      short loc_18008CB03                                            ; +0x73, 0x18008caf3\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x75, 0x18008caf5\nmov     rcx, rax; this                                                 ; +0x78, 0x18008caf8\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x7b, 0x18008cafb\nmov     rdi, rax                                                       ; +0x80, 0x18008cb00\nmov     r9d, [rsi+54h]; unsigned int                                   ; +0x83, 0x18008cb03\nmovss   xmm2, dword ptr [rsi+3Ch]; float                               ; +0x87, 0x18008cb07\nmov     rdx, [rsi+48h]; struct cocos2d::CCArray *                      ; +0x8c, 0x18008cb0c\nmov     rcx, rbx; this                                                 ; +0x90, 0x18008cb10\ncall    ?initWithAnimationFrames@CCAnimation@cocos2d@@QEAA_NPEAVCCArray@2@MI@Z; cocos2d::CCAnimation::initWithAnimationFrames(cocos2d::CCArray *,float,uint) ; +0x93, 0x18008cb13\nmovzx   r8d, byte ptr [rsi+50h]                                        ; +0x98, 0x18008cb18\nmov     [rbx+50h], r8b                                                 ; +0x9d, 0x18008cb1d\ntest    rdi, rdi                                                       ; +0xa1, 0x18008cb21\njz      short loc_18008CB33                                            ; +0xa4, 0x18008cb24\nmov     edx, 8                                                         ; +0xa6, 0x18008cb26\nmov     rcx, rdi; Block                                                ; +0xab, 0x18008cb2b\ncall    j_j_free_0                                                     ; +0xae, 0x18008cb2e\nmov     rax, rbx                                                       ; +0xb3, 0x18008cb33\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb6, 0x18008cb36\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xbb, 0x18008cb3b\nadd     rsp, 20h                                                       ; +0xc0, 0x18008cb40\npop     rdi                                                            ; +0xc4, 0x18008cb44\nretn                                                                   ; +0xc5, 0x18008cb45", "xrefs": ["<???> @ 0x180109ce8", "<???> @ 0x18014cf68", "<???> @ 0x1801bfc94"], "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"}