user: Translate the below assembly code into C programming language:

```asm
<AlcStrSFHash>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  movl   $0x0,-0x14(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L38
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L38
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  and    $0x3,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  shrl   $0x2,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L21
L56:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  or     %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  or     %edx,%eax
  shl    $0xb,%eax
  xor    -0x14(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0x10,%eax
  xor    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0x14(%rbp)
  addq   $0x4,-0x8(%rbp)
  subl   $0x1,-0x18(%rbp)
L21:
  cmpl   $0x0,-0x18(%rbp)
  jne    L56
  cmpl   $0x3,-0x10(%rbp)
  je     L106
  cmpl   $0x3,-0x10(%rbp)
  ja     L35
  cmpl   $0x1,-0x10(%rbp)
  je     L5
  cmpl   $0x2,-0x10(%rbp)
  je     L8
  jmp    L35
L106:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  or     %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0x10,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x12,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0x14(%rbp)
  jmp    L48
L8:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  or     %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0xb,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0x11,%eax
  add    %eax,-0x14(%rbp)
  jmp    L48
L5:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0xa,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    %eax
  add    %eax,-0x14(%rbp)
L35:
  nop
L48:
  mov    -0x14(%rbp),%eax
  shl    $0x3,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0x5,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0x4,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0x11,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0x19,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0x6,%eax
  add    %eax,-0x14(%rbp)
L38:
  mov    -0x14(%rbp),%eax
  leave
  ret
```

assistant: ```c
unsigned int AlcStrSFHash(const char *str) {
  unsigned int l, r, t, h = 0;
  const char *s;
  if (str && *str) {
    l = strlen(str);
    r = l & 3;
    h = l;
    l >>= 2;
    s = str;
    while (l > 0) {
      h += (s[1] << 8) | s[0];
      t = (((s[3] << 8) | s[2]) << 11) ^ h;
      h = (h << 16) ^ t;
      h += h >> 11;
      s += 4;
      --l;
    }
    switch (r) {
    case 3:
      h += (s[1] << 8) | s[0];
      h ^= h << 16;
      h ^= s[2] << 18;
      h += h >> 11;
      break;
    case 2:
      h += (s[1] << 8) | s[0];
      h ^= h << 11;
      h += h >> 17;
      break;
    case 1:
      h += s[0];
      h ^= h << 10;
      h += h >> 1;
    default:
      break;
    }
    h ^= h << 3;
    h += h >> 5;
    h ^= h << 4;
    h += h >> 17;
    h ^= h << 25;
    h += h >> 6;
  }
  return (h);
}
```