{"type": "func", "start": 6443098224, "end": 6443098285, "name": "sub_18009E070", "pseudocode": "// \n// sub_18009E070 from 0x18009e070 to 0x18009e0ad (61 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCArray::reduceMemoryFootprint @ 0x1800071d4\n// > <???> @ 0x1801b7518\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\nvoid *__fastcall sub_18009E070(unsigned int *a1)\n{\n  unsigned int v2; // ecx\n  void *result; // rax\n  void *v4; // rcx\n\n  v2 = a1[1];\n  result = (void *)*a1;\n  if ( v2 > (unsigned int)result )\n  {\n    if ( !(_DWORD)result )\n    {\n      if ( v2 == 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_18009E070 from 0x18009e070 to 0x18009e0ad (61 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCArray::reduceMemoryFootprint @ 0x1800071d4\n; > <???> @ 0x1801b7518\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\npush    rbx                                                            ; +0x0, 0x18009e070\nsub     rsp, 20h                                                       ; +0x2, 0x18009e072\nmov     rbx, rcx                                                       ; +0x6, 0x18009e076\nmov     ecx, [rcx+4]                                                   ; +0x9, 0x18009e079\nmov     eax, [rbx]                                                     ; +0xc, 0x18009e07c\ncmp     ecx, eax                                                       ; +0xe, 0x18009e07e\njbe     short loc_18009E0A7                                            ; +0x10, 0x18009e080\ntest    eax, eax                                                       ; +0x12, 0x18009e082\njnz     short loc_18009E090                                            ; +0x14, 0x18009e084\ncmp     ecx, 1                                                         ; +0x16, 0x18009e086\njz      short loc_18009E0A7                                            ; +0x19, 0x18009e089\nmov     eax, 1                                                         ; +0x1b, 0x18009e08b\nmov     rcx, [rbx+10h]; Block                                          ; +0x20, 0x18009e090\nmov     edx, eax                                                       ; +0x24, 0x18009e094\nshl     rdx, 3; Size                                                   ; +0x26, 0x18009e096\nmov     [rbx+4], eax                                                   ; +0x2a, 0x18009e09a\ncall    cs:realloc                                                     ; +0x2d, 0x18009e09d\nmov     [rbx+10h], rax                                                 ; +0x33, 0x18009e0a3\nadd     rsp, 20h                                                       ; +0x37, 0x18009e0a7\npop     rbx                                                            ; +0x3b, 0x18009e0ab\nretn                                                                   ; +0x3c, 0x18009e0ac", "xrefs": ["cocos2d::CCArray::reduceMemoryFootprint @ 0x1800071d4", "<???> @ 0x1801b7518"], "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"}