user: 请将这段汇编代码片段转换成等效的C代码:

```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     L71
  xor    %eax,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L57
  mov    $0x0,%eax
  jg     L0
L47:
  mov    0x78(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L43
  add    $0x88,%rsp
  pop    %rbp
  pop    %r12
  ret
L0:
  mov    0x4(%rsp),%edi
  call   <close@plt>
  lea    D49(%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    L88
L25:
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    D41(%rip),%rdi
  call   <puts@plt>
  mov    $0x3,%edi
  call   <sleep@plt>
  xor    %eax,%eax
  jmp    L47
L57:
  lea    D57(%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    D56(%rip),%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%edi
  call   <close@plt>
  xor    %eax,%eax
  jmp    L47
L88:
  lea    D32(%rip),%rdi
  call   <puts@plt>
  jmp    L25
L71:
  mov    $0x1a,%edx
  lea    D66(%rip),%rsi
  lea    D9(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L47
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D49
data_type: string
name: parse_data
arguments: data_label: D41
data_type: string
name: parse_data
arguments: data_label: D57
data_type: string
name: parse_data
arguments: data_label: D56
data_type: string
name: parse_data
arguments: data_label: D32
data_type: string
name: parse_data
arguments: data_label: D66
data_type: string
name: parse_data
arguments: data_label: D9
data_type: string

tool: D49: 111

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

tool: D57: ####################

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


tool: D32: parent write over

tool: D66: /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: D9: 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;
}
```