user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  cmp    $0x3,%edi
  jne    L153
L114:
  mov    0x10(%r12),%rdi
  lea    D16(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L74
L54:
  lea    0x10(%rsp),%r14
  jmp    L105
L153:
  lea    D11(%rip),%rdi
  call   <puts@plt>
  lea    D50(%rip),%rdi
  call   <puts@plt>
  lea    D0(%rip),%rdi
  call   <puts@plt>
  lea    D5(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L114
L74:
  mov    0x10(%r12),%rsi
  lea    D54(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L54
L51:
  movslq %r15d,%r15
  movb   $0x0,0x30(%rsp,%r15,1)
  lea    0x30(%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    0x8(%r12),%rdi
  call   <strlen@plt>
  cmp    %eax,%ebx
  jge    L30
L105:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %rax,%rax
  jne    L144
  mov    $0x0,%r13d
L55:
  mov    %r13d,%r15d
  mov    %rbp,%rdi
  call   <fgetc@plt>
  mov    %eax,%ebx
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %rax,%rax
  jne    L51
  cmp    $0xa,%bl
  je     L51
  mov    %bl,0x30(%rsp,%r13,1)
  add    $0x1,%r13
  jmp    L55
L30:
  lea    0x30(%rsp),%r13
  mov    $0x0,%r15d
  mov    %r13,0x8(%rsp)
  jmp    L168
L41:
  movzbl 0x0(%r13,%rbx,1),%eax
  mov    %al,(%rbx,%r14,1)
  add    $0x1,%rbx
L138:
  mov    %ebx,0x4(%rsp)
  mov    0x8(%r12),%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L41
  movslq 0x4(%rsp),%rax
  movb   $0x0,0x10(%rsp,%rax,1)
  mov    0x8(%r12),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  add    $0x1,%r13
  test   %rax,%rax
  je     L57
  add    $0x1,%r15d
L168:
  mov    0x8(%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    0x8(%r12),%rdi
  call   <strlen@plt>
  sub    %eax,%ebx
  cmp    %r15d,%ebx
  jl     L105
  mov    $0x0,%ebx
  jmp    L138
L57:
  lea    0x30(%rsp),%rdi
  call   <puts@plt>
  jmp    L105
L144:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L75
  mov    $0x0,%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L75:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D16
type_guessed: string
name: parse_data
arguments: label: D11
type_guessed: string
name: parse_data
arguments: label: D50
type_guessed: string
name: parse_data
arguments: label: D0
type_guessed: string
name: parse_data
arguments: label: D5
type_guessed: string
name: parse_data
arguments: label: D54
type_guessed: string

tool: D16: r

tool: D11: Number of Arguements provided != 3 

tool: D50: Arguements Required: 

tool: D0: Search Text 

tool: D5: Filename 

tool: D54: %s does not exist. 


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *fd;
  char str[100];
  char c;
  int i, j, k, m, flag;
  char temp[30];
  if (argc != 3) {
    printf("Number of Arguements provided != 3 \n");
    printf("Arguements Required: \n");
    printf("Search Text \n");
    printf("Filename \n");
    exit(-1);
  }
  fd = fopen(argv[2], "r");
  if (!fd) {
    printf("%s does not exist. \n", argv[2]);
    exit(-1);
  }
  while (!feof(fd)) {
    i = 0;
    while (1) {
      c = fgetc(fd);
      if (feof(fd)) {
        str[i++] = '\0';
        break;
      }
      if (c == '\n') {
        str[i++] = '\0';
        break;
      }
      str[i++] = c;
    }
    if (strlen(str) >= strlen(argv[1])) {
      for (k = 0; k <= strlen(str) - strlen(argv[1]); k++) {
        for (m = 0; m < strlen(argv[1]); m++) {
          temp[m] = str[k + m];
        }
        temp[m] = '\0';
        if (strcmp(temp, argv[1]) == 0) {
          printf("%s\n", str);
          break;
        }
      }
    }
  }
  printf("\n");
  return 0;
}
```