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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x210,%rsp
  mov    %edi,-0x204(%rbp)
  mov    %rsi,-0x210(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x210(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D22(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x1f0(%rbp)
  cmpq   $0x0,-0x1f0(%rbp)
  jne    L24
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L24:
  mov    -0x210(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x1e8(%rbp)
  cmpq   $0x0,-0x1e8(%rbp)
  jne    L13
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L13:
  movl   $0x0,-0x1f4(%rbp)
L12:
  mov    -0x1f0(%rbp),%rdx
  lea    -0x1a0(%rbp),%rax
  mov    $0x190,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L17
  lea    -0x1e0(%rbp),%rax
  lea    0x10(%rax),%r8
  lea    -0x1e0(%rbp),%rax
  lea    0x8(%rax),%rdi
  lea    -0x1e0(%rbp),%rcx
  lea    -0x1fc(%rbp),%rdx
  lea    -0x1a0(%rbp),%rax
  lea    -0x1f8(%rbp),%rsi
  push   %rsi
  lea    -0x1c0(%rbp),%rsi
  add    $0x10,%rsi
  push   %rsi
  lea    -0x1c0(%rbp),%rsi
  add    $0x8,%rsi
  push   %rsi
  lea    -0x1c0(%rbp),%rsi
  push   %rsi
  mov    %r8,%r9
  mov    %rdi,%r8
  lea    D54(%rip),%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  add    $0x20,%rsp
  mov    -0x1f8(%rbp),%ecx
  movsd  -0x1b0(%rbp),%xmm4
  movsd  -0x1b8(%rbp),%xmm3
  movsd  -0x1c0(%rbp),%xmm2
  movsd  -0x1d0(%rbp),%xmm1
  movsd  -0x1d8(%rbp),%xmm0
  mov    -0x1e0(%rbp),%rsi
  mov    -0x1fc(%rbp),%edx
  mov    -0x1e8(%rbp),%rax
  movapd %xmm4,%xmm5
  movapd %xmm3,%xmm4
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rsi,%xmm0
  lea    D27(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  addl   $0x1,-0x1f4(%rbp)
  jmp    L12
L17:
  nop
  mov    -0x1f0(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x1e8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L21
  call   <__stack_chk_fail@plt>
L21:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D22
data_type: string
name: extract_symbolic_data
arguments: label: D25
data_type: string
name: extract_symbolic_data
arguments: label: D0
data_type: string
name: extract_symbolic_data
arguments: label: D54
data_type: string
name: extract_symbolic_data
arguments: label: D27
data_type: string

tool: D22: r

tool: D25: Cannot open acc file!


tool: D0: w

tool: D54: %d%*s%lf%lf%lf%*f%*f%*f%lf%lf%lf%d

tool: D27: %10d %25.15e %25.15e %25.15e %25.15e %25.15e %25.15e %d 


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *fpin, *fpout;
  int i, gps, flg;
  double acc[3], res[3];
  char line[400];
  if ((fpin = fopen(argv[1], "r")) == NULL) {
    printf("Cannot open acc file!\n");
    exit(0);
  }
  if ((fpout = fopen(argv[2], "w")) == NULL) {
    printf("Cannot open acc file!\n");
    exit(0);
  }
  i = 0;
  while (1) {
    if (fgets(line, 400, fpin) == NULL)
      break;
    sscanf(line, "%d%*s%lf%lf%lf%*f%*f%*f%lf%lf%lf%d", &gps, &acc[0], &acc[1], &acc[2], &res[0], &res[1], &res[2], &flg);
    fprintf(fpout, "%10d %25.15e %25.15e %25.15e %25.15e %25.15e %25.15e %d \n", gps, acc[0], acc[1], acc[2], res[0], res[1], res[2], flg);
    i++;
  }
  fclose(fpin);
  fclose(fpout);
  return 0;
}
```