{"type": "func", "start": 6442478096, "end": 6442478323, "name": "cocos2d::CCArray::copyWithZone", "pseudocode": "// \n// cocos2d::CCArray::copyWithZone from 0x180006a10 to 0x180006af3 (227 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ec310\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7930\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:18 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCObject *__fastcall cocos2d::CCArray::copyWithZone(cocos2d::CCArray *this, struct cocos2d::CCZone *a2)\n{\n  cocos2d::CCObject *v3; // rax\n  cocos2d::CCObject *v4; // rsi\n  unsigned int v5; // edi\n  unsigned int *v6; // rbx\n  __int64 v7; // rax\n  cocos2d::CCObject **v8; // rbx\n  cocos2d::CCObject **i; // rbp\n  cocos2d::CCObject *v10; // rdi\n\n  v3 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);\n  v4 = v3;\n  v5 = 1;\n  if ( v3 )\n  {\n    cocos2d::CCObject::CCObject(v3);\n    *(_QWORD *)v4 = &cocos2d::CCArray::`vftable';\n    *((_QWORD *)v4 + 7) = 0;\n    sub_1800A16E0((char *)v4 + 56);\n    *((_QWORD *)v4 + 7) = sub_1800A1920(1u);\n  }\n  else\n  {\n    v4 = nullptr;\n  }\n  if ( **((_DWORD **)this + 7) )\n    v5 = **((_DWORD **)this + 7);\n  sub_1800A16E0((char *)v4 + 56);\n  *((_QWORD *)v4 + 7) = sub_1800A1920(v5);\n  v6 = *((unsigned int **)this + 7);\n  v7 = *v6;\n  if ( (_DWORD)v7 )\n  {\n    v8 = *((cocos2d::CCObject ***)v6 + 2);\n    for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )\n    {\n      if ( !*v8 )\n        break;\n      v10 = cocos2d::CCObject::copy(*v8);\n      sub_1800A12A0(*((_QWORD *)v4 + 7), v10);\n      cocos2d::CCObject::release(v10);\n    }\n  }\n  return v4;\n}", "assembly": "; \n; cocos2d::CCArray::copyWithZone from 0x180006a10 to 0x180006af3 (227 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ec310\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7930\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:18 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180006a10\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180006a15\npush    rsi                                                            ; +0xa, 0x180006a1a\npush    rdi                                                            ; +0xb, 0x180006a1b\npush    r14                                                            ; +0xc, 0x180006a1c\nsub     rsp, 20h                                                       ; +0xe, 0x180006a1e\nmov     rbp, rcx                                                       ; +0x12, 0x180006a22\nmov     ecx, 40h ; '@'; Size                                           ; +0x15, 0x180006a25\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x180006a2a\nmov     rsi, rax                                                       ; +0x1f, 0x180006a2f\nmov     [rsp+38h+arg_0], rax                                           ; +0x22, 0x180006a32\nmov     edi, 1                                                         ; +0x27, 0x180006a37\ntest    rax, rax                                                       ; +0x2c, 0x180006a3c\njz      short loc_180006A72                                            ; +0x2f, 0x180006a3f\nmov     rcx, rax; this                                                 ; +0x31, 0x180006a41\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x34, 0x180006a44\nnop                                                                    ; +0x39, 0x180006a49\nlea     rax, ??_7CCArray@cocos2d@@6B@; const cocos2d::CCArray::`vftable' ; +0x3a, 0x180006a4a\nmov     [rsi], rax                                                     ; +0x41, 0x180006a51\nmov     qword ptr [rsi+38h], 0                                         ; +0x44, 0x180006a54\nlea     rcx, [rsi+38h]                                                 ; +0x4c, 0x180006a5c\ncall    sub_1800A16E0                                                  ; +0x50, 0x180006a60\nmov     ecx, edi; Count                                                ; +0x55, 0x180006a65\ncall    sub_1800A1920                                                  ; +0x57, 0x180006a67\nmov     [rsi+38h], rax                                                 ; +0x5c, 0x180006a6c\njmp     short loc_180006A74                                            ; +0x60, 0x180006a70\nxor     esi, esi                                                       ; +0x62, 0x180006a72\nmov     rax, [rbp+38h]                                                 ; +0x64, 0x180006a74\nmov     edx, [rax]                                                     ; +0x68, 0x180006a78\ntest    edx, edx                                                       ; +0x6a, 0x180006a7a\ncmovnz  edi, edx                                                       ; +0x6c, 0x180006a7c\nlea     rcx, [rsi+38h]                                                 ; +0x6f, 0x180006a7f\ncall    sub_1800A16E0                                                  ; +0x73, 0x180006a83\nmov     ecx, edi; Count                                                ; +0x78, 0x180006a88\ncall    sub_1800A1920                                                  ; +0x7a, 0x180006a8a\nmov     [rsi+38h], rax                                                 ; +0x7f, 0x180006a8f\nmov     rbx, [rbp+38h]                                                 ; +0x83, 0x180006a93\nmov     eax, [rbx]                                                     ; +0x87, 0x180006a97\ntest    eax, eax                                                       ; +0x89, 0x180006a99\njz      short loc_180006ADD                                            ; +0x8b, 0x180006a9b\nmov     rbx, [rbx+10h]                                                 ; +0x8d, 0x180006a9d\nlea     rbp, [rax-1]                                                   ; +0x91, 0x180006aa1\nlea     rbp, [rbx+rbp*8]                                               ; +0x95, 0x180006aa5\ncmp     rbx, rbp                                                       ; +0x99, 0x180006aa9\nja      short loc_180006ADD                                            ; +0x9c, 0x180006aac\nxchg    ax, ax                                                         ; +0x9e, 0x180006aae\nmov     rcx, [rbx]; this                                               ; +0xa0, 0x180006ab0\ntest    rcx, rcx                                                       ; +0xa3, 0x180006ab3\njz      short loc_180006ADD                                            ; +0xa6, 0x180006ab6\ncall    ?copy@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::copy(void) ; +0xa8, 0x180006ab8\nmov     rdi, rax                                                       ; +0xad, 0x180006abd\nmov     rdx, rax                                                       ; +0xb0, 0x180006ac0\nmov     rcx, [rsi+38h]                                                 ; +0xb3, 0x180006ac3\ncall    sub_1800A12A0                                                  ; +0xb7, 0x180006ac7\nmov     rcx, rdi; this                                                 ; +0xbc, 0x180006acc\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xbf, 0x180006acf\nadd     rbx, 8                                                         ; +0xc4, 0x180006ad4\ncmp     rbx, rbp                                                       ; +0xc8, 0x180006ad8\njbe     short loc_180006AB0                                            ; +0xcb, 0x180006adb\nmov     rax, rsi                                                       ; +0xcd, 0x180006add\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xd0, 0x180006ae0\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xd5, 0x180006ae5\nadd     rsp, 20h                                                       ; +0xda, 0x180006aea\npop     r14                                                            ; +0xde, 0x180006aee\npop     rdi                                                            ; +0xe0, 0x180006af0\npop     rsi                                                            ; +0xe1, 0x180006af1\nretn                                                                   ; +0xe2, 0x180006af2", "xrefs": ["<???> @ 0x1800ec310", "<???> @ 0x18014cf68", "<???> @ 0x1801b7930"], "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"}