user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <pipe@plt>
  cmp    $0xffffffff,%eax
  jne    L7
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
L7:
  call   <fork@plt>
  mov    %eax,-0x74(%rbp)
  cmpl   $0xffffffff,-0x74(%rbp)
  jne    L23
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  jmp    L0
L23:
  cmpl   $0x0,-0x74(%rbp)
  jne    L54
  mov    -0x58(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  movabs $0x74202c6f6c6c6548,%rax
  movabs $0x7720736920736968,%rdx
  mov    %rax,-0x50(%rbp)
  mov    %rdx,-0x48(%rbp)
  movl   $0x646c726f,-0x40(%rbp)
  movw   $0xa21,-0x3c(%rbp)
  movb   $0x0,-0x3a(%rbp)
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    %eax,-0x6c(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x54(%rbp),%eax
  mov    -0x6c(%rbp),%edx
  lea    -0x50(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  jmp    L0
L54:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x54(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  movl   $0x50,-0x70(%rbp)
  mov    -0x70(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x68(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L19:
  cmp    %rdx,%rsp
  je     L33
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L19
L33:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L45
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L45:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x70(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    -0x58(%rbp),%eax
  mov    -0x70(%rbp),%edx
  mov    -0x60(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x60(%rbp),%rax
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsp
L0:
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D32
type_infered: string
name: extract_symbolic_data
arguments: tag: D47
type_infered: string
name: extract_symbolic_data
arguments: tag: D41
type_infered: string
name: extract_symbolic_data
arguments: tag: D9
type_infered: string
name: extract_symbolic_data
arguments: tag: D8
type_infered: string

tool: D32: Couldn't create the pipe

tool: D47: Couldn't fork child process

tool: D41: Sending message to parent...

tool: D9: Receiving message from child...

tool: D8: Message: %s

assistant: ```c
int main(void) {
  int pipefd[2];
  if (pipe(pipefd) == -1) {
    perror("Couldn't create the pipe");
  }
  int f = fork();
  if (f == -1) {
    perror("Couldn't fork child process");
  } else if (f == 0) {
    close(pipefd[0]);
    char str[] = "Hello, this is world!\n";
    int len = strlen(str) + 1;
    printf("Sending message to parent...\n");
    write(pipefd[1], str, len);
  } else {
    close(pipefd[1]);
    int len = 80;
    char str_buff[len];
    bzero(str_buff, len);
    read(pipefd[0], str_buff, len);
    printf("Receiving message from child...\n");
    printf("Message: %s", str_buff);
  }
}
```