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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  movl   $0x61746164,0x2b(%rsp)
  movb   $0x0,0x2f(%rsp)
  cmp    $0x2,%edi
  je     L18
  cmp    $0x5,%edi
  jne    L11
L6:
  mov    0x8(%rbx),%rdi
  lea    D63(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%r14
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  mov    %eax,0x1c(%rsp)
  mov    0x18(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  mov    0x20(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,0xc(%rsp)
  test   %r15d,%r15d
  je     L222
  lea    0x50(%rsp),%rbp
  mov    $0x1,%edx
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  lea    0x2b(%rsp),%rsi
  lea    0x30(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  lea    D200(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  movl   $0x1,0x8(%rsp)
  jmp    L145
L18:
  mov    0x8(%rsi),%rdi
  lea    D109(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L235
L11:
  lea    D220(%rip),%rdi
  call   <printf@plt>
  lea    D139(%rip),%rdi
  call   <errorHandler@plt>
  jmp    L6
L235:
  lea    D195(%rip),%rdi
  call   <printf@plt>
  lea    D37(%rip),%rdi
  call   <printf@plt>
  lea    D100(%rip),%rdi
  call   <printf@plt>
  lea    D210(%rip),%rdi
  call   <printf@plt>
  lea    D64(%rip),%rdi
  call   <printf@plt>
  lea    D56(%rip),%rdi
  call   <printf@plt>
  lea    D176(%rip),%rdi
  call   <printf@plt>
  lea    D217(%rip),%rdi
  call   <printf@plt>
  lea    D245(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L6
L63:
  test   %r13d,%r13d
  je     L58
  mov    $0x0,%ebx
  lea    0x20(%rsp),%r15
  test   %r12d,%r12d
  je     L166
L122:
  mov    %r15,%rdx
  lea    D75(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  movsd  0x20(%rsp),%xmm0
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L122
L166:
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  add    $0x1,%r13d
  cmp    %r13d,0xc(%rsp)
  jb     L112
L68:
  cmpl   $0x1,0x8(%rsp)
  jne    L63
  test   %r13d,%r13d
  jne    L63
  test   %r12d,%r12d
  je     L166
  mov    $0x0,%ebx
  lea    0x80(%rsp),%r15
L193:
  mov    %r15,%rdx
  lea    D196(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %r15,%rdx
  lea    D94(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L193
  jmp    L166
L58:
  test   %r12d,%r12d
  je     L166
  mov    %r13d,%ebx
  lea    0x80(%rsp),%r15
  mov    %r13d,0x18(%rsp)
  mov    0x10(%rsp),%r13
L171:
  mov    %r15,%rdx
  lea    D196(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %r15,%rdx
  lea    D94(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r12d
  jne    L171
  mov    0x18(%rsp),%r13d
  jmp    L166
L112:
  mov    %rbp,%rdi
  call   <fclose@plt>
  cmpl   $0x1,0x8(%rsp)
  jbe    L33
  mov    0x10(%rsp),%rdi
  call   <fclose@plt>
L33:
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    %eax,0x1c(%rsp)
  jb     L222
  lea    0x50(%rsp),%rbp
  mov    0x8(%rsp),%r15d
  mov    %r15d,%edx
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  lea    0x2b(%rsp),%rsi
  lea    0x30(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  lea    D200(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  cmp    $0x1,%r15d
  jbe    L145
  lea    D63(%rip),%rsi
  lea    D193(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,0x10(%rsp)
L145:
  mov    $0x0,%r13d
  jmp    L68
L222:
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L231
  mov    $0x1,%eax
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L231:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D63
type_guessed: string
name: parse_data
arguments: data_label: D39
type_guessed: string
name: parse_data
arguments: data_label: D200
type_guessed: string
name: parse_data
arguments: data_label: D109
type_guessed: string
name: parse_data
arguments: data_label: D220
type_guessed: string
name: parse_data
arguments: data_label: D139
type_guessed: string
name: parse_data
arguments: data_label: D195
type_guessed: string
name: parse_data
arguments: data_label: D37
type_guessed: string
name: parse_data
arguments: data_label: D100
type_guessed: string
name: parse_data
arguments: data_label: D210
type_guessed: string
name: parse_data
arguments: data_label: D64
type_guessed: string
name: parse_data
arguments: data_label: D56
type_guessed: string
name: parse_data
arguments: data_label: D176
type_guessed: string
name: parse_data
arguments: data_label: D217
type_guessed: string
name: parse_data
arguments: data_label: D245
type_guessed: string
name: parse_data
arguments: data_label: D75
type_guessed: string
name: parse_data
arguments: data_label: D30
type_guessed: string
name: parse_data
arguments: data_label: D196
type_guessed: string
name: parse_data
arguments: data_label: D94
type_guessed: string
name: parse_data
arguments: data_label: D193
type_guessed: string

tool: D63: r

tool: D39: %d

tool: D200: w

tool: D109: -h

tool: D220: 

Correct symtax is: ./break filename nFiles nCols nRows


tool: D139: Type './break -h' for help.


tool: D195: 

Call as:

	./break filename nFiles nCols nRows



tool: D37: Breaks a data file into several. Useful when calculations for 

tool: D100: several planes
in Z are done and need to be stored in 

tool: D210: independent files with only the X
and Y information.



tool: D64: Takes the filename to break as input 1 and the number of files 

tool: D56: to produce as
input 2, followed by the number of columns to 

tool: D176: read in the original file and
the number of rows in each of the 

tool: D217: output data files. The files are saved as
'data1, data2,...' and

tool: D245:  saves columns (X,Y,Z,T).



tool: D75: %le

tool: D30: %le   

tool: D196: %s

tool: D94: %s    

tool: D193: data1

assistant: ```c
int main(int argc, char *argv[]) {
  FILE *fIn, *fOut, *fTmp;
  char filename[32], buffer[33], name[] = "data", title[33];
  unsigned int i, j, k, NFILES, NCOLS, NROWS;
  double data;
  if (argc == 2 && strcmp(argv[1], "-h") == 0) {
    printf("\n\nCall as:\n\n\t./break filename nFiles nCols nRows\n\n");
    printf("Breaks a data file into several. Useful when calculations for ");
    printf("several planes\nin Z are done and need to be stored in ");
    printf("independent files with only the X\nand Y information.\n\n");
    printf("Takes the filename to break as input 1 and the number of files ");
    printf("to produce as\ninput 2, followed by the number of columns to ");
    printf("read in the original file and\nthe number of rows in each of the ");
    printf("output data files. The files are saved as\n'data1, data2,...' and");
    printf(" saves columns (X,Y,Z,T).\n\n");
    exit(0);
  } else if (argc != 5) {
    printf("\n\nCorrect symtax is: ./break filename nFiles nCols nRows\n");
    errorHandler("Type './break -h' for help.\n");
  }
  fIn = fopen(argv[1], "r");
  NFILES = atoi(argv[2]);
  NCOLS = atoi(argv[3]);
  NROWS = atoi(argv[4]);
  for (i = 1; i <= NFILES; i++) {
    sprintf(buffer, "%d", i);
    strcpy(filename, name);
    strcat(filename, buffer);
    fOut = fopen(filename, "w");
    if (i > 1)
      fTmp = fopen("data1", "r");
    for (j = 0; j <= NROWS; j++) {
      if (i == 1 && j == 0) {
        for (k = 0; k < NCOLS; k++) {
          fscanf(fIn, "%s", &title);
          fprintf(fOut, "%s    ", title);
        }
      } else if (!j) {
        for (k = 0; k < NCOLS; k++) {
          fscanf(fTmp, "%s", &title);
          fprintf(fOut, "%s    ", title);
        }
      } else {
        for (k = 0; k < NCOLS; k++) {
          fscanf(fIn, "%le", &data);
          fprintf(fOut, "%le   ", data);
        }
      }
      fprintf(fOut, "\n");
    }
    fclose(fOut);
    if (i > 1)
      fclose(fTmp);
  }
  fclose(fIn);
  return 1;
}
```