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

```asm
<stb_hash_fast>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jle    L126
  cmpq   $0x0,-0x8(%rbp)
  jne    L55
L126:
  mov    $0x0,%eax
  jmp    L105
L55:
  mov    -0x8(%rbp),%rax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L83
  jmp    L74
L99:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %edx,%eax
  shl    $0xb,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0x10,%eax
  xor    -0x14(%rbp),%eax
  xor    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  addq   $0x4,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0x14(%rbp)
  subl   $0x4,-0x2c(%rbp)
L74:
  cmpl   $0x3,-0x2c(%rbp)
  jg     L99
  jmp    L111
L16:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %edx,%eax
  add    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %edx,%eax
  shl    $0xb,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  shl    $0x10,%eax
  xor    -0x14(%rbp),%eax
  xor    -0x10(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  addq   $0x4,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0x14(%rbp)
  subl   $0x4,-0x2c(%rbp)
L83:
  cmpl   $0x3,-0x2c(%rbp)
  jg     L16
L111:
  cmpl   $0x3,-0x2c(%rbp)
  je     L125
  cmpl   $0x3,-0x2c(%rbp)
  jg     L51
  cmpl   $0x2,-0x2c(%rbp)
  je     L128
  cmpl   $0x2,-0x2c(%rbp)
  jg     L51
  cmpl   $0x0,-0x2c(%rbp)
  je     L90
  cmpl   $0x1,-0x2c(%rbp)
  je     L140
  jmp    L51
L125:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %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
  movzbl %al,%eax
  shl    $0x12,%eax
  xor    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  shr    $0xb,%eax
  add    %eax,-0x14(%rbp)
  jmp    L51
L128:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %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    L51
L140:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %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)
  jmp    L51
L90:
  nop
L51:
  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)
  mov    -0x14(%rbp),%eax
L105:
  pop    %rbp
  ret
```

assistant: ```c
unsigned int stb_hash_fast(void *p, int len) {
  unsigned char *q = (unsigned char *)p;
  unsigned int hash = len;
  if (len <= 0 || q == NULL)
    return 0;
  if (((int)q & 1) == 0) {
    for (; len > 3; len -= 4) {
      unsigned int val;
      hash += ((q)[0] + ((q)[1] << 8));
      val = (((q + 2)[0] + ((q + 2)[1] << 8)) << 11);
      hash = (hash << 16) ^ hash ^ val;
      q += 4;
      hash += hash >> 11;
    }
  } else {
    for (; len > 3; len -= 4) {
      unsigned int val;
      hash += ((q)[0] + ((q)[1] << 8));
      val = (((q + 2)[0] + ((q + 2)[1] << 8)) << 11);
      hash = (hash << 16) ^ hash ^ val;
      q += 4;
      hash += hash >> 11;
    }
  }
  switch (len) {
  case 3:
    hash += ((q)[0] + ((q)[1] << 8));
    hash ^= hash << 16;
    hash ^= q[2] << 18;
    hash += hash >> 11;
    break;
  case 2:
    hash += ((q)[0] + ((q)[1] << 8));
    hash ^= hash << 11;
    hash += hash >> 17;
    break;
  case 1:
    hash += q[0];
    hash ^= hash << 10;
    hash += hash >> 1;
    break;
  case 0:
    break;
  }
  hash ^= hash << 3;
  hash += hash >> 5;
  hash ^= hash << 4;
  hash += hash >> 17;
  hash ^= hash << 25;
  hash += hash >> 6;
  return hash;
}
```