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

```asm
<ring_jen_hash>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x9e3779b9,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L18
L23:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  add    %edx,%eax
  add    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  add    %edx,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x18(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0xb,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  add    %edx,%eax
  add    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0xd,%eax
  xor    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0x8,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xd,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0xc,%eax
  xor    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0x10,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x5,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0x3,%eax
  xor    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0xa,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xf,%eax
  xor    %eax,-0x8(%rbp)
  addq   $0xc,-0x18(%rbp)
  subl   $0xc,-0x4(%rbp)
L18:
  cmpl   $0xb,-0x4(%rbp)
  ja     L23
  mov    -0x1c(%rbp),%eax
  add    %eax,-0x8(%rbp)
  cmpl   $0xb,-0x4(%rbp)
  ja     L12
  mov    -0x4(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D13(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D13(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x18(%rbp),%rax
  add    $0xa,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  add    %eax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x9,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  add    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  add    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x10(%rbp)
L12:
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0xd,%eax
  xor    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0x8,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xd,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0xc,%eax
  xor    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0x10,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x5,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  shr    $0x3,%eax
  xor    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  shl    $0xa,%eax
  xor    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0xf,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
unsigned ring_jen_hash(unsigned char *k, unsigned length, unsigned initval) {
  unsigned a, b;
  unsigned c = initval;
  unsigned len = length;
  a = b = 0x9e3779b9;
  while (len >= 12) {
    a += (k[0] + ((unsigned)k[1] << 8) + ((unsigned)k[2] << 16) + ((unsigned)k[3] << 24));
    b += (k[4] + ((unsigned)k[5] << 8) + ((unsigned)k[6] << 16) + ((unsigned)k[7] << 24));
    c += (k[8] + ((unsigned)k[9] << 8) + ((unsigned)k[10] << 16) + ((unsigned)k[11] << 24));
    {
      a -= b;
      a -= c;
      a ^= (c >> 13);
      b -= c;
      b -= a;
      b ^= (a << 8);
      c -= a;
      c -= b;
      c ^= (b >> 13);
      a -= b;
      a -= c;
      a ^= (c >> 12);
      b -= c;
      b -= a;
      b ^= (a << 16);
      c -= a;
      c -= b;
      c ^= (b >> 5);
      a -= b;
      a -= c;
      a ^= (c >> 3);
      b -= c;
      b -= a;
      b ^= (a << 10);
      c -= a;
      c -= b;
      c ^= (b >> 15);
    };
    k += 12;
    len -= 12;
  }
  c += length;
  switch (len) {
  case 11:
    c += ((unsigned)k[10] << 24);
  case 10:
    c += ((unsigned)k[9] << 16);
  case 9:
    c += ((unsigned)k[8] << 8);
  case 8:
    b += ((unsigned)k[7] << 24);
  case 7:
    b += ((unsigned)k[6] << 16);
  case 6:
    b += ((unsigned)k[5] << 8);
  case 5:
    b += k[4];
  case 4:
    a += ((unsigned)k[3] << 24);
  case 3:
    a += ((unsigned)k[2] << 16);
  case 2:
    a += ((unsigned)k[1] << 8);
  case 1:
    a += k[0];
  }
  {
    a -= b;
    a -= c;
    a ^= (c >> 13);
    b -= c;
    b -= a;
    b ^= (a << 8);
    c -= a;
    c -= b;
    c ^= (b >> 13);
    a -= b;
    a -= c;
    a ^= (c >> 12);
    b -= c;
    b -= a;
    b ^= (a << 16);
    c -= a;
    c -= b;
    c ^= (b >> 5);
    a -= b;
    a -= c;
    a ^= (c >> 3);
    b -= c;
    b -= a;
    b ^= (a << 10);
    c -= a;
    c -= b;
    c ^= (b >> 15);
  };
  return c;
}
```