user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<rte_jhash>:
  endbr64
  mov    %esi,%r8d
  cmp    $0xb,%esi
  jle    L12
  mov    %rdi,%r10
  mov    %esi,%r9d
  mov    $0x9e3779b9,%ecx
  mov    $0x9e3779b9,%eax
L20:
  add    (%r10),%eax
  mov    %eax,%esi
  add    0x4(%r10),%ecx
  add    0x8(%r10),%edx
  sub    %ecx,%esi
  sub    %edx,%esi
  mov    %edx,%eax
  sar    $0xd,%eax
  xor    %esi,%eax
  sub    %edx,%ecx
  mov    %ecx,%esi
  sub    %eax,%esi
  mov    %eax,%ecx
  shl    $0x8,%ecx
  xor    %esi,%ecx
  sub    %eax,%edx
  sub    %ecx,%edx
  mov    %ecx,%esi
  sar    $0xd,%esi
  xor    %esi,%edx
  sub    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,%esi
  mov    %edx,%eax
  sar    $0xc,%eax
  xor    %esi,%eax
  sub    %edx,%ecx
  mov    %ecx,%esi
  sub    %eax,%esi
  mov    %eax,%ecx
  shl    $0x10,%ecx
  xor    %esi,%ecx
  sub    %eax,%edx
  sub    %ecx,%edx
  mov    %edx,%esi
  mov    %ecx,%edx
  sar    $0x5,%edx
  xor    %esi,%edx
  sub    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,%esi
  mov    %edx,%eax
  sar    $0x3,%eax
  xor    %esi,%eax
  sub    %edx,%ecx
  mov    %ecx,%esi
  sub    %eax,%esi
  mov    %eax,%ecx
  shl    $0xa,%ecx
  xor    %esi,%ecx
  sub    %eax,%edx
  mov    %edx,%esi
  sub    %ecx,%esi
  mov    %ecx,%edx
  sar    $0xf,%edx
  xor    %esi,%edx
  add    $0x30,%rdi
  add    $0xc,%r10
  sub    $0xc,%r9d
  cmp    $0xb,%r9d
  jg     L20
L29:
  add    %r8d,%edx
  cmp    $0xb,%r9d
  ja     L15
  mov    %r9d,%r9d
  lea    D1(%rip),%r8
  movslq (%r8,%r9,4),%rsi
  add    %r8,%rsi
  notrack jmp *%rsi
L12:
  mov    %esi,%r9d
  mov    $0x9e3779b9,%ecx
  mov    $0x9e3779b9,%eax
  jmp    L29
  mov    0x28(%rdi),%esi
  shl    $0x18,%esi
  add    %esi,%edx
  mov    0x24(%rdi),%esi
  shl    $0x10,%esi
  add    %esi,%edx
  mov    0x20(%rdi),%esi
  shl    $0x8,%esi
  add    %esi,%edx
  mov    0x1c(%rdi),%esi
  shl    $0x18,%esi
  add    %esi,%ecx
  mov    0x18(%rdi),%esi
  shl    $0x10,%esi
  add    %esi,%ecx
  mov    0x14(%rdi),%esi
  shl    $0x8,%esi
  add    %esi,%ecx
  add    0x10(%rdi),%ecx
  mov    0xc(%rdi),%esi
  shl    $0x18,%esi
  add    %esi,%eax
  mov    0x8(%rdi),%esi
  shl    $0x10,%esi
  add    %esi,%eax
  mov    0x4(%rdi),%esi
  shl    $0x8,%esi
  add    %esi,%eax
  add    (%rdi),%eax
L15:
  sub    %ecx,%eax
  sub    %edx,%eax
  mov    %edx,%edi
  sar    $0xd,%edi
  xor    %eax,%edi
  sub    %edx,%ecx
  sub    %edi,%ecx
  mov    %edi,%esi
  shl    $0x8,%esi
  xor    %ecx,%esi
  sub    %edi,%edx
  sub    %esi,%edx
  mov    %esi,%eax
  sar    $0xd,%eax
  xor    %eax,%edx
  sub    %esi,%edi
  sub    %edx,%edi
  mov    %edx,%ecx
  sar    $0xc,%ecx
  xor    %edi,%ecx
  sub    %edx,%esi
  sub    %ecx,%esi
  mov    %ecx,%eax
  shl    $0x10,%eax
  xor    %esi,%eax
  sub    %ecx,%edx
  mov    %edx,%esi
  sub    %eax,%esi
  mov    %eax,%edx
  sar    $0x5,%edx
  xor    %esi,%edx
  sub    %eax,%ecx
  sub    %edx,%ecx
  mov    %edx,%esi
  sar    $0x3,%esi
  xor    %ecx,%esi
  sub    %edx,%eax
  sub    %esi,%eax
  mov    %esi,%ecx
  shl    $0xa,%ecx
  xor    %ecx,%eax
  sub    %esi,%edx
  sub    %eax,%edx
  sar    $0xf,%eax
  xor    %edx,%eax
  ret
```

assistant: ```c
uint32_t rte_jhash(const void *key, uint32_t length, uint32_t initval) {
  uint32_t a, b, c, len;
  const uint8_t *k = (const uint8_t *)key;
  const uint32_t *k32 = (const uint32_t *)key;
  len = length;
  a = b = 0x9e3779b9;
  c = initval;
  while (len >= 12) {
    a += k32[0];
    b += k32[1];
    c += k32[2];
    do {
      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);
    } while (0);
    k += (3 * sizeof(uint32_t)), k32 += 3;
    len -= (3 * sizeof(uint32_t));
  }
  c += length;
  switch (len) {
  case 11:
    c += ((uint32_t)k[10] << 24);
  case 10:
    c += ((uint32_t)k[9] << 16);
  case 9:
    c += ((uint32_t)k[8] << 8);
  case 8:
    b += ((uint32_t)k[7] << 24);
  case 7:
    b += ((uint32_t)k[6] << 16);
  case 6:
    b += ((uint32_t)k[5] << 8);
  case 5:
    b += k[4];
  case 4:
    a += ((uint32_t)k[3] << 24);
  case 3:
    a += ((uint32_t)k[2] << 16);
  case 2:
    a += ((uint32_t)k[1] << 8);
  case 1:
    a += k[0];
  default:
    break;
  };
  do {
    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);
  } while (0);
  return c;
}
```