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

```asm
<siphash>:
  endbr64
  push   %r14
  mov    %edx,%r9d
  mov    %edx,%r8d
  push   %rbp
  and    $0x7,%r9d
  push   %rbx
  mov    0x8(%rcx),%r10d
  mov    0x10(%rcx),%eax
  mov    0x48(%rcx),%r11d
  shl    $0x8,%r10d
  shl    $0x10,%eax
  shl    $0x8,%r11d
  or     %eax,%r10d
  mov    0x18(%rcx),%eax
  or     (%rcx),%r10d
  shl    $0x18,%eax
  or     %eax,%r10d
  mov    0x50(%rcx),%eax
  shl    $0x10,%eax
  or     %eax,%r11d
  mov    0x58(%rcx),%rax
  or     0x40(%rcx),%r11d
  shl    $0x18,%eax
  or     %eax,%r11d
  movslq %edx,%rax
  mov    %r10d,%edx
  xor    $0x70736575,%r10d
  and    $0xfffffffffffffffc,%rax
  mov    %r11d,%ebx
  xor    $0x6e657261,%edx
  xor    $0x6e646f6d,%r11d
  lea    (%rsi,%rax,8),%rcx
  xor    $0x79746573,%ebx
  cmp    %rcx,%rsi
  je     L13
  nopw   0x0(%rax,%rax,1)
L43:
  mov    0x8(%rsi),%eax
  mov    0x10(%rsi),%ebp
  mov    %rcx,%r14
  mov    $0x33,%ecx
  add    %r11d,%r10d
  shl    $0x10,%ebp
  shl    $0x8,%eax
  or     %ebp,%eax
  mov    0x18(%rsi),%ebp
  or     (%rsi),%eax
  shl    $0x18,%ebp
  or     %ebp,%eax
  mov    %r11d,%ebp
  sar    %cl,%r11d
  mov    $0x20,%ecx
  shl    $0xd,%ebp
  xor    %eax,%ebx
  or     %ebp,%r11d
  lea    (%rdx,%rbx,1),%ebp
  mov    %ebx,%edx
  xor    %r10d,%r11d
  sar    %cl,%r10d
  mov    $0x30,%ecx
  sar    %cl,%ebx
  shl    $0x10,%edx
  mov    $0x2b,%ecx
  or     %ebx,%edx
  xor    %ebp,%edx
  add    %r11d,%ebp
  mov    %edx,%ebx
  add    %edx,%r10d
  sar    %cl,%edx
  mov    $0x2f,%ecx
  shl    $0x15,%ebx
  or     %edx,%ebx
  mov    %r11d,%edx
  sar    %cl,%r11d
  mov    $0x20,%ecx
  shl    $0x11,%edx
  xor    %r10d,%ebx
  or     %r11d,%edx
  xor    %ebp,%edx
  sar    %cl,%ebp
  mov    $0x33,%ecx
  mov    %edx,%r11d
  add    %edx,%r10d
  sar    %cl,%edx
  mov    $0x20,%ecx
  shl    $0xd,%r11d
  or     %edx,%r11d
  mov    %ebx,%edx
  xor    %r10d,%r11d
  sar    %cl,%r10d
  mov    $0x30,%ecx
  add    %ebx,%ebp
  shl    $0x10,%edx
  sar    %cl,%ebx
  mov    $0x2b,%ecx
  add    $0x40,%rsi
  or     %ebx,%edx
  xor    %ebp,%edx
  mov    %edx,%ebx
  add    %edx,%r10d
  sar    %cl,%edx
  mov    $0x2f,%ecx
  shl    $0x15,%ebx
  or     %edx,%ebx
  lea    (%r11,%rbp,1),%edx
  mov    %r11d,%ebp
  sar    %cl,%r11d
  shl    $0x11,%ebp
  mov    $0x20,%ecx
  xor    %r10d,%ebx
  xor    %eax,%r10d
  or     %ebp,%r11d
  xor    %edx,%r11d
  sar    %cl,%edx
  mov    %r14,%rcx
  cmp    %rsi,%r14
  jne    L43
L13:
  cmp    $0x3,%r9d
  je     L72
  and    $0x4,%r8d
  jne    L11
  cmp    $0x1,%r9d
  je     L60
  cmp    $0x2,%r9d
  jne    L35
L48:
  mov    0x8(%rcx),%eax
  shl    $0x8,%eax
  or     %eax,%r8d
L60:
  or     (%rcx),%r8d
  xor    %r8d,%ebx
L35:
  mov    %r11d,%eax
  mov    $0x33,%ecx
  add    %r11d,%r10d
  shl    $0xd,%eax
  sar    %cl,%r11d
  mov    $0x20,%ecx
  or     %eax,%r11d
  lea    (%rdx,%rbx,1),%eax
  mov    %ebx,%edx
  shl    $0x10,%ebx
  xor    %r10d,%r11d
  sar    %cl,%r10d
  mov    $0x30,%ecx
  sar    %cl,%edx
  mov    $0x2b,%ecx
  or     %ebx,%edx
  xor    %eax,%edx
  add    %r11d,%eax
  mov    %edx,%esi
  add    %edx,%r10d
  sar    %cl,%edx
  mov    $0x2f,%ecx
  shl    $0x15,%esi
  or     %esi,%edx
  xor    %r10d,%edx
  mov    %edx,%ebx
  mov    %r11d,%edx
  sar    %cl,%r11d
  mov    $0x20,%ecx
  shl    $0x11,%edx
  or     %edx,%r11d
  mov    %ebx,%edx
  xor    %eax,%r11d
  sar    %cl,%eax
  mov    $0x33,%ecx
  mov    %r11d,%esi
  add    %r11d,%r10d
  sar    %cl,%r11d
  mov    $0x20,%ecx
  shl    $0xd,%esi
  add    %ebx,%eax
  shl    $0x10,%edx
  or     %r11d,%esi
  xor    %r10d,%esi
  sar    %cl,%r10d
  mov    $0x30,%ecx
  sar    %cl,%ebx
  mov    $0x2b,%ecx
  or     %ebx,%edx
  mov    %esi,%ebx
  xor    %eax,%edx
  add    %edx,%r10d
  mov    %edx,%r9d
  sar    %cl,%edx
  mov    $0x2f,%ecx
  shl    $0x11,%ebx
  add    %esi,%eax
  sar    %cl,%esi
  xor    %r10d,%r8d
  or     %esi,%ebx
  shl    $0x15,%r9d
  mov    $0x20,%ecx
  mov    %ebx,%esi
  or     %edx,%r9d
  xor    %eax,%esi
  sar    %cl,%eax
  mov    $0x33,%ecx
  xor    %r10d,%r9d
  lea    (%r8,%rsi,1),%edx
  mov    %esi,%r8d
  sar    %cl,%esi
  mov    $0x20,%ecx
  shl    $0xd,%r8d
  xor    $0xff,%al
  mov    %r9d,%ebx
  or     %r8d,%esi
  add    %r9d,%eax
  shl    $0x10,%ebx
  xor    %edx,%esi
  sar    %cl,%edx
  mov    $0x30,%ecx
  sar    %cl,%r9d
  mov    $0x2b,%ecx
  mov    %r9d,%r8d
  or     %ebx,%r8d
  xor    %eax,%r8d
  add    %esi,%eax
  add    %r8d,%edx
  mov    %r8d,%r9d
  sar    %cl,%r8d
  shl    $0x15,%r9d
  mov    %r8d,%ecx
  mov    %esi,%r8d
  or     %r9d,%ecx
  shl    $0x11,%r8d
  mov    %ecx,%ebx
  mov    $0x2f,%ecx
  sar    %cl,%esi
  mov    $0x20,%ecx
  xor    %edx,%ebx
  or     %r8d,%esi
  xor    %eax,%esi
  sar    %cl,%eax
  mov    $0x33,%ecx
  add    %esi,%edx
  mov    %esi,%r9d
  sar    %cl,%esi
  mov    $0x20,%ecx
  shl    $0xd,%r9d
  mov    %esi,%r8d
  add    %ebx,%eax
  mov    %ebx,%esi
  or     %r9d,%r8d
  shl    $0x10,%esi
  xor    %edx,%r8d
  sar    %cl,%edx
  mov    $0x30,%ecx
  sar    %cl,%ebx
  mov    %ebx,%ecx
  or     %esi,%ecx
  xor    %eax,%ecx
  add    %r8d,%eax
  add    %ecx,%edx
  mov    %ecx,%r9d
  mov    %ecx,%esi
  mov    $0x2b,%ecx
  shl    $0x15,%r9d
  sar    %cl,%esi
  mov    $0x2f,%ecx
  or     %r9d,%esi
  mov    %r8d,%r9d
  sar    %cl,%r8d
  shl    $0x11,%r9d
  mov    %r8d,%ecx
  xor    %edx,%esi
  or     %r9d,%ecx
  mov    %esi,%r9d
  mov    %ecx,%ebx
  mov    $0x20,%ecx
  shl    $0x10,%r9d
  xor    %eax,%ebx
  sar    %cl,%eax
  mov    $0x33,%ecx
  add    %ebx,%edx
  mov    %ebx,%r8d
  sar    %cl,%ebx
  add    %esi,%eax
  shl    $0xd,%r8d
  mov    %ebx,%ecx
  or     %r8d,%ecx
  mov    %ecx,%r8d
  mov    $0x20,%ecx
  xor    %edx,%r8d
  sar    %cl,%edx
  mov    $0x30,%ecx
  sar    %cl,%esi
  mov    %esi,%ecx
  or     %r9d,%ecx
  mov    %ecx,%ebx
  mov    $0x2b,%ecx
  xor    %eax,%ebx
  add    %r8d,%eax
  add    %ebx,%edx
  mov    %ebx,%esi
  sar    %cl,%ebx
  shl    $0x15,%esi
  mov    %ebx,%ecx
  or     %esi,%ecx
  mov    %r8d,%esi
  shl    $0x11,%esi
  mov    %ecx,%r9d
  mov    $0x2f,%ecx
  mov    %esi,%ebx
  mov    %r8d,%esi
  xor    %edx,%r9d
  sar    %cl,%esi
  mov    $0x20,%ecx
  or     %ebx,%esi
  xor    %eax,%esi
  sar    %cl,%eax
  mov    $0x33,%ecx
  mov    %esi,%ebx
  add    %esi,%edx
  sar    %cl,%esi
  mov    $0x30,%ecx
  shl    $0xd,%ebx
  add    %r9d,%eax
  or     %esi,%ebx
  mov    %r9d,%esi
  sar    %cl,%r9d
  shl    $0x10,%esi
  xor    %ebx,%edx
  or     %r9d,%esi
  mov    %edx,%r9d
  mov    %esi,%ecx
  shl    $0x11,%r9d
  xor    %eax,%ecx
  add    %edx,%eax
  mov    %ecx,%r8d
  mov    %ecx,%esi
  mov    $0x2b,%ecx
  mov    %eax,%ebx
  sar    %cl,%esi
  mov    $0x2f,%ecx
  shl    $0x15,%r8d
  sar    %cl,%edx
  mov    $0x20,%ecx
  sar    %cl,%ebx
  or     %r9d,%edx
  mov    $0x20,%ecx
  xor    %ebx,%edx
  pop    %rbx
  pop    %rbp
  xor    %edx,%eax
  mov    %r8d,%edx
  pop    %r14
  or     %esi,%edx
  xor    %edx,%eax
  mov    %eax,%esi
  mov    %eax,%edx
  movd   %eax,%xmm1
  sar    $0x10,%esi
  sar    $0x8,%edx
  movd   %esi,%xmm0
  mov    %eax,%esi
  sar    %cl,%eax
  movd   %edx,%xmm6
  sar    $0x18,%esi
  mov    %eax,%edx
  punpckldq %xmm6,%xmm1
  mov    %eax,%ecx
  sar    $0x8,%edx
  movd   %esi,%xmm5
  mov    %eax,%esi
  sar    $0x18,%ecx
  punpckldq %xmm5,%xmm0
  sar    $0x10,%esi
  movd   %ecx,%xmm7
  movd   %edx,%xmm5
  punpcklqdq %xmm0,%xmm1
  movd   %esi,%xmm2
  movd   %eax,%xmm0
  xor    %eax,%eax
  punpckldq %xmm7,%xmm2
  punpckldq %xmm5,%xmm0
  movdqa %xmm1,%xmm4
  punpcklqdq %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  movdqa %xmm2,%xmm3
  pcmpgtd %xmm0,%xmm2
  pcmpgtd %xmm1,%xmm3
  punpckhdq %xmm3,%xmm1
  punpckldq %xmm3,%xmm4
  movups %xmm1,0x10(%rdi)
  movdqa %xmm2,%xmm1
  movdqa %xmm0,%xmm2
  punpckldq %xmm1,%xmm2
  punpckhdq %xmm1,%xmm0
  movups %xmm4,(%rdi)
  movups %xmm2,0x20(%rdi)
  movups %xmm0,0x30(%rdi)
  ret
  nopl   (%rax)
L11:
  mov    0x18(%rcx),%eax
  shl    $0x18,%eax
L4:
  mov    0x10(%rcx),%r8d
  shl    $0x10,%r8d
  or     %eax,%r8d
  jmp    L48
L72:
  xor    %eax,%eax
  jmp    L4
```

