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

```asm
<jhash2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  movl   $0x9e3779b9,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L27
L5:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%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
  sar    $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
  sar    $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
  sar    $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
  sar    $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
  sar    $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
  sar    $0xf,%eax
  xor    %eax,-0x8(%rbp)
  addq   $0xc,-0x18(%rbp)
  subl   $0x3,-0x4(%rbp)
L27:
  cmpl   $0x2,-0x4(%rbp)
  jg     L5
  mov    -0x1c(%rbp),%eax
  shl    $0x2,%eax
  add    %eax,-0x8(%rbp)
  cmpl   $0x1,-0x4(%rbp)
  je     L19
  cmpl   $0x2,-0x4(%rbp)
  jne    L18
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    %eax,-0xc(%rbp)
L19:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x10(%rbp)
L18:
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sub    %eax,-0x10(%rbp)
  mov    -0x8(%rbp),%eax
  sar    $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
  sar    $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
  sar    $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
  sar    $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
  sar    $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
  sar    $0xf,%eax
  xor    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
uint32_t jhash2(const uint32_t *k, uint32_t length, uint32_t initval) {
  uint32_t a, b, c, len;
  a = b = 0x9e3779b9;
  c = initval;
  len = length;
  while (len >= 3) {
    a += k[0];
    b += k[1];
    c += k[2];
    {
      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 += 3;
    len -= 3;
  }
  c += length * 4;
  switch (len) {
  case 2:
    b += k[1];
  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;
}
```