user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L83
L77:
  lea    0x20(%rsp),%rdi
  call   <pipe@plt>
  test   %rax,%rax
  js     L16
L75:
  mov    $0x0,%eax
  call   <fork@plt>
  test   %rax,%rax
  js     L70
  je     L31
L6:
  lea    D20(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    $0x4,%edx
  mov    0x18(%rsp),%edi
  call   <read@plt>
  lea    0x10(%rsp),%rsi
  mov    $0x4,%edx
  mov    0x18(%rsp),%edi
  call   <read@plt>
  movss  0x10(%rsp),%xmm1
  movss  0xc(%rsp),%xmm0
  call   <powf@plt>
  movss  %xmm0,0x14(%rsp)
  lea    0x14(%rsp),%rsi
  mov    $0x4,%edx
  mov    0x24(%rsp),%edi
  call   <write@plt>
  mov    $0x0,%edi
  call   <wait@plt>
  mov    0x1c(%rsp),%edi
  call   <close@plt>
  mov    0x18(%rsp),%edi
  call   <close@plt>
  mov    0x20(%rsp),%edi
  call   <close@plt>
  mov    0x24(%rsp),%edi
  call   <close@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L83:
  lea    D51(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L77
L16:
  lea    D51(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L75
L70:
  lea    D55(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L6
L31:
  lea    D27(%rip),%rdi
  call   <puts@plt>
  mov    0x18(%rsp),%edi
  call   <close@plt>
  mov    0x24(%rsp),%edi
  call   <close@plt>
  lea    D28(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rbp
  mov    %rbp,%rsi
  lea    D37(%rip),%r12
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    D36(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    $0x4,%edx
  mov    %rbp,%rsi
  mov    0x1c(%rsp),%edi
  call   <write@plt>
  mov    $0x4,%edx
  mov    %rbx,%rsi
  mov    0x1c(%rsp),%edi
  call   <write@plt>
  lea    0x14(%rsp),%rsi
  mov    $0x4,%edx
  mov    0x20(%rsp),%edi
  call   <read@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd 0x14(%rsp),%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd 0x10(%rsp),%xmm1
  lea    D47(%rip),%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L6
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D20
data_type: string
name: read_data
arguments: data_label: D51
data_type: string
name: read_data
arguments: data_label: D55
data_type: string
name: read_data
arguments: data_label: D27
data_type: string
name: read_data
arguments: data_label: D28
data_type: string
name: read_data
arguments: data_label: D37
data_type: string
name: read_data
arguments: data_label: D36
data_type: string
name: read_data
arguments: data_label: D47
data_type: string

tool: D20: Process B

tool: D51: pipe

tool: D55: fork

tool: D27: Process A

tool: D28: a = 

tool: D37: %f

tool: D36: b = 

tool: D47: A: %f ^ %f = %f


assistant: ```c
int main(int argc, char *argv[]) {
  int a2b[2], b2a[2];
  if (pipe(a2b) < 0) {
    perror("pipe");
    exit(1);
  }
  if (pipe(b2a) < 0) {
    perror("pipe");
    exit(1);
  }
  pid_t pid_a = fork();
  if (pid_a < 0) {
    perror("fork");
    exit(1);
  }
  if (pid_a == 0) {
    float a, b;
    printf("Process A\n");
    close(a2b[0]);
    close(b2a[1]);
    printf("a = ");
    scanf("%f", &a);
    printf("b = ");
    scanf("%f", &b);
    write(a2b[1], &a, sizeof(a));
    write(a2b[1], &b, sizeof(b));
    float result;
    read(b2a[0], &result, sizeof(result));
    printf("A: %f ^ %f = %f\n", a, b, result);
    exit(0);
  }
  printf("Process B\n");
  float a, b;
  read(a2b[0], &a, sizeof(a));
  read(a2b[0], &b, sizeof(b));
  float result = powf(a, b);
  write(b2a[1], &result, sizeof(result));
  wait(0);
  close(a2b[1]);
  close(a2b[0]);
  close(b2a[0]);
  close(b2a[1]);
  return 0;
}
```