user: 下面的汇编指令对应的C源代码是什么:

```asm
<caf_shash_elf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x14(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L140
  cmpl   $0x0,-0x2c(%rbp)
  jle    L140
  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    L29
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L112
L10:
  mov    -0x20(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  and    $0xf0000000,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L134
  mov    -0x18(%rbp),%eax
  sar    $0x18,%eax
  xor    %eax,-0x20(%rbp)
L134:
  mov    -0x18(%rbp),%eax
  not    %eax
  and    %eax,-0x20(%rbp)
  addq   $0x4,-0x10(%rbp)
  addl   $0x1,-0x1c(%rbp)
L112:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L10
  mov    -0x2c(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  test   %eax,%eax
  jle    L4
  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,-0x1c(%rbp)
  jmp    L35
L11:
  mov    -0x20(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  and    $0xf0000000,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L41
  mov    -0x18(%rbp),%eax
  sar    $0x18,%eax
  xor    %eax,-0x20(%rbp)
L41:
  mov    -0x18(%rbp),%eax
  not    %eax
  and    %eax,-0x20(%rbp)
  addq   $0x1,-0x8(%rbp)
  addl   $0x1,-0x1c(%rbp)
L35:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L11
  jmp    L4
L29:
  movl   $0x0,-0x1c(%rbp)
  jmp    L102
L97:
  mov    -0x20(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  and    $0xf0000000,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L128
  mov    -0x18(%rbp),%eax
  sar    $0x18,%eax
  xor    %eax,-0x20(%rbp)
L128:
  mov    -0x18(%rbp),%eax
  not    %eax
  and    %eax,-0x20(%rbp)
  addq   $0x1,-0x8(%rbp)
  addl   $0x1,-0x1c(%rbp)
L102:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L97
L4:
  mov    -0x20(%rbp),%eax
  jmp    L60
L140:
  mov    $0x0,%eax
L60:
  pop    %rbp
  ret
```

assistant: ```c
u_int caf_shash_elf(const char *str, const u_int len) {
  u_int32_t hash = 0;
  u_int32_t x = 0;
  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 << 4) + (u_int32_t)(*i32p);
        if ((x = hash & 0xF0000000L) != 0) {
          hash ^= (x >> 24);
        }
        hash &= ~x;
      }
      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 << 4) + (u_int32_t)(*ptr);
          if ((x = hash & 0xF0000000L) != 0) {
            hash ^= (x >> 24);
          }
          hash &= ~x;
        }
      }
    } else {
      for (i = 0; i < len; ptr++, i++) {
        hash = (hash << 4) + (u_int32_t)(*ptr);
        if ((x = hash & 0xF0000000L) != 0) {
          hash ^= (x >> 24);
        }
        hash &= ~x;
      }
    }
    return hash;
  }
  return 0;
}
```