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

```asm
<siphash>:
  endbr64
  push   %r14
  mov    %edx,%r9d
  mov    %rdi,%r10
  push   %r13
  push   %r12
  push   %rbp
  mov    %r9d,%ebp
  push   %rbx
  mov    0x8(%rcx),%r13d
  and    $0x7,%ebp
  mov    0x10(%rcx),%eax
  mov    0x50(%rcx),%edx
  shl    $0x8,%r13d
  shl    $0x10,%eax
  shl    $0x10,%edx
  or     %eax,%r13d
  mov    0x18(%rcx),%eax
  or     (%rcx),%r13d
  shl    $0x18,%eax
  or     %eax,%r13d
  mov    0x48(%rcx),%eax
  shl    $0x8,%eax
  or     %edx,%eax
  mov    0x58(%rcx),%rdx
  or     0x40(%rcx),%eax
  mov    %r13d,%ecx
  xor    $0x6e657261,%ecx
  xor    $0x70736575,%r13d
  shl    $0x18,%edx
  mov    %ecx,%r14d
  or     %edx,%eax
  movslq %r9d,%rdx
  and    $0xfffffffffffffffc,%rdx
  lea    (%rsi,%rdx,8),%rbx
  mov    %eax,%edx
  xor    $0x6e646f6d,%eax
  xor    $0x79746573,%edx
  cmp    %rbx,%rsi
  je     L95
  mov    %rsi,%r8
  jmp    L49
  nopl   0x0(%rax,%rax,1)
L50:
  add    $0x40,%r8
  xor    %edi,%r13d
  cmp    %r8,%rbx
  je     L95
L49:
  mov    0x8(%r8),%edi
  mov    0x10(%r8),%esi
  mov    $0x2,%r11d
  shl    $0x10,%esi
  shl    $0x8,%edi
  or     %esi,%edi
  mov    0x18(%r8),%esi
  or     (%r8),%edi
  shl    $0x18,%esi
  or     %esi,%edi
  xor    %edi,%edx
L12:
  mov    %eax,%r12d
  mov    $0x33,%ecx
  lea    (%r14,%rdx,1),%esi
  add    %eax,%r13d
  shl    $0xd,%r12d
  sar    %cl,%eax
  mov    $0x20,%ecx
  or     %eax,%r12d
  mov    %edx,%eax
  xor    %r13d,%r12d
  sar    %cl,%r13d
  mov    $0x30,%ecx
  sar    %cl,%edx
  shl    $0x10,%eax
  mov    $0x2b,%ecx
  or     %edx,%eax
  xor    %esi,%eax
  add    %r12d,%esi
  mov    %eax,%edx
  add    %eax,%r13d
  sar    %cl,%eax
  mov    $0x2f,%ecx
  shl    $0x15,%edx
  or     %eax,%edx
  mov    %r12d,%eax
  sar    %cl,%r12d
  mov    $0x20,%ecx
  shl    $0x11,%eax
  xor    %r13d,%edx
  or     %r12d,%eax
  xor    %esi,%eax
  sar    %cl,%esi
  mov    %esi,%r14d
  cmp    $0x1,%r11d
  je     L50
  mov    $0x1,%r11d
  jmp    L12
  nopl   (%rax)
L95:
  cmp    $0x3,%ebp
  je     L44
  and    $0x4,%r9d
  jne    L54
  cmp    $0x1,%ebp
  je     L9
  cmp    $0x2,%ebp
  jne    L136
L59:
  mov    0x8(%rbx),%esi
  shl    $0x8,%esi
  or     %esi,%r9d
L9:
  or     (%rbx),%r9d
  xor    %r9d,%edx
L136:
  mov    $0x2,%esi
L73:
  mov    %eax,%edi
  mov    $0x33,%ecx
  lea    (%r14,%rdx,1),%ebx
  add    %eax,%r13d
  shl    $0xd,%edi
  sar    %cl,%eax
  mov    $0x20,%ecx
  or     %eax,%edi
  mov    %edx,%eax
  xor    %r13d,%edi
  sar    %cl,%r13d
  mov    $0x30,%ecx
  sar    %cl,%edx
  shl    $0x10,%eax
  mov    $0x2b,%ecx
  or     %edx,%eax
  xor    %ebx,%eax
  add    %edi,%ebx
  mov    %eax,%edx
  add    %eax,%r13d
  sar    %cl,%eax
  mov    $0x2f,%ecx
  shl    $0x15,%edx
  or     %eax,%edx
  mov    %edi,%eax
  sar    %cl,%edi
  mov    $0x20,%ecx
  shl    $0x11,%eax
  xor    %r13d,%edx
  or     %edi,%eax
  xor    %ebx,%eax
  sar    %cl,%ebx
  mov    %ebx,%r14d
  cmp    $0x1,%esi
  jne    L7
  xor    %r13d,%r9d
  xor    $0xff,%bl
  mov    $0x4,%edi
L3:
  mov    %eax,%esi
  mov    $0x33,%ecx
  add    %eax,%r9d
  shl    $0xd,%esi
  sar    %cl,%eax
  mov    $0x20,%ecx
  or     %eax,%esi
  lea    (%rbx,%rdx,1),%eax
  xor    %r9d,%esi
  sar    %cl,%r9d
  mov    $0x30,%ecx
  mov    %esi,%r8d
  mov    %edx,%esi
  sar    %cl,%edx
  mov    $0x2b,%ecx
  shl    $0x10,%esi
  lea    (%rax,%r8,1),%ebx
  or     %esi,%edx
  mov    %r8d,%esi
  xor    %eax,%edx
  mov    %r8d,%eax
  add    %edx,%r9d
  mov    %edx,%r11d
  sar    %cl,%edx
  mov    $0x2f,%ecx
  sar    %cl,%esi
  shl    $0x15,%r11d
  mov    $0x20,%ecx
  shl    $0x11,%eax
  or     %edx,%r11d
  mov    %r9d,%edx
  or     %esi,%eax
  xor    %r11d,%edx
  xor    %ebx,%eax
  sar    %cl,%ebx
  sub    $0x1,%edi
  jne    L3
  xor    %r11d,%ebx
  mov    $0x20,%ecx
  xor    %eax,%ebx
  movslq %ebx,%rax
  mov    %rax,(%r10)
  mov    %ebx,%eax
  sar    $0x8,%eax
  cltq
  mov    %rax,0x8(%r10)
  mov    %ebx,%eax
  sar    $0x10,%eax
  cltq
  mov    %rax,0x10(%r10)
  mov    %ebx,%eax
  sar    %cl,%ebx
  sar    $0x18,%eax
  cltq
  mov    %rax,0x18(%r10)
  movslq %ebx,%rax
  pop    %rbx
  mov    %rax,%rcx
  mov    %rax,0x20(%r10)
  sar    $0x8,%eax
  pop    %rbp
  cltq
  pop    %r12
  pop    %r13
  mov    %rax,0x28(%r10)
  mov    %ecx,%eax
  sar    $0x18,%ecx
  pop    %r14
  sar    $0x10,%eax
  movslq %ecx,%rcx
  cltq
  mov    %rcx,0x38(%r10)
  mov    %rax,0x30(%r10)
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
L7:
  mov    $0x1,%esi
  jmp    L73
  nopw   0x0(%rax,%rax,1)
L54:
  mov    0x18(%rbx),%esi
  shl    $0x18,%esi
L75:
  mov    0x10(%rbx),%r9d
  shl    $0x10,%r9d
  or     %esi,%r9d
  jmp    L59
L44:
  xor    %esi,%esi
  jmp    L75
```

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;
}
```