{"type": "func", "start": 6443113728, "end": 6443113789, "name": "sub_1800A1D00", "pseudocode": "// \n// sub_1800A1D00 from 0x1800a1d00 to 0x1800a1d3d (61 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCArray::reduceMemoryFootprint @ 0x180007324\n// > <???> @ 0x1801c17b8\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_1800A1D00(unsigned int *a1)\n{\n  void *result; // rax\n  unsigned int v3; // ecx\n  void *v4; // rcx\n\n  result = (void *)*a1;\n  v3 = a1[1];\n  if ( v3 > (unsigned int)result )\n  {\n    if ( !(_DWORD)result )\n    {\n      if ( v3 == 1 )\n        return result;\n      LODWORD(result) = 1;\n    }\n    v4 = *((void **)a1 + 2);\n    a1[1] = (unsigned int)result;\n    result = realloc(v4, 8LL * (unsigned int)result);\n    *((_QWORD *)a1 + 2) = result;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800A1D00 from 0x1800a1d00 to 0x1800a1d3d (61 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCArray::reduceMemoryFootprint @ 0x180007324\n; > <???> @ 0x1801c17b8\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; \npush    rbx                                                            ; +0x0, 0x1800a1d00\nsub     rsp, 20h                                                       ; +0x2, 0x1800a1d02\nmov     eax, [rcx]                                                     ; +0x6, 0x1800a1d06\nmov     rbx, rcx                                                       ; +0x8, 0x1800a1d08\nmov     ecx, [rcx+4]                                                   ; +0xb, 0x1800a1d0b\ncmp     ecx, eax                                                       ; +0xe, 0x1800a1d0e\njbe     short loc_1800A1D37                                            ; +0x10, 0x1800a1d10\ntest    eax, eax                                                       ; +0x12, 0x1800a1d12\njnz     short loc_1800A1D20                                            ; +0x14, 0x1800a1d14\ncmp     ecx, 1                                                         ; +0x16, 0x1800a1d16\njz      short loc_1800A1D37                                            ; +0x19, 0x1800a1d19\nmov     eax, 1                                                         ; +0x1b, 0x1800a1d1b\nmov     rcx, [rbx+10h]; Block                                          ; +0x20, 0x1800a1d20\nmov     edx, eax                                                       ; +0x24, 0x1800a1d24\nshl     rdx, 3; Size                                                   ; +0x26, 0x1800a1d26\nmov     [rbx+4], eax                                                   ; +0x2a, 0x1800a1d2a\ncall    cs:realloc                                                     ; +0x2d, 0x1800a1d2d\nmov     [rbx+10h], rax                                                 ; +0x33, 0x1800a1d33\nadd     rsp, 20h                                                       ; +0x37, 0x1800a1d37\npop     rbx                                                            ; +0x3b, 0x1800a1d3b\nretn                                                                   ; +0x3c, 0x1800a1d3c", "xrefs": ["cocos2d::CCArray::reduceMemoryFootprint @ 0x180007324", "<???> @ 0x1801c17b8"], "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"}