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

```asm
<hash32_hsieh>:
  endbr64
  mov    %rdi,%rcx
  mov    %esi,%edx
  test   %rdi,%rdi
  je     L5
  mov    %esi,%r9d
  sar    $0x2,%esi
  and    $0x3,%r9d
  test   %esi,%esi
  jle    L95
  mov    (%rdi),%r8
  movslq %esi,%rsi
  mov    0x2(%rdi),%rdi
  lea    (%rcx,%rsi,8),%rsi
  nopw   0x0(%rax,%rax,1)
L1:
  mov    %r8,%r10
  mov    0x8(%rcx),%r8
  add    $0x8,%rcx
  mov    %r8d,%eax
  shl    $0x8,%eax
  add    %r10d,%eax
  mov    %rdi,%r10
  mov    0x2(%rcx),%rdi
  add    %edx,%eax
  mov    %edi,%edx
  shl    $0x8,%edx
  add    %r10d,%edx
  shl    $0xb,%edx
  xor    %eax,%edx
  shl    $0x10,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sar    $0xb,%edx
  add    %eax,%edx
  cmp    %rsi,%rcx
  jne    L1
L21:
  cmp    $0x2,%r9d
  je     L14
  cmp    $0x3,%r9d
  je     L81
  cmp    $0x1,%r9d
  je     L11
L38:
  lea    0x0(,%rdx,8),%eax
  xor    %eax,%edx
  mov    %edx,%eax
  sar    $0x5,%eax
  add    %edx,%eax
  mov    %eax,%edx
  shl    $0x4,%edx
  xor    %eax,%edx
  mov    %edx,%eax
  sar    $0x11,%eax
  add    %edx,%eax
  mov    %eax,%edx
  shl    $0x19,%edx
  xor    %eax,%edx
  mov    %edx,%eax
  sar    $0x6,%eax
  add    %edx,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L14:
  mov    0x8(%rsi),%eax
  shl    $0x8,%eax
  add    (%rsi),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shl    $0xb,%edx
  xor    %edx,%eax
  mov    %eax,%edx
  sar    $0x11,%edx
  add    %eax,%edx
  jmp    L38
  nopw   0x0(%rax,%rax,1)
L11:
  movsbl (%rsi),%eax
  add    %eax,%edx
  mov    %edx,%eax
  shl    $0xa,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sar    %edx
  add    %eax,%edx
  jmp    L38
  nopl   0x0(%rax)
L81:
  mov    0x8(%rsi),%eax
  shl    $0x8,%eax
  add    (%rsi),%eax
  add    %edx,%eax
  movsbl 0x4(%rsi),%edx
  mov    %eax,%ecx
  shl    $0x12,%edx
  shl    $0x10,%ecx
  xor    %edx,%eax
  xor    %ecx,%eax
  mov    %eax,%edx
  sar    $0xb,%edx
  add    %eax,%edx
  jmp    L38
  cs nopw 0x0(%rax,%rax,1)
L5:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
L95:
  mov    %rdi,%rsi
  jmp    L21
```

assistant: ```c
uint32_t hash32_hsieh(const void *vdata, size_t ulen) {
  const char *data = (const char *)vdata;
  ssize_t len = ulen;
  uint32_t hash = len, tmp;
  int rem;
  if (!data)
    return 0;
  rem = len & 3;
  len >>= 2;
  for (; len > 0; len--) {
    hash += ((((uint32_t)(((const uint8_t *)(data))[1])) << 8) + (uint32_t)(((const uint8_t *)(data))[0]));
    tmp = (((((uint32_t)(((const uint8_t *)(data + 2))[1])) << 8) + (uint32_t)(((const uint8_t *)(data + 2))[0])) << 11) ^ hash;
    hash = (hash << 16) ^ tmp;
    data += 2 * sizeof(uint16_t);
    hash += hash >> 11;
  }
  switch (rem) {
  case 3:
    hash += ((((uint32_t)(((const uint8_t *)(data))[1])) << 8) + (uint32_t)(((const uint8_t *)(data))[0]));
    hash ^= hash << 16;
    hash ^= data[sizeof(uint16_t)] << 18;
    hash += hash >> 11;
    break;
  case 2:
    hash += ((((uint32_t)(((const uint8_t *)(data))[1])) << 8) + (uint32_t)(((const uint8_t *)(data))[0]));
    hash ^= hash << 11;
    hash += hash >> 17;
    break;
  case 1:
    hash += *data;
    hash ^= hash << 10;
    hash += hash >> 1;
  }
  hash ^= hash << 3;
  hash += hash >> 5;
  hash ^= hash << 4;
  hash += hash >> 17;
  hash ^= hash << 25;
  hash += hash >> 6;
  return hash;
}
```