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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %edi,%ebx
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movq   $0x0,0x20(%rsp)
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x78(%rsp)
  movq   $0x0,0x80(%rsp)
  movq   $0x0,0x88(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xb0(%rsp)
  movq   $0x0,0xb8(%rsp)
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xe8(%rsp)
  movq   $0x0,0xf0(%rsp)
  movq   $0x0,0xf8(%rsp)
  movq   $0x0,0x100(%rsp)
  movq   $0x0,0x108(%rsp)
  lea    D53(%rip),%rdi
  call   <printf@plt>
  cmp    $0x1,%ebx
  jle    L8
  lea    -0x1(%rbx),%eax
  cmp    $0x2,%ebx
  jle    L29
  cltq
  shl    $0x3,%rax
  lea    (%r12,%rax,1),%r13
  lea    -0x8(%r12,%rax,1),%r15
  lea    -0x3(%rbx),%eax
  shl    $0x3,%rax
  sub    %rax,%r15
  mov    $0x0,%r14d
  jmp    L86
L8:
  lea    D49(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  mov    $0x0,%r14d
L15:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L107
  mov    %r14d,%eax
  add    $0x128,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L119:
  mov    0x0(%r13),%rsi
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L33:
  sub    $0x8,%r13
  cmp    %r15,%r13
  je     L15
L86:
  mov    %r13,0x8(%rsp)
  lea    D43(%rip),%rsi
  mov    0x0(%r13),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L119
  lea    0x10(%rsp),%rdi
  mov    $0x100,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    $0x0,%r14d
  lea    0x10(%rsp),%rbx
L91:
  mov    %rbp,%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L33
  mov    0x8(%r12),%rsi
  mov    %rbx,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L91
  test   %r14d,%r14d
  je     L66
L64:
  mov    %rbx,%rsi
  lea    D34(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x100,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  add    $0x1,%r14d
  jmp    L91
L66:
  mov    0x8(%rsp),%rax
  mov    (%rax),%rsi
  lea    D25(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L64
L29:
  mov    $0x0,%r14d
  jmp    L15
L107:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D53
data_type: string
name: extract_symbolic_data
arguments: data_label: D49
data_type: string
name: extract_symbolic_data
arguments: data_label: D37
data_type: string
name: extract_symbolic_data
arguments: data_label: D43
data_type: string
name: extract_symbolic_data
arguments: data_label: D34
data_type: string
name: extract_symbolic_data
arguments: data_label: D25
data_type: string

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

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

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

tool: D43: r

tool: D34: 
	%s

tool: D25: 
In file %s

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;
}
```