{"type": "func", "start": 6442599520, "end": 6442599707, "name": "cocos2d::CCFollow::copyWithZone", "pseudocode": "// \n// cocos2d::CCFollow::copyWithZone from 0x180024460 to 0x18002451b (187 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ed478\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b91e4\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:21:29 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCObject *__fastcall cocos2d::CCFollow::copyWithZone(\n        cocos2d::CCFollow *this,\n        struct cocos2d::CCObject **a2)\n{\n  struct cocos2d::CCObject *v3; // rbx\n  cocos2d::CCFollow *v5; // rax\n  struct cocos2d::CCObject **v6; // rdi\n  cocos2d::CCFollow *v7; // rbx\n  tinyxml2::XMLHandle *v8; // rax\n\n  if ( a2 && (v3 = *a2) != nullptr )\n  {\n    cocos2d::CCAction::copyWithZone(this, a2);\n    *((_DWORD *)v3 + 18) = *((_DWORD *)this + 18);\n    return v3;\n  }\n  else\n  {\n    v5 = (cocos2d::CCFollow *)sub_1800E4AC0(0x80u);\n    v6 = nullptr;\n    if ( v5 )\n      v7 = cocos2d::CCFollow::CCFollow(v5);\n    else\n      v7 = nullptr;\n    v8 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);\n    if ( v8 )\n      v6 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v7);\n    cocos2d::CCAction::copyWithZone(this, v6);\n    *((_DWORD *)v7 + 18) = *((_DWORD *)this + 18);\n    if ( v6 )\n      j_j_free_0(v6);\n    return v7;\n  }\n}", "assembly": "; \n; cocos2d::CCFollow::copyWithZone from 0x180024460 to 0x18002451b (187 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ed478\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b91e4\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:21:29 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180024460\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180024465\npush    rdi                                                            ; +0xa, 0x18002446a\nsub     rsp, 20h                                                       ; +0xb, 0x18002446b\nmov     rsi, rcx                                                       ; +0xf, 0x18002446f\ntest    rdx, rdx                                                       ; +0x12, 0x180024472\njz      short loc_18002449D                                            ; +0x15, 0x180024475\nmov     rbx, [rdx]                                                     ; +0x17, 0x180024477\ntest    rbx, rbx                                                       ; +0x1a, 0x18002447a\njz      short loc_18002449D                                            ; +0x1d, 0x18002447d\ncall    ?copyWithZone@CCAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCAction::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002447f\nmov     ecx, [rsi+48h]                                                 ; +0x24, 0x180024484\nmov     [rbx+48h], ecx                                                 ; +0x27, 0x180024487\nmov     rax, rbx                                                       ; +0x2a, 0x18002448a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2d, 0x18002448d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x32, 0x180024492\nadd     rsp, 20h                                                       ; +0x37, 0x180024497\npop     rdi                                                            ; +0x3b, 0x18002449b\nretn                                                                   ; +0x3c, 0x18002449c\nmov     ecx, 80h; Size                                                 ; +0x3d, 0x18002449d\ncall    sub_1800E4AC0                                                  ; +0x42, 0x1800244a2\nmov     [rsp+28h+arg_0], rax                                           ; +0x47, 0x1800244a7\nxor     edi, edi                                                       ; +0x4c, 0x1800244ac\ntest    rax, rax                                                       ; +0x4e, 0x1800244ae\njz      short loc_1800244C0                                            ; +0x51, 0x1800244b1\nmov     rcx, rax; this                                                 ; +0x53, 0x1800244b3\ncall    ??0CCFollow@cocos2d@@QEAA@XZ; cocos2d::CCFollow::CCFollow(void) ; +0x56, 0x1800244b6\nmov     rbx, rax                                                       ; +0x5b, 0x1800244bb\njmp     short loc_1800244C3                                            ; +0x5e, 0x1800244be\nmov     rbx, rdi                                                       ; +0x60, 0x1800244c0\nmov     ecx, 8; Size                                                   ; +0x63, 0x1800244c3\ncall    sub_1800E4AC0                                                  ; +0x68, 0x1800244c8\nmov     [rsp+28h+arg_0], rax                                           ; +0x6d, 0x1800244cd\ntest    rax, rax                                                       ; +0x72, 0x1800244d2\njz      short loc_1800244E5                                            ; +0x75, 0x1800244d5\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x77, 0x1800244d7\nmov     rcx, rax; this                                                 ; +0x7a, 0x1800244da\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x7d, 0x1800244dd\nmov     rdi, rax                                                       ; +0x82, 0x1800244e2\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x85, 0x1800244e5\nmov     rcx, rsi; this                                                 ; +0x88, 0x1800244e8\ncall    ?copyWithZone@CCAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCAction::copyWithZone(cocos2d::CCZone *) ; +0x8b, 0x1800244eb\nmov     ecx, [rsi+48h]                                                 ; +0x90, 0x1800244f0\nmov     [rbx+48h], ecx                                                 ; +0x93, 0x1800244f3\ntest    rdi, rdi                                                       ; +0x96, 0x1800244f6\njz      short loc_180024508                                            ; +0x99, 0x1800244f9\nmov     edx, 8                                                         ; +0x9b, 0x1800244fb\nmov     rcx, rdi; Block                                                ; +0xa0, 0x180024500\ncall    j_j_free_0                                                     ; +0xa3, 0x180024503\nmov     rax, rbx                                                       ; +0xa8, 0x180024508\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xab, 0x18002450b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb0, 0x180024510\nadd     rsp, 20h                                                       ; +0xb5, 0x180024515\npop     rdi                                                            ; +0xb9, 0x180024519\nretn                                                                   ; +0xba, 0x18002451a", "xrefs": ["<???> @ 0x1800ed478", "<???> @ 0x18014cf68", "<???> @ 0x1801b91e4"], "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"}