{"type": "func", "start": 6442654336, "end": 6442654523, "name": "cocos2d::CCAnimate::copyWithZone", "pseudocode": "// \n// cocos2d::CCAnimate::copyWithZone from 0x180031a80 to 0x180031b3b (187 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e9ed0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b03f0\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::CCAnimate *__fastcall cocos2d::CCAnimate::copyWithZone(cocos2d::CCAnimate *this, cocos2d::CCAnimate **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  cocos2d::CCAnimate *v5; // rbx\n  cocos2d::CCAnimate *v6; // rax\n  tinyxml2::XMLHandle *v7; // rax\n  cocos2d::CCObject *v8; // rax\n  struct cocos2d::CCAnimation *v9; // rax\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *a2) == nullptr )\n  {\n    v6 = (cocos2d::CCAnimate *)operator new(0x88u);\n    if ( v6 )\n      v5 = cocos2d::CCAnimate::CCAnimate(v6);\n    else\n      v5 = nullptr;\n    v7 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v7 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v7, (struct tinyxml2::XMLNode *)v5);\n    else\n      v2 = nullptr;\n    v4 = v2;\n  }\n  cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);\n  v8 = cocos2d::CCObject::copy((cocos2d::CCObject *)this->m_pSplitTimes);\n  v9 = (struct cocos2d::CCAnimation *)cocos2d::CCObject::autorelease(v8);\n  cocos2d::CCAnimate::initWithAnimation(v5, v9);\n  if ( v4 )\n    j_j_free_0(v4);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCAnimate::copyWithZone from 0x180031a80 to 0x180031b3b (187 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e9ed0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b03f0\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, 0x180031a80\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180031a85\npush    rdi                                                            ; +0xa, 0x180031a8a\nsub     rsp, 20h                                                       ; +0xb, 0x180031a8b\nmov     rax, rdx                                                       ; +0xf, 0x180031a8f\nmov     rsi, rcx                                                       ; +0x12, 0x180031a92\nxor     edi, edi                                                       ; +0x15, 0x180031a95\ntest    rdx, rdx                                                       ; +0x17, 0x180031a97\njz      short loc_180031AA4                                            ; +0x1a, 0x180031a9a\nmov     rbx, [rdx]                                                     ; +0x1c, 0x180031a9c\ntest    rbx, rbx                                                       ; +0x1f, 0x180031a9f\njnz     short loc_180031AEF                                            ; +0x22, 0x180031aa2\nmov     ecx, 88h; Size                                                 ; +0x24, 0x180031aa4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x29, 0x180031aa9\nmov     [rsp+28h+arg_0], rax                                           ; +0x2e, 0x180031aae\ntest    rax, rax                                                       ; +0x33, 0x180031ab3\njz      short loc_180031AC5                                            ; +0x36, 0x180031ab6\nmov     rcx, rax; this                                                 ; +0x38, 0x180031ab8\ncall    ??0CCAnimate@cocos2d@@QEAA@XZ; cocos2d::CCAnimate::CCAnimate(void) ; +0x3b, 0x180031abb\nmov     rbx, rax                                                       ; +0x40, 0x180031ac0\njmp     short loc_180031AC8                                            ; +0x43, 0x180031ac3\nmov     rbx, rdi                                                       ; +0x45, 0x180031ac5\nmov     ecx, 8; Size                                                   ; +0x48, 0x180031ac8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4d, 0x180031acd\nmov     [rsp+28h+arg_0], rax                                           ; +0x52, 0x180031ad2\ntest    rax, rax                                                       ; +0x57, 0x180031ad7\njz      short loc_180031AE9                                            ; +0x5a, 0x180031ada\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x5c, 0x180031adc\nmov     rcx, rax; this                                                 ; +0x5f, 0x180031adf\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x62, 0x180031ae2\njmp     short loc_180031AEC                                            ; +0x67, 0x180031ae7\nmov     rax, rdi                                                       ; +0x69, 0x180031ae9\nmov     rdi, rax                                                       ; +0x6c, 0x180031aec\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0x6f, 0x180031aef\nmov     rcx, rsi; this                                                 ; +0x72, 0x180031af2\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0x75, 0x180031af5\nmov     rcx, [rsi+60h]; this                                           ; +0x7a, 0x180031afa\ncall    ?copy@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::copy(void) ; +0x7e, 0x180031afe\nmov     rcx, rax; this                                                 ; +0x83, 0x180031b03\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x86, 0x180031b06\nmov     rdx, rax; struct cocos2d::CCAnimation *                        ; +0x8b, 0x180031b0b\nmov     rcx, rbx; this                                                 ; +0x8e, 0x180031b0e\ncall    ?initWithAnimation@CCAnimate@cocos2d@@QEAA_NPEAVCCAnimation@2@@Z; cocos2d::CCAnimate::initWithAnimation(cocos2d::CCAnimation *) ; +0x91, 0x180031b11\ntest    rdi, rdi                                                       ; +0x96, 0x180031b16\njz      short loc_180031B28                                            ; +0x99, 0x180031b19\nmov     edx, 8                                                         ; +0x9b, 0x180031b1b\nmov     rcx, rdi; Block                                                ; +0xa0, 0x180031b20\ncall    j_j_free_0                                                     ; +0xa3, 0x180031b23\nmov     rax, rbx                                                       ; +0xa8, 0x180031b28\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xab, 0x180031b2b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb0, 0x180031b30\nadd     rsp, 20h                                                       ; +0xb5, 0x180031b35\npop     rdi                                                            ; +0xb9, 0x180031b39\nretn                                                                   ; +0xba, 0x180031b3a", "xrefs": ["<???> @ 0x1800e9ed0", "<???> @ 0x1801438a8", "<???> @ 0x1801b03f0"], "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"}