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

```asm
<main>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  lea    D2(%rip),%rdi
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  movaps %xmm0,0x80(%rsp)
  movaps %xmm0,0x90(%rsp)
  movaps %xmm0,0xa0(%rsp)
  movaps %xmm0,0xb0(%rsp)
  movaps %xmm0,0xc0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  movaps %xmm0,0x100(%rsp)
  call   <printf@plt>
  cmp    $0x1,%ebx
  jle    L66
  lea    -0x1(%rbx),%eax
  cmp    $0x2,%ebx
  je     L112
  cltq
  xor    %r14d,%r14d
  lea    D13(%rip),%r15
  shl    $0x3,%rax
  lea    -0x8(%r12,%rax,1),%rdx
  lea    (%r12,%rax,1),%r13
  lea    -0x3(%rbx),%eax
  shl    $0x3,%rax
  sub    %rax,%rdx
  mov    %rdx,0x8(%rsp)
  nopl   (%rax)
L40:
  mov    0x0(%r13),%rdi
  mov    %r15,%rsi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L93
  lea    0x10(%rsp),%rbx
  mov    $0x100,%edx
  xor    %esi,%esi
  xor    %r14d,%r14d
  mov    %rbx,%rdi
  call   <memset@plt>
  jmp    L128
  nopl   0x0(%rax)
L98:
  mov    0x8(%r12),%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L149
L128:
  mov    %rbp,%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L98
  sub    $0x8,%r13
  cmp    0x8(%rsp),%r13
  jne    L40
L84:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x128,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L149:
  test   %r14d,%r14d
  je     L140
L11:
  mov    %rbx,%rsi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <printf@plt>
  mov    $0x100,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  jmp    L128
  nopl   0x0(%rax,%rax,1)
L93:
  mov    0x0(%r13),%rsi
  lea    D34(%rip),%rdi
  xor    %eax,%eax
  sub    $0x8,%r13
  call   <printf@plt>
  cmp    0x8(%rsp),%r13
  jne    L40
  jmp    L84
  cs nopw 0x0(%rax,%rax,1)
L140:
  mov    0x0(%r13),%rsi
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L11
L66:
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  xor    %r14d,%r14d
  call   <printf@plt>
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L84
L1:
  call   <__stack_chk_fail@plt>
L112:
  xor    %r14d,%r14d
  jmp    L84
```

tool_calls: name: parse_data
arguments: data_label: D2
type: string
name: parse_data
arguments: data_label: D13
type: string
name: parse_data
arguments: data_label: D7
type: string
name: parse_data
arguments: data_label: D34
type: string
name: parse_data
arguments: data_label: D49
type: string
name: parse_data
arguments: data_label: D26
type: string

tool: D2: 
This program finds a pattern into the input lines
The patern is give as a command line arguments.

tool: D13: r

tool: D7: 
	%s

tool: D34: 
error: Couldn't open file: %s

tool: D49: 
In file %s

tool: D26: 
error: Correct usage
	./exec_file pattern [optional] named_files_where_to_find_pattern

assistant: ```c
int main(int argc, char *argv[]) {
  char line[256] = {0};
  int found = 0;
  FILE *f = NULL;
  printf("\nThis program finds a pattern into the input lines\nThe patern is give as a command line arguments.");
  if (argc < 2) {
    printf("\nerror: Correct usage\n\t./exec_file pattern [optional] named_files_where_to_find_pattern");
    exit(0);
  }
  while (argc-- > 2) {
    if ((f = fopen(argv[argc], "r")) == NULL) {
      printf("\nerror: Couldn't open file: %s", argv[argc]);
      continue;
    }
    found = 0;
    memset(line, 0, 256);
    while (fgets(line, 256, f) != NULL) {
      if (strstr(line, argv[1]) != NULL) {
        if (!found)
          printf("\nIn file %s", argv[argc]);
        printf("\n\t%s", line);
        memset(line, 0, 256);
        found++;
      }
    }
  }
  return found;
}
```