user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<Hsieh>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x1c(%rbp),%eax
  and    $0x3,%eax
  mov    %eax,-0x8(%rbp)
  shrl   $0x2,-0x1c(%rbp)
  jmp    L53
L32:
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  add    %edx,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0xa,%rax
  mov    (%rax),%rax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  mov    (%rax),%rax
  add    %edx,%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   $0x8,-0x18(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0xc(%rbp)
  subl   $0x1,-0x1c(%rbp)
L53:
  cmpl   $0x0,-0x1c(%rbp)
  jne    L32
  cmpl   $0x3,-0x8(%rbp)
  je     L12
  cmpl   $0x3,-0x8(%rbp)
  jg     L1
  cmpl   $0x1,-0x8(%rbp)
  je     L89
  cmpl   $0x2,-0x8(%rbp)
  je     L4
  jmp    L1
L12:
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  add    %edx,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x10,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x4,%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    L1
L4:
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  add    %edx,%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    L1
L89:
  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)
L1:
  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
  pop    %rbp
  ret
```

assistant: ```c
unsigned int Hsieh(const unsigned char *str, unsigned int len) {
  unsigned int hash = len, tmp;
  int rem;
  rem = len & 3;
  len >>= 2;
  for (; len > 0; len--) {
    hash += ((((uint32_t)(((const uint8_t *)(str))[1])) << 8) + (uint32_t)(((const uint8_t *)(str))[0]));
    tmp = (((((uint32_t)(((const uint8_t *)(str + 2))[1])) << 8) + (uint32_t)(((const uint8_t *)(str + 2))[0])) << 11) ^ hash;
    hash = (hash << 16) ^ tmp;
    str += 2 * sizeof(uint16_t);
    hash += hash >> 11;
  }
  switch (rem) {
  case 3:
    hash += ((((uint32_t)(((const uint8_t *)(str))[1])) << 8) + (uint32_t)(((const uint8_t *)(str))[0]));
    hash ^= hash << 16;
    hash ^= ((signed char)str[sizeof(uint16_t)]) << 18;
    hash += hash >> 11;
    break;
  case 2:
    hash += ((((uint32_t)(((const uint8_t *)(str))[1])) << 8) + (uint32_t)(((const uint8_t *)(str))[0]));
    hash ^= hash << 11;
    hash += hash >> 17;
    break;
  case 1:
    hash += (signed char)*str;
    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;
}
```