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

```asm
<main>:
  endbr64
  push   %rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  movabs $0xf0000000a,%rax
  lea    0x8(%rsp),%rdi
  mov    %rax,0x18(%rsp)
  call   <pipe@plt>
  lea    0x10(%rsp),%rdi
  call   <pipe@plt>
  xor    %eax,%eax
  call   <fork@plt>
  test   %rax,%rax
  je     L15
  lea    D17(%rip),%rdi
  call   <puts@plt>
  lea    D89(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <sleep@plt>
  lea    D99(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%edi
  lea    0x18(%rsp),%rsi
  mov    $0x8,%edx
  call   <write@plt>
  mov    0x1c(%rsp),%edx
  mov    0x18(%rsp),%esi
  xor    %eax,%eax
  lea    D98(%rip),%rdi
  call   <printf@plt>
  lea    D87(%rip),%rdi
  call   <puts@plt>
  mov    0x10(%rsp),%edi
  lea    0x20(%rsp),%rsi
  mov    $0x4,%edx
  call   <read@plt>
  lea    D62(%rip),%rdi
  call   <puts@plt>
  mov    0x20(%rsp),%esi
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L18:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x30,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L15:
  lea    D11(%rip),%rdi
  lea    0x20(%rsp),%rbp
  call   <puts@plt>
  lea    D31(%rip),%rdi
  call   <puts@plt>
  lea    D5(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%edi
  mov    $0x8,%edx
  mov    %rbp,%rsi
  call   <read@plt>
  lea    D85(%rip),%rdi
  call   <puts@plt>
  mov    0x24(%rsp),%esi
  lea    D28(%rip),%rdi
  xor    %eax,%eax
  add    0x20(%rsp),%esi
  mov    %esi,0x20(%rsp)
  call   <printf@plt>
  mov    0x14(%rsp),%edi
  mov    $0x4,%edx
  mov    %rbp,%rsi
  call   <write@plt>
  lea    D53(%rip),%rdi
  call   <puts@plt>
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L18
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D17
type: string
name: extract_symbolic_data
arguments: tag: D89
type: string
name: extract_symbolic_data
arguments: tag: D99
type: string
name: extract_symbolic_data
arguments: tag: D98
type: string
name: extract_symbolic_data
arguments: tag: D87
type: string
name: extract_symbolic_data
arguments: tag: D62
type: string
name: extract_symbolic_data
arguments: tag: D52
type: string
name: extract_symbolic_data
arguments: tag: D11
type: string
name: extract_symbolic_data
arguments: tag: D31
type: string
name: extract_symbolic_data
arguments: tag: D5
type: string
name: extract_symbolic_data
arguments: tag: D85
type: string
name: extract_symbolic_data
arguments: tag: D28
type: string
name: extract_symbolic_data
arguments: tag: D53
type: string

tool: D17: father start

tool: D89: f1

tool: D99: f2

tool: D98: %d  %d


tool: D87: f3

tool: D62: f4n

tool: D52: %d


tool: D11: son start

tool: D31: s1

tool: D5: slept

tool: D85: s2

tool: D28: s3 %d


tool: D53: 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;
}
```