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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x450,%rsp
  mov    %edi,-0x444(%rbp)
  mov    %rsi,-0x450(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movq   $0x0,-0x418(%rbp)
  movl   $0x0,-0x43c(%rbp)
  movl   $0x0,-0x438(%rbp)
  movq   $0xffffffffffffffff,-0x420(%rbp)
  movl   $0x0,-0x434(%rbp)
  mov    -0x450(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L16
  mov    -0x450(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x434(%rbp)
L16:
  lea    -0x418(%rbp),%rax
  mov    %rax,%rdi
  call   <pipe@plt>
  mov    %rax,-0x420(%rbp)
  cmpq   $0x0,-0x420(%rbp)
  jns    L40
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L40:
  call   <fork@plt>
  test   %eax,%eax
  jne    L27
  mov    $0x0,%eax
  call   <getpid@plt>
  mov    %eax,-0x428(%rbp)
  mov    $0x0,%eax
  call   <getppid@plt>
  mov    %eax,-0x438(%rbp)
  movl   $0x0,-0x424(%rbp)
  mov    -0x438(%rbp),%edx
  mov    -0x428(%rbp),%eax
  mov    %eax,%esi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x418(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x414(%rbp),%eax
  lea    D55(%rip),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  mov    %eax,-0x424(%rbp)
  mov    -0x424(%rbp),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L48:
  nop
  jmp    L48
L27:
  mov    $0x0,%eax
  call   <getpid@plt>
  mov    %eax,-0x430(%rbp)
  mov    $0x0,%eax
  call   <getppid@plt>
  mov    %eax,-0x438(%rbp)
  mov    -0x438(%rbp),%edx
  mov    -0x430(%rbp),%eax
  mov    %eax,%esi
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x414(%rbp),%eax
  mov    %eax,%edi
  call   <close@plt>
  movl   $0x0,-0x42c(%rbp)
  movq   $0x0,-0x410(%rbp)
  movq   $0x0,-0x408(%rbp)
  lea    -0x400(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x7e,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  mov    -0x418(%rbp),%eax
  lea    -0x410(%rbp),%rcx
  mov    $0x400,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  mov    %eax,-0x42c(%rbp)
  lea    -0x410(%rbp),%rdx
  mov    -0x42c(%rbp),%eax
  mov    %eax,%esi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L38:
  nop
  jmp    L38
```

tool_calls: name: read_data
arguments: tag: D77
type_guessed: string
name: read_data
arguments: tag: D24
type_guessed: string
name: read_data
arguments: tag: D22
type_guessed: string
name: read_data
arguments: tag: D78
type_guessed: string
name: read_data
arguments: tag: D55
type_guessed: string
name: read_data
arguments: tag: D23
type_guessed: string
name: read_data
arguments: tag: D74
type_guessed: string
name: read_data
arguments: tag: D69
type_guessed: string

tool: D77: 
[Main]: Started default program...

tool: D24: 
Failed to create a pipe..exiting..

tool: D22: 
[Child]: own pid:%u, Parent id:%u ..


tool: D78: Hello World from Child process

tool: D55: Hello World from Child process


tool: D23: 
 wrote %u bytes from child process...


tool: D74: 
[Parent]: own pid:%u, Parent id:%u ..


tool: D69: 
 Got from child %u bytes: [%s] ...


assistant: ```c
int main(int argc, char **argv) {
  printf("\n[Main]: Started default program...\n");
  uint32_t pipefd[2] = {0};
  uint32_t cpid = 0, ppid = 0;
  int32_t ret = -1;
  bool exec = false;
  if (argv[1]) {
    exec = atoi(argv[1]);
  }
  ret = pipe(pipefd);
  if (ret < 0) {
    printf("\nFailed to create a pipe..exiting..\n");
    exit(0);
  }
  if (!fork()) {
    pid_t pid = getpid();
    ppid = getppid();
    uint32_t nBytes = 0;
    printf("\n[Child]: own pid:%u, Parent id:%u ..\n", pid, ppid);
    close(pipefd[0]);
    nBytes = write(pipefd[1], "Hello World from Child process\n", strlen("Hello World from Child process"));
    printf("\n wrote %u bytes from child process...\n", nBytes);
    while (1)
      continue;
  } else {
    pid_t pid = getpid();
    ppid = getppid();
    printf("\n[Parent]: own pid:%u, Parent id:%u ..\n", pid, ppid);
    close(pipefd[1]);
    uint32_t nBytes = 0;
    char buff[1024] = {0};
    nBytes = read(pipefd[0], buff, 1024);
    printf("\n Got from child %u bytes: [%s] ...\n", nBytes, buff);
    while (1)
      continue;
  }
  return 0;
}
```