user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L140
L169:
  lea    0x10(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L149
L59:
  xor    %eax,%eax
  call   <fork@plt>
  test   %rax,%rax
  js     L42
  mov    $0x13,%edx
  jne    L49
  mov    0xc(%rsp),%edi
  lea    D37(%rip),%rsi
  call   <write@plt>
  cmp    $0x13,%rax
  jne    L56
L58:
  mov    0x10(%rsp),%edi
  xor    %ebp,%ebp
  mov    $0x14,%edx
  mov    %rbp,%rsi
  call   <read@plt>
  mov    %rbp,%rsi
  lea    D101(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L84:
  mov    0x8(%rsp),%edi
  call   <close@plt>
  test   %rax,%rax
  js     L36
L135:
  mov    0xc(%rsp),%edi
  call   <close@plt>
  test   %rax,%rax
  js     L101
L113:
  mov    0x10(%rsp),%edi
  call   <close@plt>
  test   %rax,%rax
  js     L53
L80:
  mov    0x14(%rsp),%edi
  call   <close@plt>
  test   %rax,%rax
  js     L3
L24:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x20,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L49:
  xor    %ebp,%ebp
  mov    0x8(%rsp),%edi
  mov    %rbp,%rsi
  call   <read@plt>
  mov    %rbp,%rsi
  lea    D61(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%edi
  mov    $0x14,%edx
  lea    D84(%rip),%rsi
  call   <write@plt>
  cmp    $0x14,%rax
  je     L84
  lea    D43(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
  jmp    L84
L42:
  lea    D56(%rip),%rdi
  call   <puts@plt>
  jmp    L84
L149:
  lea    D127(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
  jmp    L59
L140:
  lea    D127(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
  jmp    L169
L3:
  lea    D94(%rip),%rdi
  call   <puts@plt>
  jmp    L24
L53:
  lea    D17(%rip),%rdi
  call   <puts@plt>
  jmp    L80
L101:
  lea    D94(%rip),%rdi
  call   <puts@plt>
  jmp    L113
L36:
  lea    D17(%rip),%rdi
  call   <puts@plt>
  jmp    L135
L56:
  lea    D43(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
  jmp    L58
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D37
type_guessed: string
name: extract_symbolic_data
arguments: tag: D101
type_guessed: string
name: extract_symbolic_data
arguments: tag: D61
type_guessed: string
name: extract_symbolic_data
arguments: tag: D84
type_guessed: string
name: extract_symbolic_data
arguments: tag: D43
type_guessed: string
name: extract_symbolic_data
arguments: tag: D56
type_guessed: string
name: extract_symbolic_data
arguments: tag: D127
type_guessed: string
name: extract_symbolic_data
arguments: tag: D94
type_guessed: string
name: extract_symbolic_data
arguments: tag: D17
type_guessed: string

tool: D37: Message from child

tool: D101: I'm child, I've received "%s"


tool: D61: I'm parent, I've received "%s"


tool: D84: Message from parent

tool: D43: Can't write all string

tool: D56: Error in fork()

tool: D127: Can't create pipe

tool: D94: Can't close output stream

tool: D17: Can't close input stream

assistant: ```c
int main() {
  int fd1[2], fd2[2];
  size_t size;
  char *string;
  pid_t pid;
  if (pipe(fd1) < 0) {
    printf("Can\'t create pipe\n");
    exit(-1);
  }
  if (pipe(fd2) < 0) {
    printf("Can\'t create pipe\n");
    exit(-1);
  }
  pid = fork();
  if (pid < 0)
    printf("Error in fork()\n");
  else if (pid == 0) {
    size = write(fd1[1], "Message from child", 19);
    if (size != 19) {
      printf("Can\'t write all string\n");
      exit(-1);
    }
    size = read(fd2[0], string, 20);
    if (size < 0) {
      printf("Can\'t read string\n");
      exit(-1);
    }
    printf("I\'m child, I've received \"%s\"\n", string);
  } else {
    size = read(fd1[0], string, 19);
    if (size < 0) {
      printf("Can\'t read string\n");
      exit(-1);
    }
    printf("I\'m parent, I've received \"%s\"\n", string);
    size = write(fd2[1], "Message from parent", 20);
    if (size != 20) {
      printf("Can\'t write all string\n");
      exit(-1);
    }
  }
  if (close(fd1[0]) < 0) {
    printf("Can\'t close input stream\n");
  }
  if (close(fd1[1]) < 0) {
    printf("Can\'t close output stream\n");
  }
  if (close(fd2[0]) < 0) {
    printf("Can\'t close input stream\n");
  }
  if (close(fd2[1]) < 0) {
    printf("Can\'t close output stream\n");
  }
  return 0;
}
```