user: Converte this assembly snippet into its equivalent C code:

```asm
<jhash>:
  endbr64
  mov    %edx,%ecx
  cmp    $0xb,%esi
  jbe    L25
  mov    %esi,%r8d
  mov    $0x9e3779b9,%r10d
  mov    $0x9e3779b9,%r9d
  xchg   %ax,%ax
L0:
  movsbl 0x5(%rdi),%edx
  movsbl 0x6(%rdi),%eax
  shl    $0x8,%edx
  shl    $0x10,%eax
  add    %eax,%edx
  movsbl 0x4(%rdi),%eax
  add    %eax,%edx
  movsbl 0x7(%rdi),%eax
  shl    $0x18,%eax
  add    %eax,%edx
  movsbl 0x9(%rdi),%eax
  add    %r10d,%edx
  movsbl 0xa(%rdi),%r10d
  shl    $0x8,%eax
  shl    $0x10,%r10d
  add    %r10d,%eax
  movsbl 0x8(%rdi),%r10d
  add    %r10d,%eax
  movsbl 0xb(%rdi),%r10d
  shl    $0x18,%r10d
  add    %r10d,%eax
  movsbl 0x2(%rdi),%r10d
  add    %ecx,%eax
  movsbl 0x1(%rdi),%ecx
  shl    $0x10,%r10d
  shl    $0x8,%ecx
  add    %r10d,%ecx
  movsbl (%rdi),%r10d
  add    %r10d,%ecx
  movsbl 0x3(%rdi),%r10d
  shl    $0x18,%r10d
  add    %r10d,%ecx
  sub    %edx,%ecx
  sub    %eax,%edx
  sub    %eax,%ecx
  add    %r9d,%ecx
  mov    %eax,%r9d
  shr    $0xd,%r9d
  xor    %r9d,%ecx
  sub    %ecx,%edx
  sub    %ecx,%eax
  mov    %edx,%r9d
  mov    %ecx,%edx
  shl    $0x8,%edx
  xor    %r9d,%edx
  sub    %edx,%eax
  mov    %eax,%r9d
  mov    %edx,%eax
  shr    $0xd,%eax
  xor    %r9d,%eax
  sub    %edx,%ecx
  sub    $0xc,%r8d
  add    $0xc,%rdi
  sub    %eax,%ecx
  sub    %eax,%edx
  mov    %ecx,%r9d
  mov    %eax,%ecx
  shr    $0xc,%ecx
  xor    %r9d,%ecx
  sub    %ecx,%edx
  sub    %ecx,%eax
  mov    %edx,%r9d
  mov    %ecx,%edx
  shl    $0x10,%edx
  xor    %r9d,%edx
  sub    %edx,%eax
  sub    %edx,%ecx
  mov    %eax,%r9d
  mov    %edx,%eax
  shr    $0x5,%eax
  xor    %r9d,%eax
  mov    %eax,%r9d
  sub    %eax,%ecx
  sub    %eax,%edx
  shr    $0x3,%r9d
  xor    %ecx,%r9d
  mov    %r9d,%r10d
  sub    %r9d,%edx
  sub    %r9d,%eax
  shl    $0xa,%r10d
  xor    %edx,%r10d
  mov    %r10d,%ecx
  sub    %r10d,%eax
  shr    $0xf,%ecx
  xor    %eax,%ecx
  cmp    $0xb,%r8d
  ja     L0
L4:
  add    %esi,%ecx
  cmp    $0xb,%r8d
  ja     L37
  lea    D3(%rip),%rdx
  movslq (%rdx,%r8,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  movsbl 0xa(%rdi),%eax
  shl    $0x18,%eax
  add    %eax,%ecx
  movsbl 0x9(%rdi),%eax
  shl    $0x10,%eax
  add    %eax,%ecx
  movsbl 0x8(%rdi),%eax
  shl    $0x8,%eax
  add    %eax,%ecx
  movsbl 0x7(%rdi),%eax
  shl    $0x18,%eax
  add    %eax,%r10d
  movsbl 0x6(%rdi),%eax
  shl    $0x10,%eax
  add    %eax,%r10d
  movsbl 0x5(%rdi),%eax
  shl    $0x8,%eax
  add    %eax,%r10d
  movsbl 0x4(%rdi),%eax
  add    %eax,%r10d
  movsbl 0x3(%rdi),%eax
  shl    $0x18,%eax
  add    %eax,%r9d
  movsbl 0x2(%rdi),%eax
  shl    $0x10,%eax
  add    %eax,%r9d
  movsbl 0x1(%rdi),%eax
  shl    $0x8,%eax
  add    %eax,%r9d
  movsbl (%rdi),%eax
  add    %eax,%r9d
L37:
  lea    (%r10,%rcx,1),%eax
  mov    %ecx,%edx
  sub    %ecx,%r10d
  sub    %eax,%r9d
  shr    $0xd,%edx
  xor    %r9d,%edx
  mov    %edx,%eax
  sub    %edx,%r10d
  sub    %edx,%ecx
  shl    $0x8,%eax
  mov    %ecx,%esi
  xor    %r10d,%eax
  mov    %eax,%ecx
  sub    %eax,%esi
  sub    %eax,%edx
  shr    $0xd,%ecx
  xor    %esi,%ecx
  mov    %ecx,%esi
  sub    %ecx,%edx
  sub    %ecx,%eax
  shr    $0xc,%esi
  xor    %edx,%esi
  sub    %esi,%eax
  sub    %esi,%ecx
  mov    %eax,%edx
  mov    %esi,%eax
  shl    $0x10,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sub    %eax,%ecx
  sub    %eax,%esi
  shr    $0x5,%edx
  xor    %ecx,%edx
  mov    %edx,%ecx
  sub    %edx,%esi
  sub    %edx,%eax
  shr    $0x3,%ecx
  xor    %ecx,%esi
  mov    %esi,%ecx
  sub    %esi,%eax
  sub    %esi,%edx
  shl    $0xa,%ecx
  xor    %ecx,%eax
  sub    %eax,%edx
  shr    $0xf,%eax
  xor    %edx,%eax
  ret
  nopl   0x0(%rax)
L25:
  mov    %esi,%r8d
  mov    $0x9e3779b9,%r10d
  mov    $0x9e3779b9,%r9d
  jmp    L4
```

assistant: ```c
unsigned int jhash(const void *key, unsigned int length, unsigned int initval) {
  unsigned int a, b, c, len;
  const char *k = key;
  len = length;
  a = b = 0x9e3779b9;
  c = initval;
  while (len >= 12) {
    a += (k[0] + ((unsigned int)k[1] << 8) + ((unsigned int)k[2] << 16) + ((unsigned int)k[3] << 24));
    b += (k[4] + ((unsigned int)k[5] << 8) + ((unsigned int)k[6] << 16) + ((unsigned int)k[7] << 24));
    c += (k[8] + ((unsigned int)k[9] << 8) + ((unsigned int)k[10] << 16) + ((unsigned int)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 int)k[10] << 24);
  case 10:
    c += ((unsigned int)k[9] << 16);
  case 9:
    c += ((unsigned int)k[8] << 8);
  case 8:
    b += ((unsigned int)k[7] << 24);
  case 7:
    b += ((unsigned int)k[6] << 16);
  case 6:
    b += ((unsigned int)k[5] << 8);
  case 5:
    b += k[4];
  case 4:
    a += ((unsigned int)k[3] << 24);
  case 3:
    a += ((unsigned int)k[2] << 16);
  case 2:
    a += ((unsigned int)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;
}
```