user: 请将以下的汇编代码转换成C语言代码：

```asm
<hash>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %eax,-0xc(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L89
  cmpq   $0x0,-0x18(%rbp)
  jne    L63
L89:
  mov    $0x0,%eax
  jmp    L42
L63:
  mov    -0x20(%rbp),%rax
  and    $0x3,%eax
  mov    %eax,-0x8(%rbp)
  shrq   $0x2,-0x20(%rbp)
  jmp    L6
L8:
  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
  sar    $0xb,%eax
  add    %eax,-0xc(%rbp)
  subq   $0x1,-0x20(%rbp)
L6:
  cmpq   $0x0,-0x20(%rbp)
  jne    L8
  cmpl   $0x3,-0x8(%rbp)
  je     L43
  cmpl   $0x3,-0x8(%rbp)
  jg     L49
  cmpl   $0x1,-0x8(%rbp)
  je     L47
  cmpl   $0x2,-0x8(%rbp)
  je     L56
  jmp    L49
L43:
  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
  sar    $0xb,%eax
  add    %eax,-0xc(%rbp)
  jmp    L49
L56:
  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
  sar    $0x11,%eax
  add    %eax,-0xc(%rbp)
  jmp    L49
L47:
  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
  sar    %eax
  add    %eax,-0xc(%rbp)
L49:
  mov    -0xc(%rbp),%eax
  shl    $0x3,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  sar    $0x5,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x4,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  sar    $0x11,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shl    $0x19,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  sar    $0x6,%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
L42:
  pop    %rbp
  ret
```

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