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

```asm
<hash4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x8(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x7,%rax
  ja     L9
  lea    0x0(,%rax,4),%rdx
  lea    D10(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D10(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
L18:
  nop
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  subq   $0x1,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L18
L9:
  mov    -0x1c(%rbp),%eax
  mov    $0x0,%edx
  divl   -0x2c(%rbp)
  mov    %edx,%eax
  leave
  ret
```

assistant: ```c
unsigned int hash4(const void *data, unsigned int size) {
  const char *key = data;
  size_t loop;
  unsigned int h;
  size_t len;
  h = 0;
  len = strlen(key);
  loop = (len + 8 - 1) >> 3;
  switch (len & (8 - 1)) {
  case 0:
    do {
      h = (h << 5) + h + *key++;
      ;
    case 7:
      h = (h << 5) + h + *key++;
      ;
    case 6:
      h = (h << 5) + h + *key++;
      ;
    case 5:
      h = (h << 5) + h + *key++;
      ;
    case 4:
      h = (h << 5) + h + *key++;
      ;
    case 3:
      h = (h << 5) + h + *key++;
      ;
    case 2:
      h = (h << 5) + h + *key++;
      ;
    case 1:
      h = (h << 5) + h + *key++;
      ;
    } while (--loop);
  }
  return h % size;
}
```