{"type": "func", "start": 6443014752, "end": 6443014950, "name": "cocos2d::CCAnimation::copyWithZone", "pseudocode": "// \n// cocos2d::CCAnimation::copyWithZone from 0x180089a60 to 0x180089b26 (198 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180103638\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b59c4\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\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 *)operator new(0x58u);\n    v4 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCObject::CCObject(v5);\n      v4->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCAnimation::`vftable';\n      v4[1].__vftable = nullptr;\n      v4[1].m_uID = 0;\n      *(_QWORD *)&v4[1].m_nTag = 0;\n      LOBYTE(v4[1].m_uAutoReleaseCount) = 0;\n      v4[1].m_eObjType = 0;\n    }\n    else\n    {\n      v4 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v6 )\n      v3 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v4);\n  }\n  cocos2d::CCAnimation::initWithAnimationFrames(\n    (cocos2d::CCAnimation *)v4,\n    this->m_pFrames,\n    this->m_fDelayPerUnit,\n    this->m_uLoops);\n  LOBYTE(v4[1].m_uAutoReleaseCount) = this->m_bRestoreOriginalFrame;\n  if ( v3 )\n    j_j_free_0(v3);\n  return v4;\n}", "assembly": "; \n; cocos2d::CCAnimation::copyWithZone from 0x180089a60 to 0x180089b26 (198 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180103638\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b59c4\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, 0x180089a60\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180089a65\npush    rdi                                                            ; +0xa, 0x180089a6a\nsub     rsp, 20h                                                       ; +0xb, 0x180089a6b\nmov     rsi, rcx                                                       ; +0xf, 0x180089a6f\nxor     edi, edi                                                       ; +0x12, 0x180089a72\ntest    rdx, rdx                                                       ; +0x14, 0x180089a74\njz      short loc_180089A81                                            ; +0x17, 0x180089a77\nmov     rbx, [rdx]                                                     ; +0x19, 0x180089a79\ntest    rbx, rbx                                                       ; +0x1c, 0x180089a7c\njnz     short loc_180089AE3                                            ; +0x1f, 0x180089a7f\nmov     ecx, 58h ; 'X'; Size                                           ; +0x21, 0x180089a81\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x180089a86\nmov     rbx, rax                                                       ; +0x2b, 0x180089a8b\nmov     [rsp+28h+arg_0], rax                                           ; +0x2e, 0x180089a8e\ntest    rax, rax                                                       ; +0x33, 0x180089a93\njz      short loc_180089ABE                                            ; +0x36, 0x180089a96\nmov     rcx, rax; this                                                 ; +0x38, 0x180089a98\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x3b, 0x180089a9b\nlea     rax, ??_7CCAnimation@cocos2d@@6B@; const cocos2d::CCAnimation::`vftable' ; +0x40, 0x180089aa0\nmov     [rbx], rax                                                     ; +0x47, 0x180089aa7\nmov     [rbx+38h], rdi                                                 ; +0x4a, 0x180089aaa\nmov     [rbx+40h], edi                                                 ; +0x4e, 0x180089aae\nmov     [rbx+48h], rdi                                                 ; +0x51, 0x180089ab1\nmov     byte ptr [rbx+50h], 0                                          ; +0x55, 0x180089ab5\nmov     [rbx+54h], edi                                                 ; +0x59, 0x180089ab9\njmp     short loc_180089AC1                                            ; +0x5c, 0x180089abc\nmov     rbx, rdi                                                       ; +0x5e, 0x180089abe\nmov     ecx, 8; Size                                                   ; +0x61, 0x180089ac1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x66, 0x180089ac6\nmov     [rsp+28h+arg_0], rax                                           ; +0x6b, 0x180089acb\ntest    rax, rax                                                       ; +0x70, 0x180089ad0\njz      short loc_180089AE3                                            ; +0x73, 0x180089ad3\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x75, 0x180089ad5\nmov     rcx, rax; this                                                 ; +0x78, 0x180089ad8\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x7b, 0x180089adb\nmov     rdi, rax                                                       ; +0x80, 0x180089ae0\nmov     r9d, [rsi+54h]; unsigned int                                   ; +0x83, 0x180089ae3\nmovss   xmm2, dword ptr [rsi+3Ch]; float                               ; +0x87, 0x180089ae7\nmov     rdx, [rsi+48h]; struct cocos2d::CCArray *                      ; +0x8c, 0x180089aec\nmov     rcx, rbx; this                                                 ; +0x90, 0x180089af0\ncall    ?initWithAnimationFrames@CCAnimation@cocos2d@@QEAA_NPEAVCCArray@2@MI@Z; cocos2d::CCAnimation::initWithAnimationFrames(cocos2d::CCArray *,float,uint) ; +0x93, 0x180089af3\nmovzx   r8d, byte ptr [rsi+50h]                                        ; +0x98, 0x180089af8\nmov     [rbx+50h], r8b                                                 ; +0x9d, 0x180089afd\ntest    rdi, rdi                                                       ; +0xa1, 0x180089b01\njz      short loc_180089B13                                            ; +0xa4, 0x180089b04\nmov     edx, 8                                                         ; +0xa6, 0x180089b06\nmov     rcx, rdi; Block                                                ; +0xab, 0x180089b0b\ncall    j_j_free_0                                                     ; +0xae, 0x180089b0e\nmov     rax, rbx                                                       ; +0xb3, 0x180089b13\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb6, 0x180089b16\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xbb, 0x180089b1b\nadd     rsp, 20h                                                       ; +0xc0, 0x180089b20\npop     rdi                                                            ; +0xc4, 0x180089b24\nretn                                                                   ; +0xc5, 0x180089b25", "xrefs": ["<???> @ 0x180103638", "<???> @ 0x1801438a8", "<???> @ 0x1801b59c4"], "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"}