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

```asm
<main>:
  endbr64
  push   %r12
  xor    %esi,%esi
  mov    $0x64,%edx
  push   %rbp
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbp
  lea    0xc(%rsp),%r12
  mov    %rbp,%rdi
  call   <memset@plt>
  xor    %esi,%esi
  mov    %r12,%rdi
  mov    $0x64,%edx
  call   <memset@plt>
  lea    0x4(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L6
  xor    %eax,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L67
  mov    $0x0,%eax
  jg     L54
L60:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L41
  add    $0x88,%rsp
  pop    %rbp
  pop    %r12
  ret
L54:
  mov    0x4(%rsp),%edi
  call   <close@plt>
  lea    D65(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    0x8(%rsp),%edi
  mov    $0x4,%edx
  mov    %r12,%rsi
  call   <write@plt>
  add    $0x1,%eax
  jne    L59
L72:
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    D47(%rip),%rdi
  call   <puts@plt>
  mov    $0x3,%edi
  call   <sleep@plt>
  xor    %eax,%eax
  jmp    L60
L67:
  lea    D53(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x3,%edi
  call   <sleep@plt>
  mov    0x4(%rsp),%edi
  mov    $0x64,%edx
  mov    %rbp,%rsi
  call   <read@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <atoi@plt>
  mov    %r12d,%esi
  lea    D61(%rip),%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <close@plt>
  xor    %eax,%eax
  jmp    L60
L59:
  lea    D21(%rip),%rdi
  call   <puts@plt>
  jmp    L72
L6:
  mov    $0x1a,%edx
  lea    D44(%rip),%rsi
  lea    D37(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L60
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D65
type_infered: string
name: retrieve_data
arguments: tag: D47
type_infered: string
name: retrieve_data
arguments: tag: D53
type_infered: string
name: retrieve_data
arguments: tag: D61
type_infered: string
name: retrieve_data
arguments: tag: D21
type_infered: string
name: retrieve_data
arguments: tag: D44
type_infered: string
name: retrieve_data
arguments: tag: D37
type_infered: string

tool: D65: 111

tool: D47: parent close fd[1]-write over

tool: D53: ####################

tool: D61: child read num is %d, the data read from the pipe is %d


tool: D21: parent write over

tool: D44: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nicesu/wiki/refs/heads/master/OS/pt/IPC/pipe_fifo/pipe/pipetest_first.c

tool: D37: FILE: %s,LINE: %d.pipe create error


assistant: ```c
int main(unsigned int argc, unsigned char **argv) {
  int pipe_fd[2];
  pid_t pid;
  char r_buf[100];
  char w_buf[4];
  int r_num;
  int cmd;
  memset(r_buf, 0, sizeof(r_buf));
  memset(w_buf, 0, sizeof(r_buf));
  if (pipe(pipe_fd) < 0) {
    printf("FILE: %s,LINE: %d.pipe create error\n", "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/nicesu/wiki/refs/heads/master/OS/pt/IPC/pipe_fifo/pipe/pipetest_first.c", 26);
    return -1;
  }
  if ((pid = fork()) == 0) {
    printf("####################\n");
    close(pipe_fd[1]);
    sleep(3);
    r_num = read(pipe_fd[0], r_buf, 100);
    printf("child read num is %d, the data read from the pipe is %d\n", r_num, atoi(r_buf));
    close(pipe_fd[0]);
  } else if (pid > 0) {
    close(pipe_fd[0]);
    strcpy(w_buf, "111");
    if (write(pipe_fd[1], w_buf, 4) != -1) {
      printf("parent write over\n");
    }
    close(pipe_fd[1]);
    printf("parent close fd[1]-write over\n");
    sleep(3);
  }
  return 0;
}
```