user: Please show me the C implementation that matches the assembly code listed below:

```asm
<tiger>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  movabs $0x7654321089abcdef,%rax
  movl   $0xc3b2e187,0x8(%rdx)
  mov    %rax,(%rdx)
  cmp    $0x3f,%esi
  jle    L36
  lea    -0x40(%rsi),%r15d
  mov    %r15d,%r14d
  shr    $0x6,%r14d
  lea    0x1(%r14),%r12d
  shl    $0x5,%r12
  add    %rdi,%r12
  nopl   0x0(%rax)
L143:
  mov    %rbx,%rdi
  mov    %r13,%rsi
  add    $0x20,%rbx
  call   <tiger_compress@plt>
  cmp    %rbx,%r12
  jne    L143
  shl    $0x6,%r14d
  sub    %r14d,%r15d
  test   %r15d,%r15d
  jle    L235
L65:
  mov    %r15d,%edx
  mov    %rsp,%r14
  mov    %r12,%rsi
  shl    $0x2,%rdx
  mov    %r14,%rdi
  call   <memcpy@plt>
  lea    0x1(%r15),%edx
  movslq %r15d,%r15
  movl   $0x1,(%rsp,%r15,4)
  test   $0x7,%dl
  je     L108
L189:
  add    $0x1,%edx
  movslq %edx,%rax
  nopl   0x0(%rax,%rax,1)
L153:
  movl   $0x0,-0x4(%r14,%rax,4)
  mov    %eax,%edx
  add    $0x1,%rax
  test   $0x7,%dl
  jne    L153
L108:
  cmp    $0x38,%edx
  jle    L144
  cmp    $0x3f,%edx
  jg     L112
  mov    $0x40,%eax
  xor    %edi,%edi
  sub    %edx,%eax
  movslq %edx,%rdx
  shl    $0x2,%rax
  lea    (%r14,%rdx,4),%rdx
  cmp    $0x8,%eax
  jae    L194
  test   $0x4,%al
  jne    L75
  test   %eax,%eax
  je     L112
  movb   $0x0,(%rdx)
L112:
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <tiger_compress@plt>
  xor    %edx,%edx
L156:
  mov    $0x38,%eax
  sub    %edx,%eax
  movslq %edx,%rdx
  shl    $0x2,%rax
  lea    (%r14,%rdx,4),%rdx
  cmp    $0x8,%eax
  jae    L102
  test   $0x4,%al
  jne    L134
  test   %eax,%eax
  je     L229
  movb   $0x0,(%rdx)
  nopl   0x0(%rax)
L229:
  shl    $0x3,%ebp
  mov    %r13,%rsi
  mov    %r14,%rdi
  mov    %ebp,0xe0(%rsp)
  call   <tiger_compress@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L144:
  jne    L156
  jmp    L229
  nopl   0x0(%rax)
L102:
  lea    0x8(%rdx),%rdi
  mov    %eax,%ecx
  movq   $0x0,(%rdx)
  movq   $0x0,-0x8(%rdx,%rcx,1)
  and    $0xfffffffffffffff8,%rdi
  sub    %rdi,%rdx
  lea    (%rax,%rdx,1),%ecx
  mov    %ecx,%eax
  shr    $0x3,%eax
  mov    %eax,%ecx
  xor    %eax,%eax
  rep stos %rax,%es:(%rdi)
  jmp    L229
  cs nopw 0x0(%rax,%rax,1)
L194:
  mov    %eax,%ecx
  movq   $0x0,(%rdx)
  movq   $0x0,-0x8(%rdx,%rcx,1)
  lea    0x8(%rdx),%rcx
  and    $0xfffffffffffffff8,%rcx
  sub    %rcx,%rdx
  add    %edx,%eax
  and    $0xfffffff8,%eax
  cmp    $0x8,%eax
  jb     L112
  and    $0xfffffff8,%eax
  xor    %edx,%edx
L180:
  mov    %edx,%esi
  add    $0x8,%edx
  mov    %rdi,(%rcx,%rsi,1)
  cmp    %eax,%edx
  jb     L180
  jmp    L112
  nopw   0x0(%rax,%rax,1)
L36:
  mov    %esi,%r15d
  mov    %rdi,%r12
  test   %r15d,%r15d
  jg     L65
  nopw   0x0(%rax,%rax,1)
L235:
  movl   $0x1,(%rsp)
  mov    $0x1,%edx
  mov    %rsp,%r14
  jmp    L189
L75:
  mov    %eax,%eax
  movl   $0x0,(%rdx)
  movl   $0x0,-0x4(%rdx,%rax,1)
  jmp    L112
L134:
  mov    %eax,%eax
  movl   $0x0,(%rdx)
  movl   $0x0,-0x4(%rdx,%rax,1)
  jmp    L229
L48:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void tiger(uint64_t *str, uint64_t length, uint64_t res[3]) {
  uint64_t i, j;
  uint8_t temp[64];
  res[0] = 0x0123456789ABCDEFULL;
  res[1] = 0xFEDCBA9876543210ULL;
  res[2] = 0xF096A5B4C3B2E187ULL;
  for (i = length; i >= 64; i -= 64) {
    tiger_compress(str, res);
    str += 8;
  }
  for (j = 0; j < i; j++)
    temp[j] = ((uint8_t *)str)[j];
  temp[j++] = 0x01;
  for (; j & 7; j++)
    temp[j] = 0;
  if (j > 56) {
    for (; j < 64; j++)
      temp[j] = 0;
    tiger_compress(((uint64_t *)temp), res);
    j = 0;
  }
  for (; j < 56; j++)
    temp[j] = 0;
  ((uint64_t *)(&(temp[56])))[0] = ((uint64_t)length) << 3;
  tiger_compress(((uint64_t *)temp), res);
}
```