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

```asm
<uncompress>:
  endbr64
  push   %r14
  mov    $0xfe,%ecx
  pxor   %xmm0,%xmm0
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %r13,%rdx
  mov    %rsi,%r12
  lea    D15(%rip),%rsi
  push   %rbp
  push   %rbx
  sub    $0xc10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc08(%rsp)
  xor    %eax,%eax
  lea    0x410(%rsp),%rdi
  mov    %rsp,%rbp
  movaps %xmm0,(%rsp)
  movaps %xmm0,0x400(%rsp)
  rep stos %rax,%es:(%rdi)
  lea    0x10(%rsp),%rdi
  mov    $0x7e,%ecx
  rep stos %rax,%es:(%rdi)
  mov    $0x3,%edi
  call   <trace@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    $0x2e,%esi
  mov    %rbp,%rdi
  call   <strrchr@plt>
  test   %rax,%rax
  je     L237
  mov    %rax,%rbx
  movzbl (%rax),%eax
  cmp    $0x2e,%eax
  jne    L167
  cmpb   $0x7a,0x1(%rbx)
  je     L250
L79:
  cmp    $0x2e,%eax
  jne    L167
  cmpb   $0x5a,0x1(%rbx)
  je     L261
L167:
  lea    D91(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L103
L50:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  sub    %rbp,%rbx
  call   <strcpy@plt>
  movb   $0x0,(%r12,%rbx,1)
  xor    %eax,%eax
  mov    %r12,%rcx
  lea    0x400(%rsp),%r13
  mov    %rbp,%rdx
  lea    D79(%rip),%rsi
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rdi
  call   <execcmd@plt>
  test   %rax,%rax
  jne    L43
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0x1,%r13d
  call   <strcpy@plt>
L135:
  mov    $0x2e,%esi
  mov    %rbp,%rdi
  call   <strrchr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L202
  lea    D86(%rip),%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L78
L202:
  mov    $0x2e,%esi
  mov    %rbp,%rdi
  call   <strrchr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L281
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x3,%eax
  jg     L57
L281:
  mov    %r13d,%edx
  lea    D50(%rip),%rsi
  mov    $0x3,%edi
  xor    %eax,%eax
  call   <trace@plt>
L114:
  mov    0xc08(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L55
  add    $0xc10,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L43:
  mov    %r12,%rdi
  mov    $0xffffffff,%r13d
  call   <remove@plt>
  jmp    L114
  nopl   0x0(%rax,%rax,1)
L250:
  cmpb   $0x0,0x2(%rbx)
  je     L50
  jmp    L79
  nop
L261:
  cmpb   $0x0,0x2(%rbx)
  je     L50
  jmp    L167
  nop
L103:
  lea    D6(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L50
  lea    D0(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L50
  lea    D63(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L50
  xor    %r13d,%r13d
  jmp    L135
  nopl   (%rax)
L57:
  movzbl 0x3(%rbx),%eax
  and    $0xffffffdf,%eax
  cmp    $0x44,%al
  jne    L281
  mov    %rbp,%rsi
  mov    %r12,%rdi
  lea    0x400(%rsp),%r14
  call   <strcpy@plt>
  cmpb   $0x44,0x3(%rbx)
  mov    %r14,%rdi
  mov    %r12,%rcx
  mov    $0x6f,%edx
  mov    $0x4f,%eax
  lea    D17(%rip),%rsi
  cmovne %edx,%eax
  sub    %rbp,%rbx
  mov    %rbp,%rdx
  mov    %al,0x3(%r12,%rbx,1)
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %r14,%rdi
  call   <execcmd@plt>
  test   %rax,%rax
  je     L309
  mov    %r12,%rdi
  call   <remove@plt>
  nopw   0x0(%rax,%rax,1)
L296:
  test   %r13d,%r13d
  jne    L148
L30:
  mov    $0xffffffff,%r13d
  jmp    L114
L237:
  xor    %r13d,%r13d
  jmp    L114
  nopl   0x0(%rax,%rax,1)
L78:
  mov    %r12,%rdi
  mov    %rbp,%rsi
  sub    %rbp,%rbx
  call   <strcpy@plt>
  movb   $0x0,(%r12,%rbx,1)
  xor    %eax,%eax
  mov    %rbp,%rdx
  lea    0x400(%rsp),%r12
  lea    D11(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rdi
  call   <execcmd@plt>
  test   %rax,%rax
  jne    L296
L309:
  test   %r13d,%r13d
  jne    L252
L255:
  mov    $0x1,%r13d
  jmp    L281
  nopl   0x0(%rax)
L148:
  mov    %rbp,%rdi
  call   <remove@plt>
  jmp    L30
  nopw   0x0(%rax,%rax,1)
L252:
  mov    %rbp,%rdi
  call   <remove@plt>
  jmp    L255
L55:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D15
data_type: string
name: parse_data
arguments: data_label: D91
data_type: string
name: parse_data
arguments: data_label: D79
data_type: string
name: parse_data
arguments: data_label: D86
data_type: string
name: parse_data
arguments: data_label: D50
data_type: string
name: parse_data
arguments: data_label: D6
data_type: string
name: parse_data
arguments: data_label: D0
data_type: string
name: parse_data
arguments: data_label: D63
data_type: string
name: parse_data
arguments: data_label: D17
data_type: string
name: parse_data
arguments: data_label: D11
data_type: string

tool: D15: uncompress: file=%s


tool: D91: .gz

tool: D79: gzip -f -d -c "%s" > "%s"

tool: D86: .tar

tool: D50: uncompress: stat=%d


tool: D6: .GZ

tool: D0: .zip

tool: D63: .ZIP

tool: D17: crx2rnx < "%s" > "%s"

tool: D11: tar -xf "%s"

assistant: ```c
extern int uncompress(const char *file, char *uncfile) {
  int stat = 0;
  char *p, cmd[2048] = "", tmpfile[1024] = "";
  trace(3, "uncompress: file=%s\n", file);
  strcpy(tmpfile, file);
  if (!(p = strrchr(tmpfile, '.')))
    return 0;
  if (!strcmp(p, ".z") || !strcmp(p, ".Z") || !strcmp(p, ".gz") || !strcmp(p, ".GZ") || !strcmp(p, ".zip") || !strcmp(p, ".ZIP")) {
    strcpy(uncfile, tmpfile);
    uncfile[p - tmpfile] = '\0';
    sprintf(cmd, "gzip -f -d -c \"%s\" > \"%s\"", tmpfile, uncfile);
    if (execcmd(cmd)) {
      remove(uncfile);
      return -1;
    }
    strcpy(tmpfile, uncfile);
    stat = 1;
  }
  if ((p = strrchr(tmpfile, '.')) && !strcmp(p, ".tar")) {
    strcpy(uncfile, tmpfile);
    uncfile[p - tmpfile] = '\0';
    sprintf(cmd, "tar -xf \"%s\"", tmpfile);
    if (execcmd(cmd)) {
      if (stat)
        remove(tmpfile);
      return -1;
    }
    if (stat)
      remove(tmpfile);
    stat = 1;
  } else if ((p = strrchr(tmpfile, '.')) && strlen(p) > 3 && (*(p + 3) == 'd' || *(p + 3) == 'D')) {
    strcpy(uncfile, tmpfile);
    uncfile[p - tmpfile + 3] = *(p + 3) == 'D' ? 'O' : 'o';
    sprintf(cmd, "crx2rnx < \"%s\" > \"%s\"", tmpfile, uncfile);
    if (execcmd(cmd)) {
      remove(uncfile);
      if (stat)
        remove(tmpfile);
      return -1;
    }
    if (stat)
      remove(tmpfile);
    stat = 1;
  }
  trace(3, "uncompress: stat=%d\n", stat);
  return stat;
}
```