user: 请从给定的汇编指令推导出C源代码：

```asm
<jhash2>:
  endbr64
  mov    %esi,%r8d
  mov    $0x9e3779b9,%eax
  mov    $0x9e3779b9,%ecx
  cmp    $0x2,%esi
  jbe    L39
  nopw   0x0(%rax,%rax,1)
L26:
  add    0x8(%rdi),%edx
  add    0x4(%rdi),%eax
  lea    (%rax,%rdx,1),%r10d
  add    (%rdi),%ecx
  sub    %edx,%eax
  sub    %r10d,%ecx
  mov    %ecx,%r9d
  mov    %edx,%ecx
  shr    $0xd,%ecx
  xor    %r9d,%ecx
  mov    %ecx,%r9d
  sub    %ecx,%eax
  sub    %ecx,%edx
  shl    $0x8,%r9d
  xor    %eax,%r9d
  mov    %r9d,%eax
  sub    %r9d,%edx
  sub    %r9d,%ecx
  shr    $0xd,%eax
  xor    %eax,%edx
  mov    %ecx,%eax
  mov    %edx,%ecx
  sub    %edx,%eax
  sub    %edx,%r9d
  shr    $0xc,%ecx
  xor    %eax,%ecx
  mov    %ecx,%eax
  sub    %ecx,%r9d
  sub    %ecx,%edx
  shl    $0x10,%eax
  xor    %r9d,%eax
  sub    %eax,%edx
  sub    %eax,%ecx
  mov    %edx,%r9d
  mov    %eax,%edx
  shr    $0x5,%edx
  xor    %r9d,%edx
  sub    %edx,%ecx
  sub    %edx,%eax
  mov    %ecx,%r9d
  mov    %edx,%ecx
  shr    $0x3,%ecx
  xor    %r9d,%ecx
  sub    %ecx,%eax
  mov    %eax,%r9d
  mov    %ecx,%eax
  shl    $0xa,%eax
  sub    %ecx,%edx
  sub    $0x3,%r8d
  add    $0xc,%rdi
  xor    %r9d,%eax
  sub    %eax,%edx
  mov    %edx,%r9d
  mov    %eax,%edx
  shr    $0xf,%edx
  xor    %r9d,%edx
  cmp    $0x2,%r8d
  ja     L26
L39:
  lea    (%rdx,%rsi,4),%esi
  cmp    $0x1,%r8d
  je     L20
  cmp    $0x2,%r8d
  jne    L8
  add    0x4(%rdi),%eax
L20:
  add    (%rdi),%ecx
L8:
  sub    %esi,%ecx
  mov    %esi,%edx
  sub    %eax,%ecx
  shr    $0xd,%edx
  sub    %esi,%eax
  xor    %edx,%ecx
  mov    %ecx,%edx
  sub    %ecx,%eax
  sub    %ecx,%esi
  shl    $0x8,%edx
  xor    %edx,%eax
  mov    %eax,%edx
  sub    %eax,%esi
  sub    %eax,%ecx
  shr    $0xd,%edx
  xor    %esi,%edx
  mov    %ecx,%esi
  mov    %edx,%ecx
  sub    %edx,%esi
  sub    %edx,%eax
  shr    $0xc,%ecx
  xor    %esi,%ecx
  sub    %ecx,%eax
  sub    %ecx,%edx
  mov    %eax,%esi
  mov    %ecx,%eax
  shl    $0x10,%eax
  xor    %esi,%eax
  mov    %edx,%esi
  mov    %eax,%edx
  sub    %eax,%esi
  sub    %eax,%ecx
  shr    $0x5,%edx
  xor    %esi,%edx
  mov    %edx,%esi
  sub    %edx,%ecx
  sub    %edx,%eax
  shr    $0x3,%esi
  xor    %ecx,%esi
  mov    %esi,%ecx
  sub    %esi,%eax
  shl    $0xa,%ecx
  xor    %ecx,%eax
  sub    %esi,%edx
  sub    %eax,%edx
  shr    $0xf,%eax
  xor    %edx,%eax
  ret
```

assistant: ```c
unsigned int jhash2(const unsigned int *k, unsigned int length, unsigned int initval) {
  unsigned int 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;
}
```