{"type": "func", "start": 6442597952, "end": 6442598153, "name": "cocos2d::CCAction::copyWithZone", "pseudocode": "// \n// cocos2d::CCAction::copyWithZone from 0x180023e40 to 0x180023f09 (201 bytes)\n// \n// 11 xrefs:\n// > cocos2d::CCFollow::copyWithZone @ 0x180023f2f\n// > cocos2d::CCFollow::copyWithZone @ 0x180023f9b\n// > cocos2d::CCSpeed::copyWithZone @ 0x18002406f\n// > cocos2d::CCActionInstant::copyWithZone @ 0x18002ee9f\n// > cocos2d::CCActionInstant::copyWithZone @ 0x18002ef13\n// > cocos2d::CCActionInterval::copyWithZone @ 0x18003199f\n// > cocos2d::CCActionInterval::copyWithZone @ 0x180031a23\n// > <???> @ 0x1800e7328\n// > <???> @ 0x1800e7498\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af0f4\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::CCAction::copyWithZone(\n        cocos2d::CCAction *this,\n        struct cocos2d::CCObject **a2)\n{\n  struct cocos2d::CCObject *result; // rax\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rdi\n  tinyxml2::XMLHandle *v7; // rax\n\n  if ( a2 && (result = *a2) != nullptr )\n  {\n    result[1].m_nTag = this->m_nTag;\n  }\n  else\n  {\n    v4 = (cocos2d::CCObject *)operator new(0x50u);\n    v5 = v4;\n    if ( v4 )\n    {\n      cocos2d::CCObject::CCObject(v4);\n      v5->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCAction::`vftable';\n      v6 = nullptr;\n      v5[1].__vftable = nullptr;\n      *(_QWORD *)&v5[1].m_uID = 0;\n      v5[1].m_nTag = -1;\n      v5[1].m_uReference = 1065353216;\n    }\n    else\n    {\n      v6 = nullptr;\n      v5 = nullptr;\n    }\n    v7 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v7 )\n      v6 = tinyxml2::XMLHandle::XMLHandle(v7, (struct tinyxml2::XMLNode *)v5);\n    v5[1].m_nTag = this->m_nTag;\n    if ( v6 )\n      j_j_free_0(v6);\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCAction::copyWithZone from 0x180023e40 to 0x180023f09 (201 bytes)\n; \n; 11 xrefs:\n; > cocos2d::CCFollow::copyWithZone @ 0x180023f2f\n; > cocos2d::CCFollow::copyWithZone @ 0x180023f9b\n; > cocos2d::CCSpeed::copyWithZone @ 0x18002406f\n; > cocos2d::CCActionInstant::copyWithZone @ 0x18002ee9f\n; > cocos2d::CCActionInstant::copyWithZone @ 0x18002ef13\n; > cocos2d::CCActionInterval::copyWithZone @ 0x18003199f\n; > cocos2d::CCActionInterval::copyWithZone @ 0x180031a23\n; > <???> @ 0x1800e7328\n; > <???> @ 0x1800e7498\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af0f4\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, 0x180023e40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180023e45\npush    rdi                                                            ; +0xa, 0x180023e4a\nsub     rsp, 20h                                                       ; +0xb, 0x180023e4b\nmov     rsi, rcx                                                       ; +0xf, 0x180023e4f\ntest    rdx, rdx                                                       ; +0x12, 0x180023e52\njz      short loc_180023E75                                            ; +0x15, 0x180023e55\nmov     rax, [rdx]                                                     ; +0x17, 0x180023e57\ntest    rax, rax                                                       ; +0x1a, 0x180023e5a\njz      short loc_180023E75                                            ; +0x1d, 0x180023e5d\nmov     ecx, [rcx+48h]                                                 ; +0x1f, 0x180023e5f\nmov     [rax+48h], ecx                                                 ; +0x22, 0x180023e62\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x25, 0x180023e65\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x2a, 0x180023e6a\nadd     rsp, 20h                                                       ; +0x2f, 0x180023e6f\npop     rdi                                                            ; +0x33, 0x180023e73\nretn                                                                   ; +0x34, 0x180023e74\nmov     ecx, 50h ; 'P'; Size                                           ; +0x35, 0x180023e75\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x180023e7a\nmov     rbx, rax                                                       ; +0x3f, 0x180023e7f\nmov     [rsp+28h+arg_0], rax                                           ; +0x42, 0x180023e82\ntest    rax, rax                                                       ; +0x47, 0x180023e87\njz      short loc_180023EB8                                            ; +0x4a, 0x180023e8a\nmov     rcx, rax; this                                                 ; +0x4c, 0x180023e8c\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x4f, 0x180023e8f\nlea     rax, ??_7CCAction@cocos2d@@6B@; const cocos2d::CCAction::`vftable' ; +0x54, 0x180023e94\nmov     [rbx], rax                                                     ; +0x5b, 0x180023e9b\nxor     edi, edi                                                       ; +0x5e, 0x180023e9e\nmov     [rbx+38h], rdi                                                 ; +0x60, 0x180023ea0\nmov     [rbx+40h], rdi                                                 ; +0x64, 0x180023ea4\nmov     dword ptr [rbx+48h], 0FFFFFFFFh                                ; +0x68, 0x180023ea8\nmov     dword ptr [rbx+4Ch], 3F800000h                                 ; +0x6f, 0x180023eaf\njmp     short loc_180023EBC                                            ; +0x76, 0x180023eb6\nxor     edi, edi                                                       ; +0x78, 0x180023eb8\nmov     ebx, edi                                                       ; +0x7a, 0x180023eba\nmov     ecx, 8; Size                                                   ; +0x7c, 0x180023ebc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x81, 0x180023ec1\nmov     [rsp+28h+arg_0], rax                                           ; +0x86, 0x180023ec6\ntest    rax, rax                                                       ; +0x8b, 0x180023ecb\njz      short loc_180023EDE                                            ; +0x8e, 0x180023ece\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x90, 0x180023ed0\nmov     rcx, rax; this                                                 ; +0x93, 0x180023ed3\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x96, 0x180023ed6\nmov     rdi, rax                                                       ; +0x9b, 0x180023edb\nmov     ecx, [rsi+48h]                                                 ; +0x9e, 0x180023ede\nmov     [rbx+48h], ecx                                                 ; +0xa1, 0x180023ee1\ntest    rdi, rdi                                                       ; +0xa4, 0x180023ee4\njz      short loc_180023EF6                                            ; +0xa7, 0x180023ee7\nmov     edx, 8                                                         ; +0xa9, 0x180023ee9\nmov     rcx, rdi; Block                                                ; +0xae, 0x180023eee\ncall    j_j_free_0                                                     ; +0xb1, 0x180023ef1\nmov     rax, rbx                                                       ; +0xb6, 0x180023ef6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb9, 0x180023ef9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xbe, 0x180023efe\nadd     rsp, 20h                                                       ; +0xc3, 0x180023f03\npop     rdi                                                            ; +0xc7, 0x180023f07\nretn                                                                   ; +0xc8, 0x180023f08", "xrefs": ["cocos2d::CCFollow::copyWithZone @ 0x180023f2f", "cocos2d::CCFollow::copyWithZone @ 0x180023f9b", "cocos2d::CCSpeed::copyWithZone @ 0x18002406f", "cocos2d::CCActionInstant::copyWithZone @ 0x18002ee9f", "cocos2d::CCActionInstant::copyWithZone @ 0x18002ef13", "cocos2d::CCActionInterval::copyWithZone @ 0x18003199f", "cocos2d::CCActionInterval::copyWithZone @ 0x180031a23", "<???> @ 0x1800e7328", "<???> @ 0x1800e7498", "<???> @ 0x1801438a8", "<???> @ 0x1801af0f4"], "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"}