assistant: ```c
int siphash(uint8_t *out, const uint8_t *in, uint64_t inlen, const uint8_t *k) {
  uint64_t v0 = 0x736f6d6570736575ULL;
  uint64_t v1 = 0x646f72616e646f6dULL;
  uint64_t v2 = 0x6c7967656e657261ULL;
  uint64_t v3 = 0x7465646279746573ULL;
  uint64_t b;
  uint64_t k0 = (((uint64_t)((k)[0])) | ((uint64_t)((k)[1]) << 8) | ((uint64_t)((k)[2]) << 16) | ((uint64_t)((k)[3]) << 24) | ((uint64_t)((k)[4]) << 32) | ((uint64_t)((k)[5]) << 40) | ((uint64_t)((k)[6]) << 48) | ((uint64_t)((k)[7]) << 56));
  uint64_t k1 = (((uint64_t)((k + 8)[0])) | ((uint64_t)((k + 8)[1]) << 8) | ((uint64_t)((k + 8)[2]) << 16) | ((uint64_t)((k + 8)[3]) << 24) | ((uint64_t)((k + 8)[4]) << 32) | ((uint64_t)((k + 8)[5]) << 40) | ((uint64_t)((k + 8)[6]) << 48) | ((uint64_t)((k + 8)[7]) << 56));
  uint64_t m;
  int i;
  const uint8_t *end = in + inlen - (inlen % sizeof(uint64_t));
  const int left = inlen & 7;
  b = ((uint64_t)inlen) << 56;
  v3 ^= k1;
  v2 ^= k0;
  v1 ^= k1;
  v0 ^= k0;
  for (; in != end; in += 8) {
    m = (((uint64_t)((in)[0])) | ((uint64_t)((in)[1]) << 8) | ((uint64_t)((in)[2]) << 16) | ((uint64_t)((in)[3]) << 24) | ((uint64_t)((in)[4]) << 32) | ((uint64_t)((in)[5]) << 40) | ((uint64_t)((in)[6]) << 48) | ((uint64_t)((in)[7]) << 56));
    v3 ^= m;
    ;
    for (i = 0; i < 2; ++i)
      do {
        v0 += v1;
        v1 = (uint64_t)(((v1) << (13)) | ((v1) >> (64 - (13))));
        v1 ^= v0;
        v0 = (uint64_t)(((v0) << (32)) | ((v0) >> (64 - (32))));
        v2 += v3;
        v3 = (uint64_t)(((v3) << (16)) | ((v3) >> (64 - (16))));
        v3 ^= v2;
        v0 += v3;
        v3 = (uint64_t)(((v3) << (21)) | ((v3) >> (64 - (21))));
        v3 ^= v0;
        v2 += v1;
        v1 = (uint64_t)(((v1) << (17)) | ((v1) >> (64 - (17))));
        v1 ^= v2;
        v2 = (uint64_t)(((v2) << (32)) | ((v2) >> (64 - (32))));
      } while (0);
    v0 ^= m;
  }
  switch (left) {
  case 7:
    b |= ((uint64_t)in[6]) << 48;
  case 6:
    b |= ((uint64_t)in[5]) << 40;
  case 5:
    b |= ((uint64_t)in[4]) << 32;
  case 4:
    b |= ((uint64_t)in[3]) << 24;
  case 3:
    b |= ((uint64_t)in[2]) << 16;
  case 2:
    b |= ((uint64_t)in[1]) << 8;
  case 1:
    b |= ((uint64_t)in[0]);
    break;
  case 0:
    break;
  }
  v3 ^= b;
  ;
  for (i = 0; i < 2; ++i)
    do {
      v0 += v1;
      v1 = (uint64_t)(((v1) << (13)) | ((v1) >> (64 - (13))));
      v1 ^= v0;
      v0 = (uint64_t)(((v0) << (32)) | ((v0) >> (64 - (32))));
      v2 += v3;
      v3 = (uint64_t)(((v3) << (16)) | ((v3) >> (64 - (16))));
      v3 ^= v2;
      v0 += v3;
      v3 = (uint64_t)(((v3) << (21)) | ((v3) >> (64 - (21))));
      v3 ^= v0;
      v2 += v1;
      v1 = (uint64_t)(((v1) << (17)) | ((v1) >> (64 - (17))));
      v1 ^= v2;
      v2 = (uint64_t)(((v2) << (32)) | ((v2) >> (64 - (32))));
    } while (0);
  v0 ^= b;
  v2 ^= 0xff;
  ;
  for (i = 0; i < 4; ++i)
    do {
      v0 += v1;
      v1 = (uint64_t)(((v1) << (13)) | ((v1) >> (64 - (13))));
      v1 ^= v0;
      v0 = (uint64_t)(((v0) << (32)) | ((v0) >> (64 - (32))));
      v2 += v3;
      v3 = (uint64_t)(((v3) << (16)) | ((v3) >> (64 - (16))));
      v3 ^= v2;
      v0 += v3;
      v3 = (uint64_t)(((v3) << (21)) | ((v3) >> (64 - (21))));
      v3 ^= v0;
      v2 += v1;
      v1 = (uint64_t)(((v1) << (17)) | ((v1) >> (64 - (17))));
      v1 ^= v2;
      v2 = (uint64_t)(((v2) << (32)) | ((v2) >> (64 - (32))));
    } while (0);
  b = v0 ^ v1 ^ v2 ^ v3;
  ((out))[0] = (uint8_t)(((uint32_t)((b))));
  ((out))[1] = (uint8_t)(((uint32_t)((b))) >> 8);
  ((out))[2] = (uint8_t)(((uint32_t)((b))) >> 16);
  ((out))[3] = (uint8_t)(((uint32_t)((b))) >> 24);
  ;
  ((out) + 4)[0] = (uint8_t)(((uint32_t)((b) >> 32)));
  ((out) + 4)[1] = (uint8_t)(((uint32_t)((b) >> 32)) >> 8);
  ((out) + 4)[2] = (uint8_t)(((uint32_t)((b) >> 32)) >> 16);
  ((out) + 4)[3] = (uint8_t)(((uint32_t)((b) >> 32)) >> 24);
  ;
  ;
  return 0;
}
```