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

```asm
<caf_shash_js>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x4e67c6a7,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L86
  cmpl   $0x0,-0x2c(%rbp)
  jle    L86
  mov    -0x2c(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jle    L19
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L55
L1:
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  sar    $0x2,%eax
  add    %edx,%eax
  xor    %eax,-0x1c(%rbp)
  addq   $0x4,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
L55:
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L1
  mov    -0x2c(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  test   %eax,%eax
  jle    L94
  shll   $0x2,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  sub    %edx,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L68
L17:
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  sar    $0x2,%eax
  add    %edx,%eax
  xor    %eax,-0x1c(%rbp)
  addq   $0x1,-0x8(%rbp)
  addl   $0x1,-0x18(%rbp)
L68:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L17
  jmp    L94
L19:
  movl   $0x0,-0x18(%rbp)
  jmp    L13
L118:
  mov    -0x1c(%rbp),%eax
  shl    $0x5,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  sar    $0x2,%eax
  add    %edx,%eax
  xor    %eax,-0x1c(%rbp)
  addq   $0x1,-0x8(%rbp)
  addl   $0x1,-0x18(%rbp)
L13:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L118
L94:
  mov    -0x1c(%rbp),%eax
  jmp    L88
L86:
  mov    $0x0,%eax
L88:
  pop    %rbp
  ret
```

assistant: ```c
u_int caf_shash_js(const char *str, const u_int len) {
  u_int32_t hash = 1315423911;
  u_int32_t i = 0;
  u_int32_t i32b = 0;
  u_int32_t *i32p = (u_int32_t *)NULL;
  char *ptr = (char *)str;
  if (ptr != (const char *)NULL && len > 0) {
    i32b = len / 4;
    if (i32b > 0) {
      i32p = (u_int32_t *)ptr;
      for (i = 0; i < i32b; i32p++, i++) {
        hash ^= ((hash << 5) + (*i32p) + (hash >> 2));
      }
      if ((len % 4) > 0) {
        i32b *= 4;
        ptr = (char *)((size_t)i32b + (size_t)ptr);
        for (i = (len - (len % 4)); i < len; ptr++, i++) {
          hash ^= ((hash << 5) + (u_int32_t)(*ptr) + (hash >> 2));
        }
      }
    } else {
      for (i = 0; i < len; ptr++, i++) {
        hash ^= ((hash << 5) + (u_int32_t)(*ptr) + (hash >> 2));
      }
    }
    return hash;
  }
  return 0;
}
```