user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdi
  mov    $0x64,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0xc(%rsp),%rdi
  mov    $0x64,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x4(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L77
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L13
  mov    $0x0,%edx
  jg     L15
L66:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L58
  mov    %edx,%eax
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  ret
L77:
  mov    $0x1a,%edx
  lea    D32(%rip),%rsi
  lea    D51(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%edx
  jmp    L66
L13:
  lea    D25(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x3,%edi
  call   <sleep@plt>
  lea    0x10(%rsp),%rbp
  mov    $0x64,%edx
  mov    %rbp,%rsi
  mov    0x4(%rsp),%edi
  call   <read@plt>
  mov    %eax,%ebx
  mov    %rbp,%rdi
  call   <atoi@plt>
  mov    %eax,%edx
  mov    %ebx,%esi
  lea    D17(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <close@plt>
  mov    $0x0,%edx
  jmp    L66
L15:
  mov    0x4(%rsp),%edi
  call   <close@plt>
  lea    0xc(%rsp),%rbx
  lea    D24(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    $0x4,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <write@plt>
  cmp    $0xffffffff,%eax
  jne    L5
L88:
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    D16(%rip),%rdi
  call   <puts@plt>
  mov    $0x3,%edi
  call   <sleep@plt>
  mov    $0x0,%edx
  jmp    L66
L5:
  lea    D53(%rip),%rdi
  call   <puts@plt>
  jmp    L88
L58:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D32
type: string
name: unpack_data
arguments: data_tag: D51
type: string
name: unpack_data
arguments: data_tag: D25
type: string
name: unpack_data
arguments: data_tag: D17
type: string
name: unpack_data
arguments: data_tag: D24
type: string
name: unpack_data
arguments: data_tag: D16
type: string
name: unpack_data
arguments: data_tag: D53
type: string

tool: D32: /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: D51: FILE: %s,LINE: %d.pipe create error


tool: D25: ####################

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


tool: D24: 111

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

tool: D53: parent write over

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