user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  lea    D27(%rip),%rsi
  lea    D109(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D22(%rip),%rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%r15
  lea    0x10(%rsp),%r14
  call   <popen@plt>
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D15(%rip),%rdi
  mov    %rax,%rbp
  mov    %rax,%rcx
  lea    0x20(%rsp),%r12
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x12,%edx
  mov    $0x1,%esi
  lea    D105(%rip),%rdi
  call   <fwrite@plt>
  movl   $0x4,0xc(%rsp)
  xchg   %ax,%ax
L9:
  mov    %rbp,%rcx
  mov    $0x1e,%edx
  mov    $0x1,%esi
  xor    %r13d,%r13d
  lea    D39(%rip),%rdi
  call   <fwrite@plt>
  nopl   0x0(%rax)
L33:
  mov    0xc(%rsp),%eax
  mov    %r14,%rsi
  mov    %r15,%rdi
  pxor   %xmm0,%xmm0
  add    %r13d,%eax
  cvtsi2sd %eax,%xmm0
  divsd  D46(%rip),%xmm0
  call   <sincos@plt>
  movsd  0x18(%rsp),%xmm0
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm0,(%r12,%r13,8)
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13d,%xmm0
  addsd  D67(%rip),%xmm0
  add    $0x1,%r13
  cvttsd2si %xmm0,%edx
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
  cmp    $0x1e,%r13
  jne    L33
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  xor    %r13d,%r13d
  lea    D106(%rip),%rdi
  call   <fwrite@plt>
  xchg   %ax,%ax
L29:
  pxor   %xmm0,%xmm0
  movsd  (%r12,%r13,8),%xmm1
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  cvtsi2sd %r13d,%xmm0
  addsd  D80(%rip),%xmm0
  add    $0x1,%r13
  cvttsd2si %xmm0,%edx
  movapd %xmm1,%xmm0
  call   <fprintf@plt>
  cmp    $0x1e,%r13
  jne    L29
  mov    %rbp,%rcx
  mov    $0x2,%edx
  mov    $0x1,%esi
  lea    D106(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rdi
  call   <fflush@plt>
  addl   $0x4,0xc(%rsp)
  mov    0xc(%rsp),%eax
  cmp    $0x194,%eax
  jne    L9
  mov    %rbp,%rdi
  call   <pclose@plt>
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x128,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D27
type_guessed: string
name: disassemble_data
arguments: tag: D109
type_guessed: string
name: disassemble_data
arguments: tag: D22
type_guessed: string
name: disassemble_data
arguments: tag: D15
type_guessed: string
name: disassemble_data
arguments: tag: D105
type_guessed: string
name: disassemble_data
arguments: tag: D39
type_guessed: string
name: disassemble_data
arguments: tag: D46
type_guessed: f64
name: disassemble_data
arguments: tag: D67
type_guessed: f64
name: disassemble_data
arguments: tag: D106
type_guessed: string
name: disassemble_data
arguments: tag: D80
type_guessed: f64

tool: D27: w

tool: D109: gnuplot --persist

tool: D22: %f %f


tool: D15: load 'startup_2ch.p'


tool: D105: set yrange [-1:1]


tool: D39: plot '-' w boxes, '-' w boxes


tool: D46: 100

tool: D67: 0.25

tool: D106: e


tool: D80: 0.75

assistant: ```c
int main() {
  double xarray[30];
  double yarray[30];
  FILE *pipe_gp;
  pipe_gp = popen("gnuplot --persist", "w");
  int i;
  int j;
  fputs("load 'startup_2ch.p'\n", pipe_gp);
  fputs("set yrange [-1:1]\n", pipe_gp);
  for (j = 1; j <= 100; j++) {
    fputs("plot '-' w boxes, '-' w boxes\n", pipe_gp);
    for (i = 0; i < 30; ++i) {
      double x = (i + 4 * j) / 100.0;
      xarray[i] = sin(x);
      yarray[i] = cos(x);
      fprintf(pipe_gp, "%f %f\n", i + 0.25, yarray[i]);
    }
    fputs("e\n", pipe_gp);
    for (i = 0; i < 30; i++) {
      fprintf(pipe_gp, "%f %f\n", i + 0.75, xarray[i]);
    }
    fputs("e\n", pipe_gp);
    fflush(pipe_gp);
    for (i = 0; i < 10000000; i++) {
    }
  }
  pclose(pipe_gp);
  return 0;
}
```