user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc50,%rsp
  mov    %edi,-0xc44(%rbp)
  mov    %rsi,-0xc50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x2,-0xc44(%rbp)
  jg     L11
  mov    -0xc50(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L94
L11:
  mov    -0xc50(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0xc28(%rbp)
  mov    -0xc50(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0xc20(%rbp)
  mov    -0xc28(%rbp),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0xc20(%rbp),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0xc28(%rbp),%rdx
  lea    -0x810(%rbp),%rax
  lea    D52(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x810(%rbp),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x810(%rbp),%rax
  lea    D53(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <popen@plt>
  mov    %rax,-0xc18(%rbp)
  cmpq   $0x0,-0xc18(%rbp)
  jne    L65
  mov    -0xc28(%rbp),%rax
  mov    %rax,%rsi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L94
L5:
  mov    -0xc18(%rbp),%rdx
  lea    -0xc10(%rbp),%rax
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L81
  movq   $0x0,-0xc30(%rbp)
  mov    -0xc30(%rbp),%rax
  mov    %rax,-0xc38(%rbp)
  lea    -0xc30(%rbp),%rdx
  lea    -0xc38(%rbp),%rcx
  lea    -0xc10(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <process_line@plt>
  mov    -0xc30(%rbp),%rdx
  mov    -0xc38(%rbp),%rax
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xc38(%rbp),%rax
  test   %rax,%rax
  je     L10
  mov    -0xc30(%rbp),%rax
  test   %rax,%rax
  je     L31
  mov    -0xc38(%rbp),%rcx
  mov    -0xc20(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  lea    D34(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0xc30(%rbp),%rax
  lea    -0x410(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <copy_file@plt>
  jmp    L10
L31:
  mov    -0xc38(%rbp),%rcx
  mov    -0xc20(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  lea    D34(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0xc38(%rbp),%rax
  lea    -0x410(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <copy_file@plt>
L10:
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L65:
  mov    -0xc18(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L5
  jmp    L7
L81:
  nop
L7:
  mov    -0xc18(%rbp),%rax
  mov    %rax,%rdi
  call   <pclose@plt>
  mov    $0x0,%eax
L94:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D88
type_infered: string
name: extract_symbolic_data
arguments: label: D75
type_infered: string
name: extract_symbolic_data
arguments: label: D52
type_infered: string
name: extract_symbolic_data
arguments: label: D53
type_infered: string
name: extract_symbolic_data
arguments: label: D24
type_infered: string
name: extract_symbolic_data
arguments: label: D38
type_infered: string
name: extract_symbolic_data
arguments: label: D34
type_infered: string

tool: D88: %s command path

Copy 'command' library dependences obtained with ldd to 'path'


tool: D75: 


tool: D52: ldd "%s"

tool: D53: r

tool: D24: Command %s not found


tool: D38: library: %s library_path: %s


tool: D34: %s/%s

assistant: ```c
int main(int argn, char *argv[]) {
  char *command;
  char *path;
  char *library, *library_path;
  char line[1024], ldd[1024], copy[1024];
  FILE *in;
  if (argn < 3) {
    printf("%s command path\n\nCopy 'command' library dependences obtained with ldd to 'path'\n", argv[0]);
    return 0;
  }
  command = argv[1];
  path = argv[2];
  puts(command);
  puts(path);
  puts("\n");
  sprintf(ldd, "ldd \"%s\"", command);
  puts(ldd);
  in = popen(ldd, "r");
  if (in == NULL) {
    printf("Command %s not found\n", command);
    return 1;
  }
  while (!feof(in)) {
    if (NULL == fgets(line, sizeof(line), in))
      break;
    library = library_path = NULL;
    process_line(line, &library, &library_path);
    printf("library: %s library_path: %s\n", library, library_path);
    if (library != NULL) {
      if (library_path != NULL) {
        sprintf(copy, "%s/%s", path, library);
        copy_file(library_path, copy);
      } else {
        sprintf(copy, "%s/%s", path, library);
        copy_file(library, copy);
      }
    }
    puts("\n");
  }
  pclose(in);
  return 0;
}
```