user: Please show me the C implementation that matches the assembly code listed below:

```asm
<hsiehHash>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jle    L57
  cmpq   $0x0,-0x18(%rbp)
  je     L57
  mov    $0x1,%eax
  jmp    L36
L57:
  mov    $0x0,%eax
L36:
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x1c(%rbp),%eax
  and    $0x3,%eax
  mov    %eax,-0x8(%rbp)
  sarl   $0x2,-0x1c(%rbp)
  jmp    L3
L69:
  mov    -0x18(%rbp),%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  shl    $0xb,%eax
  xor    -0xc(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x10,%eax
  xor    -0x4(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  addq   $0x4,-0x18(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0xc(%rbp)
  subl   $0x1,-0x1c(%rbp)
L3:
  cmpl   $0x0,-0x1c(%rbp)
  jg     L69
  cmpl   $0x3,-0x8(%rbp)
  je     L96
  cmpl   $0x3,-0x8(%rbp)
  jg     L8
  cmpl   $0x1,-0x8(%rbp)
  je     L1
  cmpl   $0x2,-0x8(%rbp)
  je     L9
  jmp    L8
L96:
  mov    -0x18(%rbp),%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x10,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x12,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0xc(%rbp)
  jmp    L8
L9:
  mov    -0x18(%rbp),%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0xb,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x11,%eax
  add    %eax,-0xc(%rbp)
  jmp    L8
L1:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0xa,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    %eax
  add    %eax,-0xc(%rbp)
L8:
  mov    -0xc(%rbp),%eax
  shl    $0x3,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x5,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x11,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x19,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x6,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  leave
  ret
```

assistant: ```c
unsigned int hsiehHash(const char *data, int len) {
  unsigned int hash = len, tmp;
  int rem;
  assert(len > 0 && data != NULL);
  rem = len & 3;
  len >>= 2;
  for (; len > 0; len--) {
    hash += (*((const unsigned short *)(data)));
    tmp = ((*((const unsigned short *)(data + 2))) << 11) ^ hash;
    hash = (hash << 16) ^ tmp;
    data += 2 * sizeof(unsigned short);
    hash += hash >> 11;
  }
  switch (rem) {
  case 3:
    hash += (*((const unsigned short *)(data)));
    hash ^= hash << 16;
    hash ^= data[sizeof(unsigned short)] << 18;
    hash += hash >> 11;
    break;
  case 2:
    hash += (*((const unsigned short *)(data)));
    hash ^= hash << 11;
    hash += hash >> 17;
    break;
  case 1:
    hash += *data;
    hash ^= hash << 10;
    hash += hash >> 1;
  }
  hash ^= hash << 3;
  hash += hash >> 5;
  hash ^= hash << 4;
  hash += hash >> 17;
  hash ^= hash << 25;
  hash += hash >> 6;
  return hash;
}
```