user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<hashlittle_safe>:
  endbr64
  mov    %rdi,%rax
  mov    %rsi,%rdi
  lea    -0x21524111(%rdx,%rsi,1),%r9d
  cmp    $0xc,%rsi
  jbe    L22
  mov    %r9d,%r8d
  mov    %r9d,%ecx
L7:
  add    (%rax),%r8d
  mov    0x4(%rax),%edx
  shl    $0x8,%edx
  add    %r8d,%edx
  mov    0x8(%rax),%r8d
  shl    $0x10,%r8d
  add    %edx,%r8d
  mov    0xc(%rax),%edx
  shl    $0x18,%edx
  add    %edx,%r8d
  add    0x10(%rax),%ecx
  mov    0x14(%rax),%edx
  shl    $0x8,%edx
  add    %ecx,%edx
  mov    0x18(%rax),%ecx
  shl    $0x10,%ecx
  add    %edx,%ecx
  mov    0x1c(%rax),%esi
  shl    $0x18,%esi
  add    %ecx,%esi
  add    0x20(%rax),%r9d
  mov    0x24(%rax),%ecx
  shl    $0x8,%ecx
  add    %r9d,%ecx
  mov    0x28(%rax),%edx
  shl    $0x10,%edx
  add    %ecx,%edx
  mov    0x2c(%rax),%ecx
  shl    $0x18,%ecx
  add    %edx,%ecx
  sub    %ecx,%r8d
  mov    %ecx,%edx
  shl    $0x4,%edx
  mov    %ecx,%r9d
  sar    $0x1c,%r9d
  or     %r9d,%edx
  xor    %r8d,%edx
  lea    (%rsi,%rcx,1),%r8d
  sub    %edx,%esi
  mov    %edx,%ecx
  shl    $0x6,%ecx
  mov    %edx,%r9d
  sar    $0x1a,%r9d
  or     %r9d,%ecx
  xor    %esi,%ecx
  lea    (%rdx,%r8,1),%esi
  sub    %ecx,%r8d
  mov    %ecx,%edx
  shl    $0x8,%edx
  mov    %ecx,%r9d
  sar    $0x18,%r9d
  or     %r9d,%edx
  xor    %r8d,%edx
  add    %esi,%ecx
  sub    %edx,%esi
  mov    %edx,%r8d
  shl    $0x10,%r8d
  mov    %edx,%r9d
  sar    $0x10,%r9d
  or     %r9d,%r8d
  xor    %esi,%r8d
  add    %ecx,%edx
  sub    %r8d,%ecx
  mov    %r8d,%esi
  shl    $0x13,%esi
  mov    %r8d,%r9d
  sar    $0xd,%r9d
  or     %r9d,%esi
  xor    %esi,%ecx
  add    %edx,%r8d
  sub    %ecx,%edx
  mov    %ecx,%r9d
  shl    $0x4,%r9d
  mov    %ecx,%esi
  sar    $0x1c,%esi
  or     %esi,%r9d
  xor    %edx,%r9d
  add    %r8d,%ecx
  sub    $0xc,%rdi
  add    $0x30,%rax
  cmp    $0xc,%rdi
  ja     L7
L27:
  cmp    $0xc,%rdi
  ja     L12
  lea    D9(%rip),%rsi
  movslq (%rsi,%rdi,4),%rdx
  add    %rsi,%rdx
  notrack jmp *%rdx
L22:
  mov    %r9d,%r8d
  mov    %r9d,%ecx
  jmp    L27
  mov    0x2c(%rax),%edx
  shl    $0x18,%edx
  add    %edx,%r9d
  mov    0x28(%rax),%edx
  shl    $0x10,%edx
  add    %edx,%r9d
  mov    0x24(%rax),%edx
  shl    $0x8,%edx
  add    %edx,%r9d
  add    0x20(%rax),%r9d
  mov    0x1c(%rax),%edx
  shl    $0x18,%edx
  add    %edx,%ecx
  mov    0x18(%rax),%edx
  shl    $0x10,%edx
  add    %edx,%ecx
  mov    0x14(%rax),%edx
  shl    $0x8,%edx
  add    %edx,%ecx
  add    0x10(%rax),%ecx
  mov    0xc(%rax),%edx
  shl    $0x18,%edx
  add    %edx,%r8d
  mov    0x8(%rax),%edx
  shl    $0x10,%edx
  add    %edx,%r8d
  mov    0x4(%rax),%edx
  shl    $0x8,%edx
  add    %edx,%r8d
  add    (%rax),%r8d
