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

```asm
<jhash>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r12
  mov    %esi,%r13d
  lea    -0x61c8ffff(%rsi,%rdx,1),%ebx
  cmp    $0xc,%esi
  jle    L1
  mov    %ebx,%ebp
  mov    %ebx,%r14d
L30:
  add    (%r12),%ebx
  add    0x10(%r12),%r14d
  add    0x20(%r12),%ebp
  sub    %ebp,%ebx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <rol32@plt>
  xor    %eax,%ebx
  add    %r14d,%ebp
  sub    %ebx,%r14d
  mov    $0x6,%esi
  mov    %ebx,%edi
  call   <rol32@plt>
  xor    %eax,%r14d
  add    %ebp,%ebx
  sub    %r14d,%ebp
  mov    $0x8,%esi
  mov    %r14d,%edi
  call   <rol32@plt>
  xor    %eax,%ebp
  add    %ebx,%r14d
  sub    %ebp,%ebx
  mov    $0x10,%esi
  mov    %ebp,%edi
  call   <rol32@plt>
  xor    %eax,%ebx
  add    %r14d,%ebp
  sub    %ebx,%r14d
  mov    $0x13,%esi
  mov    %ebx,%edi
  call   <rol32@plt>
  xor    %eax,%r14d
  add    %ebp,%ebx
  sub    %r14d,%ebp
  mov    $0x4,%esi
  mov    %r14d,%edi
  call   <rol32@plt>
  xor    %eax,%ebp
  add    %ebx,%r14d
  sub    $0xc,%r13d
  add    $0x30,%r12
  cmp    $0xc,%r13d
  jg     L30
L19:
  cmp    $0xc,%r13d
  ja     L27
  mov    %r13d,%r13d
  lea    D2(%rip),%rdx
  movslq (%rdx,%r13,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L1:
  mov    %ebx,%ebp
  mov    %ebx,%r14d
  jmp    L19
  mov    0x2c(%r12),%eax
  shl    $0x18,%eax
  add    %eax,%ebp
  mov    0x28(%r12),%eax
  shl    $0x10,%eax
  add    %eax,%ebp
  mov    0x24(%r12),%eax
  shl    $0x8,%eax
  add    %eax,%ebp
  add    0x20(%r12),%ebp
  mov    0x1c(%r12),%eax
  shl    $0x18,%eax
  add    %eax,%r14d
  mov    0x18(%r12),%eax
  shl    $0x10,%eax
  add    %eax,%r14d
  mov    0x14(%r12),%eax
  shl    $0x8,%eax
  add    %eax,%r14d
  add    0x10(%r12),%r14d
  mov    0xc(%r12),%eax
  shl    $0x18,%eax
  add    %eax,%ebx
  mov    0x8(%r12),%eax
  shl    $0x10,%eax
  add    %eax,%ebx
  mov    0x4(%r12),%eax
  shl    $0x8,%eax
  add    %eax,%ebx
  add    (%r12),%ebx
  xor    %r14d,%ebp
  mov    $0xe,%esi
  mov    %r14d,%edi
  call   <rol32@plt>
  sub    %eax,%ebp
  xor    %ebp,%ebx
  mov    $0xb,%esi
  mov    %ebp,%edi
  call   <rol32@plt>
  sub    %eax,%ebx
  xor    %ebx,%r14d
  mov    $0x19,%esi
  mov    %ebx,%edi
  call   <rol32@plt>
  sub    %eax,%r14d
  xor    %r14d,%ebp
  mov    $0x10,%esi
  mov    %r14d,%edi
  call   <rol32@plt>
  sub    %eax,%ebp
  xor    %ebp,%ebx
  mov    $0x4,%esi
  mov    %ebp,%edi
  call   <rol32@plt>
  mov    %ebx,%edi
  sub    %eax,%edi
  xor    %edi,%r14d
  mov    $0xe,%esi
  call   <rol32@plt>
  mov    %r14d,%edi
  sub    %eax,%edi
  xor    %edi,%ebp
  mov    $0x18,%esi
  call   <rol32@plt>
  sub    %eax,%ebp
L27:
  mov    %ebp,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
uint32_t jhash(const void *key, uint32_t length, uint32_t initval) {
  const uint8_t *k = key;
  uint32_t a, b, c;
  a = b = c = 0x9e370001UL + length + initval;
  while (length > 12) {
    a += *k;
    b += *(k + 4);
    c += *(k + 8);
    {
      a -= c;
      a ^= rol32(c, 4);
      c += b;
      b -= a;
      b ^= rol32(a, 6);
      a += c;
      c -= b;
      c ^= rol32(b, 8);
      b += a;
      a -= c;
      a ^= rol32(c, 16);
      c += b;
      b -= a;
      b ^= rol32(a, 19);
      a += c;
      c -= b;
      c ^= rol32(b, 4);
      b += a;
    };
    length -= 12;
    k += 12;
  }
  switch (length) {
  case 12:
    c += (uint32_t)k[11] << 24;
  case 11:
    c += (uint32_t)k[10] << 16;
  case 10:
    c += (uint32_t)k[9] << 8;
  case 9:
    c += k[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];
    {
      c ^= b;
      c -= rol32(b, 14);
      a ^= c;
      a -= rol32(c, 11);
      b ^= a;
      b -= rol32(a, 25);
      c ^= b;
      c -= rol32(b, 16);
      a ^= c;
      a -= rol32(c, 4);
      b ^= a;
      b -= rol32(a, 14);
      c ^= b;
      c -= rol32(b, 24);
    };
  case 0:
    break;
  }
  return c;
}
```