user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    D68(%rip),%rax
  lea    0x10(%rsp),%rdi
  mov    %rax,0x8(%rsp)
  call   <pipe@plt>
  lea    0x18(%rsp),%rdi
  call   <pipe@plt>
  xor    %eax,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L23
  lea    D51(%rip),%rdi
  call   <puts@plt>
  lea    D94(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  lea    D35(%rip),%rdi
  call   <puts@plt>
  mov    0x14(%rsp),%edi
  lea    0x8(%rsp),%rsi
  mov    $0x8,%edx
  call   <write@plt>
  mov    0xc(%rsp),%edx
  mov    0x8(%rsp),%esi
  xor    %eax,%eax
  lea    D126(%rip),%rdi
  call   <printf@plt>
  lea    D50(%rip),%rdi
  call   <puts@plt>
  mov    0x18(%rsp),%edi
  lea    0x20(%rsp),%rsi
  mov    $0x4,%edx
  call   <read@plt>
  lea    D55(%rip),%rdi
  call   <puts@plt>
  mov    0x20(%rsp),%esi
  lea    D89(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L18:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x30,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L23:
  lea    D1(%rip),%rdi
  lea    0x20(%rsp),%rbp
  call   <puts@plt>
  lea    D101(%rip),%rdi
  call   <puts@plt>
  lea    D133(%rip),%rdi
  call   <puts@plt>
  mov    0x10(%rsp),%edi
  mov    $0x8,%edx
  mov    %rbp,%rsi
  call   <read@plt>
  lea    D54(%rip),%rdi
  call   <puts@plt>
  mov    0x24(%rsp),%esi
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  add    0x20(%rsp),%esi
  mov    %esi,0x20(%rsp)
  call   <printf@plt>
  mov    0x1c(%rsp),%edi
  mov    $0x4,%edx
  mov    %rbp,%rsi
  call   <write@plt>
  lea    D86(%rip),%rdi
  call   <puts@plt>
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L18
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D68
type: byte[8]
name: disassemble_data
arguments: label: D51
type: string
name: disassemble_data
arguments: label: D94
type: string
name: disassemble_data
arguments: label: D35
type: string
name: disassemble_data
arguments: label: D126
type: string
name: disassemble_data
arguments: label: D50
type: string
name: disassemble_data
arguments: label: D55
type: string
name: disassemble_data
arguments: label: D89
type: string
name: disassemble_data
arguments: label: D1
type: string
name: disassemble_data
arguments: label: D101
type: string
name: disassemble_data
arguments: label: D133
type: string
name: disassemble_data
arguments: label: D54
type: string
name: disassemble_data
arguments: label: D2
type: string
name: disassemble_data
arguments: label: D86
type: string

tool: {"D68": [0x0a,0x00,0x00,0x00,0x0f,0x00,0x00,0x00]}

tool: D51: father start

tool: D94: f1

tool: D35: f2

tool: D126: %d  %d


tool: D50: f3

tool: D55: f4n

tool: D89: %d


tool: D1: son start

tool: D101: s1

tool: D133: slept

tool: D54: s2

tool: D2: s3 %d


tool: D86: son end

assistant: ```c
int main() {
  int fd_1[2];
  int fd_2[2];
  int buff[2];
  int input[2];
  buff[0] = 10;
  buff[1] = 15;
  int buffer[1];
  pipe(fd_1);
  pipe(fd_2);
  pid_t pid = fork();
  if (pid != 0) {
    printf("father start\n");
    printf("f1\n");
    sleep(1);
    printf("f2\n");
    write(fd_1[1], buff, 8);
    printf("%d  %d\n", buff[0], buff[1]);
    printf("f3\n");
    read(fd_2[0], buffer, 4);
    printf("f4n\n");
    printf("%d\n", buffer[0]);
  } else {
    printf("son start\n");
    printf("s1\n");
    printf("slept\n");
    read(fd_1[0], input, 8);
    printf("s2\n");
    input[0] += input[1];
    printf("s3 %d\n", input[0]);
    write(fd_2[1], input, 4);
    printf("son end\n");
    exit(0);
  }
  return 0;
}
```