user: What is the c source code of the assembly code below:

```asm
<htrehash>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x68(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <htalloc@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <malloc_usable_size@plt>
  cltq
  mov    -0x68(%rbp),%rdx
  add    $0x7,%rdx
  and    $0xfffffffffffffff8,%rdx
  lea    0x8(%rdx),%rcx
  mov    $0x0,%edx
  div    %rcx
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  jne    L33
  mov    $0x0,%eax
  jmp    L78
L33:
  movq   $0x0,-0x40(%rbp)
  jmp    L103
L14:
  mov    -0x68(%rbp),%rax
  add    $0x7,%rax
  and    $0xfffffffffffffff8,%rax
  add    $0x8,%rax
  imul   -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L29
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <strhash@plt>
  mov    %rax,-0x18(%rbp)
  movq   $0x0,-0x48(%rbp)
  jmp    L44
L38:
  mov    -0x18(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    $0x0,%edx
  divq   -0x60(%rbp)
  mov    %rdx,-0x10(%rbp)
  mov    -0x68(%rbp),%rax
  add    $0x7,%rax
  and    $0xfffffffffffffff8,%rax
  add    $0x8,%rax
  imul   -0x10(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L102
  mov    -0x68(%rbp),%rax
  add    $0x7,%eax
  and    $0xfffffff8,%eax
  add    $0x8,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L26
L102:
  addq   $0x5,-0x48(%rbp)
L44:
  mov    -0x48(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jb     L38
L26:
  mov    -0x48(%rbp),%rax
  cmp    -0x60(%rbp),%rax
  jne    L11
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x38(%rbp),%rax
  jmp    L78
L29:
  nop
L11:
  addq   $0x1,-0x40(%rbp)
L103:
  mov    -0x40(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jb     L14
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%rax
L78:
  leave
  ret
```

assistant: ```c
void *htrehash(void *table, size_t new_cap, size_t size) {
  void *old = table;
  void *new = htalloc(new_cap, size);
  size_t i, j, index, hash;
  void *old_slot, *new_slot;
  size_t old_cap = (malloc_usable_size(table) / (sizeof(const char *) + (((size) + ((sizeof(void *)) - 1)) & ~((sizeof(void *)) - 1))));
  if (!new)
    return NULL;
  for (j = 0; j < old_cap; j++) {
    old_slot = ((old) + j * (sizeof(const char *) + (((size) + ((sizeof(void *)) - 1)) & ~((sizeof(void *)) - 1))));
    if (!(*(const char **)((old_slot) + 0)))
      continue;
    hash = strhash((*(const char **)((old_slot) + 0)));
    for (i = 0; i < new_cap; i += (5)) {
      index = (hash + i) % new_cap;
      new_slot = ((new) + index * (sizeof(const char *) + (((size) + ((sizeof(void *)) - 1)) & ~((sizeof(void *)) - 1))));
      if (!(*(const char **)((new_slot) + 0))) {
        memcpy(new_slot, old_slot, (sizeof(const char *) + (((size) + ((sizeof(void *)) - 1)) & ~((sizeof(void *)) - 1))));
        break;
      }
    }
    if (i == new_cap) {
      free(new);
      return old;
    }
  }
  free(old);
  return new;
}
```