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

```asm
<main>:
  endbr64
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movabs $0x616d207970706148,%rax
  movabs $0x642061616a756873,%rdx
  mov    %rax,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  movl   $0x21217961,0x20(%rsp)
  movw   $0xa,0x24(%rsp)
  lea    0x8(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L261
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L280
  jle    L213
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %rbx,%rsi
  mov    0xc(%rsp),%edi
  call   <write@plt>
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    0x4(%rsp),%rdi
  call   <wait@plt>
  lea    0x8(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L153
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L178
  jle    L210
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %rbx,%rsi
  mov    0xc(%rsp),%edi
  call   <write@plt>
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    0x4(%rsp),%rdi
  call   <wait@plt>
  lea    0x8(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L106
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L141
  jle    L379
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %rbx,%rsi
  mov    0xc(%rsp),%edi
  call   <write@plt>
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    0x4(%rsp),%rdi
  call   <wait@plt>
  lea    0x8(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L354
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L352
  jle    L64
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %rbx,%rsi
  mov    0xc(%rsp),%edi
  call   <write@plt>
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    0x4(%rsp),%rdi
  call   <wait@plt>
  lea    0x8(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L161
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L348
  jle    L37
  mov    0x8(%rsp),%edi
  call   <close@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %rbx,%rsi
  mov    0xc(%rsp),%edi
  call   <write@plt>
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    0x4(%rsp),%rdi
  call   <wait@plt>
  mov    $0x0,%eax
  jmp    L150
L261:
  lea    D12(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
L150:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L295
  add    $0x30,%rsp
  pop    %rbx
  ret
L280:
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    D101(%rip),%rdi
  call   <printf@plt>
  lea    0x3(%rsp),%rbx
  jmp    L221
L52:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <write@plt>
L221:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L52
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <_exit@plt>
  mov    $0x0,%eax
  jmp    L150
L153:
  lea    D12(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L178:
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    D135(%rip),%rdi
  call   <printf@plt>
  lea    0x3(%rsp),%rbx
  jmp    L182
L89:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <write@plt>
L182:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L89
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <_exit@plt>
  mov    $0x0,%eax
  jmp    L150
L106:
  lea    D12(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L141:
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    D103(%rip),%rdi
  call   <printf@plt>
  lea    0x3(%rsp),%rbx
  jmp    L288
L85:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <write@plt>
L288:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L85
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <_exit@plt>
  mov    $0x0,%eax
  jmp    L150
L354:
  lea    D12(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L352:
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    D4(%rip),%rdi
  call   <printf@plt>
  lea    0x3(%rsp),%rbx
  jmp    L11
L350:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <write@plt>
L11:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L350
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <_exit@plt>
  mov    $0x0,%eax
  jmp    L150
L161:
  lea    D12(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L348:
  mov    0xc(%rsp),%edi
  call   <close@plt>
  lea    D80(%rip),%rdi
  call   <printf@plt>
  lea    0x3(%rsp),%rbx
  jmp    L330
L313:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <write@plt>
L330:
  mov    $0x1,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <read@plt>
  test   %rax,%rax
  jg     L313
  mov    0x8(%rsp),%edi
  call   <close@plt>
  mov    $0x0,%edi
  call   <_exit@plt>
  mov    $0x0,%eax
  jmp    L150
L37:
  lea    D81(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L64:
  lea    D81(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L379:
  lea    D81(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L210:
  lea    D81(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L213:
  lea    D81(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L150
L295:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D12
datatype: string
name: extract_symbolic_data
arguments: label: D101
datatype: string
name: extract_symbolic_data
arguments: label: D135
datatype: string
name: extract_symbolic_data
arguments: label: D103
datatype: string
name: extract_symbolic_data
arguments: label: D4
datatype: string
name: extract_symbolic_data
arguments: label: D80
datatype: string
name: extract_symbolic_data
arguments: label: D81
datatype: string

tool: D12: pipe

tool: D101: 

this is child 1 and my parent told me to print: 


tool: D135: 

this is child 2 and my parent told me to print: 


tool: D103: 

this is child 3 and my parent told me to print: 


tool: D4: 

this is child 4 and my parent told me to print: 


tool: D80: 

this is child 5 and my parent told me to print: 


tool: D81: fork

assistant: ```c
int main(int argc, char *argv[]) {
  char hello[] = "Happy mashujaa day!!\n";
  char c;
  int pfd[2];
  pid_t cpid1;
  pid_t cpid2;
  pid_t cpid3;
  pid_t cpid4;
  pid_t cpid5;
  int status;
  if (pipe(pfd) < 0) {
    perror("pipe");
    return 1;
  }
  cpid1 = fork();
  if (cpid1 == 0) {
    close(pfd[1]);
    printf("\n\nthis is child 1 and my parent told me to print: \n");
    while (read(pfd[0], &c, 1) > 0) {
      write(1, &c, 1);
    }
    close(pfd[0]);
    _exit(0);
  } else if (cpid1 > 0) {
    close(pfd[0]);
    write(pfd[1], hello, strlen(hello));
    close(pfd[1]);
    wait(&status);
    if (pipe(pfd) < 0) {
      perror("pipe");
      return 1;
    }
    cpid2 = fork();
    if (cpid2 == 0) {
      close(pfd[1]);
      printf("\n\nthis is child 2 and my parent told me to print: \n");
      while (read(pfd[0], &c, 1) > 0) {
        write(1, &c, 1);
      }
      close(pfd[0]);
      _exit(0);
    } else if (cpid2 > 0) {
      close(pfd[0]);
      write(pfd[1], hello, strlen(hello));
      close(pfd[1]);
      wait(&status);
      if (pipe(pfd) < 0) {
        perror("pipe");
        return 1;
      }
      cpid3 = fork();
      if (cpid3 == 0) {
        close(pfd[1]);
        printf("\n\nthis is child 3 and my parent told me to print: \n");
        while (read(pfd[0], &c, 1) > 0) {
          write(1, &c, 1);
        }
        close(pfd[0]);
        _exit(0);
      } else if (cpid3 > 0) {
        close(pfd[0]);
        write(pfd[1], hello, strlen(hello));
        close(pfd[1]);
        wait(&status);
        if (pipe(pfd) < 0) {
          perror("pipe");
          return 1;
        }
        cpid4 = fork();
        if (cpid4 == 0) {
          close(pfd[1]);
          printf("\n\nthis is child 4 and my parent told me to print: \n");
          while (read(pfd[0], &c, 1) > 0) {
            write(1, &c, 1);
          }
          close(pfd[0]);
          _exit(0);
        } else if (cpid4 > 0) {
          close(pfd[0]);
          write(pfd[1], hello, strlen(hello));
          close(pfd[1]);
          wait(&status);
          if (pipe(pfd) < 0) {
            perror("pipe");
            return 1;
          }
          cpid5 = fork();
          if (cpid5 == 0) {
            close(pfd[1]);
            printf("\n\nthis is child 5 and my parent told me to print: \n");
            while (read(pfd[0], &c, 1) > 0) {
              write(1, &c, 1);
            }
            close(pfd[0]);
            _exit(0);
          } else if (cpid5 > 0) {
            close(pfd[0]);
            write(pfd[1], hello, strlen(hello));
            close(pfd[1]);
            wait(&status);
          } else {
            perror("fork");
            return 1;
          }
        } else {
          perror("fork");
          return 1;
        }
      } else {
        perror("fork");
        return 1;
      }
    } else {
      perror("fork");
      return 1;
    }
  } else {
    perror("fork");
    return 1;
  }
  return 0;
}
```