L12:
  xor    %ecx,%r9d
  mov    %ecx,%eax
  shl    $0xe,%eax
  mov    %ecx,%edx
  sar    $0x12,%edx
  or     %edx,%eax
  sub    %eax,%r9d
  xor    %r9d,%r8d
  mov    %r9d,%eax
  shl    $0xb,%eax
  mov    %r9d,%edx
  sar    $0x15,%edx
  or     %edx,%eax
  sub    %eax,%r8d
  xor    %r8d,%ecx
  mov    %r8d,%eax
  shl    $0x19,%eax
  mov    %r8d,%edx
  sar    $0x7,%edx
  or     %edx,%eax
  sub    %eax,%ecx
  xor    %ecx,%r9d
  mov    %ecx,%eax
  shl    $0x10,%eax
  mov    %ecx,%edx
  sar    $0x10,%edx
  or     %edx,%eax
  sub    %eax,%r9d
  xor    %r9d,%r8d
  mov    %r9d,%eax
  shl    $0x4,%eax
  mov    %r9d,%edx
  sar    $0x1c,%edx
  or     %edx,%eax
  sub    %eax,%r8d
  xor    %r8d,%ecx
  mov    %r8d,%eax
  shl    $0xe,%eax
  sar    $0x12,%r8d
  or     %r8d,%eax
  sub    %eax,%ecx
  xor    %ecx,%r9d
  mov    %ecx,%eax
  shl    $0x18,%eax
  sar    $0x8,%ecx
  or     %ecx,%eax
  sub    %eax,%r9d
  mov    %r9d,%eax
  ret
