{"type": "func", "start": 6443110864, "end": 6443111022, "name": "sub_1800A11D0", "pseudocode": "// \n// sub_1800A11D0 from 0x1800a11d0 to 0x1800a126e (158 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCArray::addObjectsFromArray @ 0x1800069e8\n// > cocos2d::CCArray::initWithArray @ 0x1800070bd\n// > <???> @ 0x1801c1668\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:22:13 +0000\n// \n\nvoid __fastcall sub_1800A11D0(unsigned int *a1, int *a2)\n{\n  int v2; // edi\n  unsigned int i; // edx\n  void *v6; // rcx\n  __int64 j; // rsi\n  cocos2d::CCObject *v8; // rdi\n\n  v2 = *a2;\n  for ( i = a1[1]; i < v2 + *a1; i = a1[1] )\n  {\n    v6 = *((void **)a1 + 2);\n    a1[1] = 2 * i;\n    *((_QWORD *)a1 + 2) = realloc(v6, 16LL * i);\n  }\n  for ( j = 0; (unsigned int)j < *a2; ++*a1 )\n  {\n    v8 = *(cocos2d::CCObject **)(*((_QWORD *)a2 + 2) + 8 * j);\n    cocos2d::CCObject::retain(v8);\n    j = (unsigned int)(j + 1);\n    *(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * *a1) = v8;\n  }\n}", "assembly": "; \n; sub_1800A11D0 from 0x1800a11d0 to 0x1800a126e (158 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCArray::addObjectsFromArray @ 0x1800069e8\n; > cocos2d::CCArray::initWithArray @ 0x1800070bd\n; > <???> @ 0x1801c1668\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:22:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a11d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a11d5\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x1800a11da\nmov     [rsp+arg_18], r14                                              ; +0xf, 0x1800a11df\npush    r15                                                            ; +0x14, 0x1800a11e4\nsub     rsp, 20h                                                       ; +0x16, 0x1800a11e6\nmov     edi, [rdx]                                                     ; +0x1a, 0x1800a11ea\nmov     rbx, rcx                                                       ; +0x1c, 0x1800a11ec\nmov     r15, rdx                                                       ; +0x1f, 0x1800a11ef\nmov     edx, [rcx+4]                                                   ; +0x22, 0x1800a11f2\nmov     ecx, [rcx]                                                     ; +0x25, 0x1800a11f5\nadd     ecx, edi                                                       ; +0x27, 0x1800a11f7\ncmp     edx, ecx                                                       ; +0x29, 0x1800a11f9\njnb     short loc_1800A1225                                            ; +0x2b, 0x1800a11fb\nnop     dword ptr [rax]                                                ; +0x2d, 0x1800a11fd\nmov     rcx, [rbx+10h]; Block                                          ; +0x30, 0x1800a1200\nlea     eax, [rdx+rdx]                                                 ; +0x34, 0x1800a1204\nmov     edx, eax                                                       ; +0x37, 0x1800a1207\nshl     rdx, 3; Size                                                   ; +0x39, 0x1800a1209\nmov     [rbx+4], eax                                                   ; +0x3d, 0x1800a120d\ncall    cs:realloc                                                     ; +0x40, 0x1800a1210\nmov     [rbx+10h], rax                                                 ; +0x46, 0x1800a1216\nmov     ecx, [rbx]                                                     ; +0x4a, 0x1800a121a\nmov     edx, [rbx+4]                                                   ; +0x4c, 0x1800a121c\nadd     ecx, edi                                                       ; +0x4f, 0x1800a121f\ncmp     edx, ecx                                                       ; +0x51, 0x1800a1221\njb      short loc_1800A1200                                            ; +0x53, 0x1800a1223\nxor     esi, esi                                                       ; +0x55, 0x1800a1225\ncmp     [r15], esi                                                     ; +0x57, 0x1800a1227\njbe     short loc_1800A1253                                            ; +0x5a, 0x1800a122a\nnop     dword ptr [rax+00h]                                            ; +0x5c, 0x1800a122c\nmov     rax, [r15+10h]                                                 ; +0x60, 0x1800a1230\nmov     rdi, [rax+rsi*8]                                               ; +0x64, 0x1800a1234\nmov     rcx, rdi; this                                                 ; +0x68, 0x1800a1238\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x6b, 0x1800a123b\nmov     ecx, [rbx]                                                     ; +0x70, 0x1800a1240\ninc     esi                                                            ; +0x72, 0x1800a1242\nmov     rax, [rbx+10h]                                                 ; +0x74, 0x1800a1244\nmov     [rax+rcx*8], rdi                                               ; +0x78, 0x1800a1248\ninc     dword ptr [rbx]                                                ; +0x7c, 0x1800a124c\ncmp     esi, [r15]                                                     ; +0x7e, 0x1800a124e\njb      short loc_1800A1230                                            ; +0x81, 0x1800a1251\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x1800a1253\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x88, 0x1800a1258\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x8d, 0x1800a125d\nmov     r14, [rsp+28h+arg_18]                                          ; +0x92, 0x1800a1262\nadd     rsp, 20h                                                       ; +0x97, 0x1800a1267\npop     r15                                                            ; +0x9b, 0x1800a126b\nretn                                                                   ; +0x9d, 0x1800a126d", "xrefs": ["cocos2d::CCArray::addObjectsFromArray @ 0x1800069e8", "cocos2d::CCArray::initWithArray @ 0x1800070bd", "<???> @ 0x1801c1668"], "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"}