user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %edi,-0xd4(%rbp)
  mov    %rsi,-0xe0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc8(%rbp)
  movl   $0x0,-0xc4(%rbp)
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L91
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L36
L91:
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  lea    -0x90(%rbp),%rax
  lea    D57(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xb8(%rbp)
  cmpq   $0x0,-0xb8(%rbp)
  je     L33
  lea    -0x90(%rbp),%rax
  lea    D7(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xb0(%rbp)
  cmpq   $0x0,-0xb0(%rbp)
  jne    L72
L33:
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L36
L122:
  movzbl -0x68(%rbp),%eax
  cmp    $0x3a,%al
  jne    L72
  movzbl -0x67(%rbp),%eax
  cmp    $0x20,%al
  jne    L72
  lea    -0x70(%rbp),%rax
  mov    %rax,-0xc0(%rbp)
  movl   $0x0,-0xc8(%rbp)
  lea    -0xa0(%rbp),%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  jmp    L123
L157:
  mov    -0xc0(%rbp),%rax
  lea    D42(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0xc0(%rbp)
  cmpq   $0x0,-0xc0(%rbp)
  je     L86
  mov    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x3,%eax
  jle    L17
  mov    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  cltq
  add    %rax,-0xc0(%rbp)
  jmp    L123
L17:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0xa2(%rbp)
  mov    -0xc0(%rbp),%rax
  movzbl 0x1(%rax),%eax
  mov    %al,-0xa1(%rbp)
  lea    -0xa2(%rbp),%rax
  mov    %rax,%rdi
  call   <AtoH@plt>
  mov    %al,-0xc9(%rbp)
  mov    -0xc8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc8(%rbp)
  cltq
  movzbl -0xc9(%rbp),%edx
  mov    %dl,-0xa0(%rbp,%rax,1)
  mov    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  cltq
  add    %rax,-0xc0(%rbp)
L123:
  cmpq   $0x0,-0xc0(%rbp)
  jne    L157
  jmp    L89
L86:
  nop
L89:
  movzbl -0xa0(%rbp),%eax
  test   %al,%al
  je     L72
  mov    -0xb0(%rbp),%rdx
  lea    -0xa0(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
L72:
  mov    -0xb8(%rbp),%rdx
  lea    -0x70(%rbp),%rax
  mov    $0x64,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L122
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L36:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L103
  call   <__stack_chk_fail@plt>
L103:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D49
type_guessed: string
name: unpack_data
arguments: data_label: D57
type_guessed: string
name: unpack_data
arguments: data_label: D29
type_guessed: string
name: unpack_data
arguments: data_label: D7
type_guessed: string
name: unpack_data
arguments: data_label: D25
type_guessed: string
name: unpack_data
arguments: data_label: D42
type_guessed: string

tool: D49: no src file


tool: D57: %s_v.bin

tool: D29: r

tool: D7: w+

tool: D25: open src/dst fail


tool: D42: 
 

assistant: ```c
int main(int argc, char *argv[]) {
  char dst_file[20], line[100], *p, xb[2];
  FILE *fp_s, *fp_d;
  unsigned char x, x6[16];
  int i = 0;
  int j = 0;
  if (!argv[1]) {
    printf("no src file\n");
    return -1;
  } else {
    sprintf(dst_file, "%s_v.bin", argv[1]);
  }
  if (((fp_s = fopen(argv[1], "r")) == NULL) || ((fp_d = fopen(dst_file, "w+")) == NULL)) {
    printf("open src/dst fail\n");
    return -1;
  }
  while (fgets(line, sizeof(line), fp_s) != (char *)0) {
    if (line[8] == ':' && line[9] == ' ') {
      p = line;
      i = 0;
      memset(x6, 0, sizeof(x6));
      while (p) {
        p = strtok(p, "\r\n ");
        if (p == NULL)
          break;
        if (strlen(p) > 3) {
          p += strlen(p) + 1;
          continue;
        }
        xb[0] = *p;
        xb[1] = *(p + 1);
        x = AtoH(xb);
        x6[i++] = x;
        p += strlen(p) + 1;
      }
      if (*x6)
        fwrite(x6, 1, sizeof(x6), fp_d);
    }
  }
  fclose(fp_s);
  fclose(fp_d);
  return 0;
}
```