```

assistant: ```c
uint32_t hashlittle_safe(const void *key, size_t length, uint32_t initval) {
  uint32_t a, b, c;
  union {
    const void *ptr;
    size_t i;
  } u;
  a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
  u.ptr = key;
  if (0 && ((u.i & 0x3) == 0)) {
    const uint32_t *k = (const uint32_t *)key;
    while (length > 12) {
      a += k[0];
      b += k[1];
      c += k[2];
      {
        a -= c;
        a ^= (((c) << (4)) | ((c) >> (32 - (4))));
        c += b;
        b -= a;
        b ^= (((a) << (6)) | ((a) >> (32 - (6))));
        a += c;
        c -= b;
        c ^= (((b) << (8)) | ((b) >> (32 - (8))));
        b += a;
        a -= c;
        a ^= (((c) << (16)) | ((c) >> (32 - (16))));
        c += b;
        b -= a;
        b ^= (((a) << (19)) | ((a) >> (32 - (19))));
        a += c;
        c -= b;
        c ^= (((b) << (4)) | ((b) >> (32 - (4))));
        b += a;
      };
      length -= 12;
      k += 3;
    }
    const uint8_t *k8 = (const uint8_t *)k;
    switch (length) {
    case 12:
      c += k[2];
      b += k[1];
      a += k[0];
      break;
    case 11:
      c += ((uint32_t)k8[10]) << 16;
    case 10:
      c += ((uint32_t)k8[9]) << 8;
    case 9:
      c += k8[8];
    case 8:
      b += k[1];
      a += k[0];
      break;
    case 7:
      b += ((uint32_t)k8[6]) << 16;
    case 6:
      b += ((uint32_t)k8[5]) << 8;
    case 5:
      b += k8[4];
    case 4:
      a += k[0];
      break;
    case 3:
      a += ((uint32_t)k8[2]) << 16;
    case 2:
      a += ((uint32_t)k8[1]) << 8;
    case 1:
      a += k8[0];
      break;
    case 0:
      return c;
    }
  } else if (0 && ((u.i & 0x1) == 0)) {
    const uint16_t *k = (const uint16_t *)key;
    const uint8_t *k8;
    while (length > 12) {
      a += k[0] + (((uint32_t)k[1]) << 16);
      b += k[2] + (((uint32_t)k[3]) << 16);
      c += k[4] + (((uint32_t)k[5]) << 16);
      {
        a -= c;
        a ^= (((c) << (4)) | ((c) >> (32 - (4))));
        c += b;
        b -= a;
        b ^= (((a) << (6)) | ((a) >> (32 - (6))));
        a += c;
        c -= b;
        c ^= (((b) << (8)) | ((b) >> (32 - (8))));
        b += a;
        a -= c;
        a ^= (((c) << (16)) | ((c) >> (32 - (16))));
        c += b;
        b -= a;
        b ^= (((a) << (19)) | ((a) >> (32 - (19))));
        a += c;
        c -= b;
        c ^= (((b) << (4)) | ((b) >> (32 - (4))));
        b += a;
      };
      length -= 12;
      k += 6;
    }
    k8 = (const uint8_t *)k;
    switch (length) {
    case 12:
      c += k[4] + (((uint32_t)k[5]) << 16);
      b += k[2] + (((uint32_t)k[3]) << 16);
      a += k[0] + (((uint32_t)k[1]) << 16);
      break;
    case 11:
      c += ((uint32_t)k8[10]) << 16;
    case 10:
      c += k[4];
      b += k[2] + (((uint32_t)k[3]) << 16);
      a += k[0] + (((uint32_t)k[1]) << 16);
      break;
    case 9:
      c += k8[8];
    case 8:
      b += k[2] + (((uint32_t)k[3]) << 16);
      a += k[0] + (((uint32_t)k[1]) << 16);
      break;
    case 7:
      b += ((uint32_t)k8[6]) << 16;
    case 6:
      b += k[2];
      a += k[0] + (((uint32_t)k[1]) << 16);
      break;
    case 5:
      b += k8[4];
    case 4:
      a += k[0] + (((uint32_t)k[1]) << 16);
      break;
    case 3:
      a += ((uint32_t)k8[2]) << 16;
    case 2:
      a += k[0];
      break;
    case 1:
      a += k8[0];
      break;
    case 0:
      return c;
    }
  } else {
    const uint8_t *k = (const uint8_t *)key;
    while (length > 12) {
      a += k[0];
      a += ((uint32_t)k[1]) << 8;
      a += ((uint32_t)k[2]) << 16;
      a += ((uint32_t)k[3]) << 24;
      b += k[4];
      b += ((uint32_t)k[5]) << 8;
      b += ((uint32_t)k[6]) << 16;
      b += ((uint32_t)k[7]) << 24;
      c += k[8];
      c += ((uint32_t)k[9]) << 8;
      c += ((uint32_t)k[10]) << 16;
      c += ((uint32_t)k[11]) << 24;
      {
        a -= c;
        a ^= (((c) << (4)) | ((c) >> (32 - (4))));
        c += b;
        b -= a;
        b ^= (((a) << (6)) | ((a) >> (32 - (6))));
        a += c;
        c -= b;
        c ^= (((b) << (8)) | ((b) >> (32 - (8))));
        b += a;
        a -= c;
        a ^= (((c) << (16)) | ((c) >> (32 - (16))));
        c += b;
        b -= a;
        b ^= (((a) << (19)) | ((a) >> (32 - (19))));
        a += c;
        c -= b;
        c ^= (((b) << (4)) | ((b) >> (32 - (4))));
        b += a;
      };
      length -= 12;
      k += 12;
    }
    switch (length) {
    case 12:
      c += ((uint32_t)k[11]) << 24;
    case 11:
      c += ((uint32_t)k[10]) << 16;
    case 10:
      c += ((uint32_t)k[9]) << 8;
    case 9:
      c += k[8];
    case 8:
      b += ((uint32_t)k[7]) << 24;
    case 7:
      b += ((uint32_t)k[6]) << 16;
    case 6:
      b += ((uint32_t)k[5]) << 8;
    case 5:
      b += k[4];
    case 4:
      a += ((uint32_t)k[3]) << 24;
    case 3:
      a += ((uint32_t)k[2]) << 16;
    case 2:
      a += ((uint32_t)k[1]) << 8;
    case 1:
      a += k[0];
      break;
    case 0:
      return c;
    }
  }
  {
    c ^= b;
    c -= (((b) << (14)) | ((b) >> (32 - (14))));
    a ^= c;
    a -= (((c) << (11)) | ((c) >> (32 - (11))));
    b ^= a;
    b -= (((a) << (25)) | ((a) >> (32 - (25))));
    c ^= b;
    c -= (((b) << (16)) | ((b) >> (32 - (16))));
    a ^= c;
    a -= (((c) << (4)) | ((c) >> (32 - (4))));
    b ^= a;
    b -= (((a) << (14)) | ((a) >> (32 - (14))));
    c ^= b;
    c -= (((b) << (24)) | ((b) >> (32 - (24))));
  };
  return c;
}
```