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

```asm
<_tw2_get_decode_key>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %r8d,0xc(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  movabs $0x100000000,%rax
  movl   $0x7,0x68(%rsp)
  movq   $0x3,0x60(%rsp)
  mov    %rax,0x40(%rsp)
  movabs $0x200000000,%rax
  mov    %rax,0x48(%rsp)
  add    $0x5,%rax
  mov    %rax,0x50(%rsp)
  movabs $0x300000000,%rax
  mov    %rax,0x58(%rsp)
  lea    D1(%rip),%rax
  mov    %rax,0x20(%rsp)
  lea    D21(%rip),%rax
  mov    %rax,0x28(%rsp)
  lea    D35(%rip),%rax
  mov    %rax,0x30(%rsp)
  lea    D46(%rip),%rax
  mov    %rax,0x38(%rsp)
  test   %ecx,%ecx
  je     L16
  lea    -0x1(%rcx),%r12d
  mov    %rdi,%r15
  lea    0x70(%rsp),%r14
  mov    $0xba2e8ba3,%ebp
  movslq %r12d,%rax
  lea    0xbe(%rsp),%rbx
  mov    %rax,(%rsp)
  nopl   0x0(%rax)
L100:
  movzbl (%r15),%edx
  mov    %r14,%rax
  cmp    $0x13,%dl
  jne    L75
  jmp    L68
  cs nopw 0x0(%rax,%rax,1)
L95:
  cmp    %rbx,%rax
  je     L68
L75:
  add    $0x1,%r15
  mov    %dl,(%rax)
  add    $0x1,%rax
  movzbl (%r15),%edx
  cmp    $0x13,%dl
  jne    L95
L68:
  movb   $0x0,(%rax)
  mov    %r14,%rdi
  mov    %r14,%r12
  xor    %r13d,%r13d
  call   <str_reverse@plt>
  jmp    L134
  nopl   0x0(%rax,%rax,1)
L3:
  mov    %r13d,%eax
  add    $0x1,%r12
  imul   %rbp,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%esi
  lea    (%rax,%rsi,2),%esi
  mov    %r13d,%eax
  sub    %esi,%eax
  lea    0xb(%r13),%esi
  add    $0x1,%r13d
  cltq
  imul   0x40(%rsp,%rax,4),%esi
  movslq %esi,%rax
  mov    %esi,%edi
  imul   $0x3e0f83e1,%rax,%rax
  sar    $0x1f,%edi
  sar    $0x23,%rax
  sub    %edi,%eax
  mov    %eax,%edi
  shl    $0x5,%edi
  add    %edi,%eax
  sub    %eax,%esi
  movzbl -0x1(%r12),%eax
  lea    -0x14(%rax,%rsi,1),%eax
  mov    %al,-0x1(%r12)
L134:
  mov    %r14,%rdi
  call   <str_len@plt>
  cmp    %eax,%r13d
  jl     L3
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jne    L1
  mov    (%rsp),%eax
  test   %eax,%eax
  je     L21
L71:
  cmpl   $0x3,(%rsp)
  je     L149
L106:
  cmp    $0x3b,%r13d
  jg     L121
  mov    $0x3c,%eax
  mov    $0x1,%edx
  sub    %r13d,%eax
  cmp    $0x3b,%r13d
  cmovg  %rdx,%rax
  add    %rax,%r15
L121:
  subq   $0x1,(%rsp)
  jmp    L100
L1:
  mov    (%rsp),%rax
  mov    %r14,%rdx
  lea    D27(%rip),%rdi
  mov    0x20(%rsp,%rax,8),%rsi
  call   <printf@plt>
  mov    (%rsp),%eax
  test   %eax,%eax
  jne    L71
L21:
  mov    0x10(%rsp),%rdi
  mov    %r14,%rsi
  call   <str_copy@plt>
L16:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L149:
  mov    0x18(%rsp),%rdi
  mov    %r14,%rsi
  call   <str_copy@plt>
  jmp    L106
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D1
datatype: string
name: parse_data
arguments: data_tag: D21
datatype: string
name: parse_data
arguments: data_tag: D35
datatype: string
name: parse_data
arguments: data_tag: D46
datatype: string
name: parse_data
arguments: data_tag: D27
datatype: string

tool: D1: key  

tool: D21: phone

tool: D35: email

tool: D46: time 

tool: D27: %s: %s


assistant: ```c
void _tw2_get_decode_key(char *skey, char *out_key, char *out_key_time, int cnt, int flag) {
  char akey[80], *pkey;
  register int i, j;
  const int length = 60;
  const int codec[] = {0, 1, 0, 2, 5, 2, 0, 3, 3, 0, 7};
  int k, asize = sizeof(codec) / sizeof(codec[0]);
  char *str[] = {"key  ", "phone", "email", "time "};
  while (cnt--) {
    pkey = akey;
    i = 0;
    while (*skey != 19 && i++ < 80 - 2)
      *pkey++ = *skey++;
    *pkey = '\0';
    str_reverse(akey);
    for (i = 0; i < (int)str_len(akey); i++) {
      k = i + asize;
      akey[i] += (k * (codec[i % asize])) % 33;
      akey[i] -= 20;
    }
    if (flag)
      printf("%s: %s\n", str[cnt], akey);
    if (cnt == 0)
      str_copy(out_key, akey);
    if (cnt == 3)
      str_copy(out_key_time, akey);
    for (j = i; j < length; j++)
      *skey++;
  }
}
```