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

```asm
<SuperFastHash2>:
  endbr64
  test   %esi,%esi
  jle    L127
  test   %rdi,%rdi
  je     L127
  mov    %esi,%r9d
  mov    %esi,%r8d
  push   %r12
  mov    %esi,%edx
  and    $0x3,%r9d
  sar    $0x2,%r8d
  push   %rbp
  push   %rbx
  je     L21
  cmp    $0x2,%r8d
  jle    L111
  lea    -0x3(%r8),%eax
  lea    -0x2(%r8),%r10d
  mov    (%rdi),%rbp
  mov    0x2(%rdi),%r11
  and    $0xfffffffe,%eax
  mov    %r8d,%esi
  mov    %rdi,%rcx
  sub    %eax,%r10d
L58:
  mov    0x8(%rcx),%r12
  mov    0xa(%rcx),%rbx
  sub    $0x2,%esi
  add    $0x10,%rcx
  mov    %r12d,%eax
  shl    $0x8,%eax
  add    %ebp,%eax
  mov    (%rcx),%rbp
  add    %edx,%eax
  mov    %ebx,%edx
  shl    $0x8,%edx
  add    %r11d,%edx
  mov    0x2(%rcx),%r11
  shl    $0xb,%edx
  xor    %eax,%edx
  shl    $0x10,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sar    $0xb,%edx
  add    %eax,%edx
  mov    %ebp,%eax
  shl    $0x8,%eax
  add    %r12d,%eax
  add    %edx,%eax
  mov    %r11d,%edx
  shl    $0x8,%edx
  add    %ebx,%edx
  shl    $0xb,%edx
  xor    %eax,%edx
  shl    $0x10,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sar    $0xb,%edx
  add    %eax,%edx
  cmp    %esi,%r10d
  jne    L58
L39:
  lea    -0x1(%rsi),%eax
  lea    0x8(%rcx,%rax,8),%rsi
  nopl   (%rax)
L63:
  mov    0x8(%rcx),%eax
  add    $0x8,%rcx
  shl    $0x8,%eax
  add    -0x8(%rcx),%eax
  add    %edx,%eax
  mov    0x2(%rcx),%edx
  shl    $0x8,%edx
  add    -0x6(%rcx),%edx
  shl    $0xb,%edx
  xor    %eax,%edx
  shl    $0x10,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sar    $0xb,%edx
  add    %eax,%edx
  cmp    %rcx,%rsi
  jne    L63
  movslq %r8d,%r8
  lea    (%rdi,%r8,8),%rdi
L21:
  cmp    $0x2,%r9d
  je     L118
  cmp    $0x3,%r9d
  je     L59
  cmp    $0x1,%r9d
  je     L92
L78:
  lea    0x0(,%rdx,8),%eax
  pop    %rbx
  pop    %rbp
  xor    %eax,%edx
  pop    %r12
  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
  nopl   0x0(%rax)
L127:
  xor    %eax,%eax
  ret
  nopl   0x0(%rax,%rax,1)
L92:
  movsbl (%rdi),%eax
  add    %eax,%edx
  mov    %edx,%eax
  shl    $0xa,%eax
  xor    %edx,%eax
  mov    %eax,%edx
  sar    %edx
  add    %eax,%edx
  jmp    L78
  nopl   0x0(%rax)
L59:
  mov    0x8(%rdi),%eax
  shl    $0x8,%eax
  add    (%rdi),%eax
  add    %edx,%eax
  movsbl 0x4(%rdi),%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    L78
  nopl   0x0(%rax,%rax,1)
L118:
  mov    0x8(%rdi),%eax
  shl    $0x8,%eax
  add    (%rdi),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shl    $0xb,%edx
  xor    %edx,%eax
  mov    %eax,%edx
  sar    $0x11,%edx
  add    %eax,%edx
  jmp    L78
L111:
  mov    %r8d,%esi
  mov    %rdi,%rcx
  jmp    L39
```

assistant: ```c
uint32_t SuperFastHash2(const char *data, int len) {
  uint32_t hash = len, tmp;
  int rem;
  if (len <= 0 || data == NULL)
    return 0;
  rem = len & 3;
  len >>= 2;
  for (; len > 0; len--) {
    register uint32_t next;
    next = ((((uint32_t)(((const uint8_t *)(data + 2))[1])) << 8) + (uint32_t)(((const uint8_t *)(data + 2))[0]));
    hash += ((((uint32_t)(((const uint8_t *)(data))[1])) << 8) + (uint32_t)(((const uint8_t *)(data))[0]));
    tmp = (next << 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;
}
```