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

```asm
<main>:
  endbr64
  push   %r15
  lea    D136(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  lea    D143(%rip),%rbx
  sub    $0x1a8,%rsp
  movsd  D35(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x198(%rsp)
  xor    %eax,%eax
  mov    D36(%rip),%rax
  lea    0x30(%rsp),%r14
  mov    %rsp,%rbp
  movsd  %xmm0,0x48(%rsp)
  mov    %rax,(%rsp)
  mov    D22(%rip),%rax
  movsd  %xmm0,0x50(%rsp)
  mov    %rax,0x8(%rsp)
  mov    D273(%rip),%rax
  mov    %rax,0x10(%rsp)
  mov    D393(%rip),%rax
  mov    %rax,0x18(%rsp)
  mov    D238(%rip),%rax
  mov    %rax,0x20(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0x30(%rsp)
  mov    %rax,0x38(%rsp)
  mov    %rax,0x40(%rsp)
  call   <puts@plt>
L18:
  movsd  0x0(%rbp,%r12,8),%xmm0
  movsd  (%r14,%r12,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    $0x5,%r12
  jne    L18
  lea    D236(%rip),%r13
  xor    %r12d,%r12d
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D333(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <nsl_int_rectangle@plt>
L29:
  movsd  0x0(%rbp,%r12,8),%xmm0
  movsd  (%r14,%r12,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    $0x5,%r12
  jne    L29
  movsd  0x50(%rsp),%xmm0
  lea    D414(%rip),%r14
  mov    $0x1,%eax
  xor    %r12d,%r12d
  mov    %r14,%rdi
  lea    0x60(%rsp),%r15
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D329(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%ecx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  mov    D22(%rip),%rax
  mov    $0x5,%edx
  mov    %rax,0x60(%rsp)
  mov    %rax,0x68(%rsp)
  mov    %rax,0x70(%rsp)
  mov    %rax,0x78(%rsp)
  mov    %rax,0x80(%rsp)
  call   <nsl_int_rectangle@plt>
L19:
  movsd  0x0(%rbp,%r12,8),%xmm0
  movsd  (%r15,%r12,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    $0x5,%r12
  jne    L19
  movsd  0x80(%rsp),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  lea    0x90(%rsp),%r15
  xor    %r12d,%r12d
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D407(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  mov    %r15,%rsi
  mov    D36(%rip),%rax
  mov    %rbp,%rdi
  mov    %rax,0x90(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0x98(%rsp)
  mov    D273(%rip),%rax
  mov    %rax,0xa0(%rsp)
  mov    D259(%rip),%rax
  mov    %rax,0xa8(%rsp)
  mov    D109(%rip),%rax
  mov    %rax,0xb0(%rsp)
  call   <nsl_int_trapezoid@plt>
L73:
  movsd  0x0(%rbp,%r12,8),%xmm0
  movsd  (%r15,%r12,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    $0x5,%r12
  jne    L73
  movsd  0xb0(%rsp),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  lea    0xc0(%rsp),%r15
  xor    %r12d,%r12d
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D298(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%ecx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  mov    D36(%rip),%rax
  mov    $0x5,%edx
  mov    %rax,0xc0(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0xc8(%rsp)
  mov    D273(%rip),%rax
  mov    %rax,0xd0(%rsp)
  mov    D259(%rip),%rax
  mov    %rax,0xd8(%rsp)
  mov    D109(%rip),%rax
  mov    %rax,0xe0(%rsp)
  call   <nsl_int_trapezoid@plt>
L55:
  movsd  0x0(%rbp,%r12,8),%xmm0
  movsd  (%r15,%r12,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    $0x5,%r12
  jne    L55
  mov    %r14,%rdi
  mov    $0x1,%eax
  movsd  0xe0(%rsp),%xmm0
  lea    0xf0(%rsp),%r15
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D32(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  mov    %r15,%rsi
  mov    D36(%rip),%rax
  mov    %rbp,%rdi
  mov    %rax,0xf0(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0xf8(%rsp)
  mov    D273(%rip),%rax
  mov    %rax,0x100(%rsp)
  mov    D259(%rip),%rax
  mov    %rax,0x108(%rsp)
  mov    D109(%rip),%rax
  mov    %rax,0x110(%rsp)
  call   <nsl_int_simpson@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L22
  xor    %r12d,%r12d
  xchg   %ax,%ax
L3:
  movsd  0x0(%rbp,%r12,8),%xmm0
  movsd  (%r15,%r12,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12,%r14
  jne    L3
L22:
  mov    %r14,%rsi
  lea    D69(%rip),%rdi
  movsd  0xe8(%rsp,%r14,8),%xmm0
  mov    $0x1,%eax
  lea    0x160(%rsp),%r14
  lea    0x120(%rsp),%r15
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D9(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x7,%edx
  mov    %r14,%rsi
  mov    D36(%rip),%rax
  mov    %r15,%rdi
  mov    %rax,0x120(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0x128(%rsp)
  mov    D273(%rip),%rax
  mov    %rax,0x130(%rsp)
  mov    D393(%rip),%rax
  mov    %rax,0x138(%rsp)
  mov    D238(%rip),%rax
  mov    %rax,0x140(%rsp)
  mov    D78(%rip),%rax
  mov    %rax,0x148(%rsp)
  mov    D401(%rip),%rax
  mov    %rax,0x150(%rsp)
  mov    D22(%rip),%rax
  mov    %rax,0x160(%rsp)
  mov    %rax,0x168(%rsp)
  mov    %rax,0x170(%rsp)
  mov    %rax,0x178(%rsp)
  mov    %rax,0x180(%rsp)
  mov    %rax,0x188(%rsp)
  mov    %rax,0x190(%rsp)
  call   <nsl_int_simpson_3_8@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L69
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L37:
  movsd  (%r15,%rbp,8),%xmm0
  movsd  (%r14,%rbp,8),%xmm1
  mov    %rbx,%rdi
  mov    $0x2,%eax
  add    $0x1,%rbp
  call   <printf@plt>
  cmp    %rbp,%r12
  jne    L37
L69:
  lea    D69(%rip),%rdi
  mov    %r12,%rsi
  mov    $0x1,%eax
  movsd  0x158(%rsp,%r12,8),%xmm0
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    0x198(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  add    $0x1a8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L92:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D136
type_guessed: string
name: disassemble_data
arguments: data_label: D143
type_guessed: string
name: disassemble_data
arguments: data_label: D35
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D36
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D22
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D273
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D393
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D238
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D236
type_guessed: string
name: disassemble_data
arguments: data_label: D333
type_guessed: string
name: disassemble_data
arguments: data_label: D414
type_guessed: string
name: disassemble_data
arguments: data_label: D329
type_guessed: string
name: disassemble_data
arguments: data_label: D407
type_guessed: string
name: disassemble_data
arguments: data_label: D259
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D109
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D298
type_guessed: string
name: disassemble_data
arguments: data_label: D32
type_guessed: string
name: disassemble_data
arguments: data_label: D69
type_guessed: string
name: disassemble_data
arguments: data_label: D9
type_guessed: string
name: disassemble_data
arguments: data_label: D78
type_guessed: byte[8]
name: disassemble_data
arguments: data_label: D401
type_guessed: byte[8]

tool: D136: data:

tool: D143: %g %g


tool: {"D35": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: {"D36": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D22": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D273": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D393": [0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x40]}

tool: {"D238": [0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0x40]}

tool: 

tool: D333: integral (rectangle, 1-point):

tool: D414: sum = %g


tool: D329: area (rectangle, 1-point):

tool: D407: integral (trapezoid, 2-point):

tool: {"D259": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D109": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0xc0]}

tool: D298: area (trapezoid, 2-point):

tool: D32: integral (Simpson's 1/3, 3-point):

tool: D69: sum = %g (n = %zu)


tool: D9: integral (Simpson's 3/8, 4-point):

tool: {"D78": [0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x40]}

tool: {"D401": [0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x40]}

assistant: ```c
int main() {
  double xdata[] = {1, 2, 3, 5, 7};
  double ydata[] = {2, 2, 2, -2, -2};
  int n = 5;
  printf("data:\n");
  size_t i;
  for (i = 0; i < n; i++)
    printf("%g %g\n", xdata[i], ydata[i]);
  puts("");
  printf("integral (rectangle, 1-point):\n");
  int status = nsl_int_rectangle(xdata, ydata, n, 0);
  for (i = 0; i < n; i++)
    printf("%g %g\n", xdata[i], ydata[i]);
  printf("sum = %g\n", ydata[n - 1]);
  puts("");
  printf("area (rectangle, 1-point):\n");
  double ydata4[] = {2, 2, 2, 2, 2};
  status = nsl_int_rectangle(xdata, ydata4, n, 1);
  for (i = 0; i < n; i++)
    printf("%g %g\n", xdata[i], ydata4[i]);
  printf("sum = %g\n", ydata4[n - 1]);
  puts("");
  printf("integral (trapezoid, 2-point):\n");
  double ydata2[] = {1, 2, 3, -1, -3};
  status = nsl_int_trapezoid(xdata, ydata2, n, 0);
  for (i = 0; i < n; i++)
    printf("%g %g\n", xdata[i], ydata2[i]);
  printf("sum = %g\n", ydata2[n - 1]);
  puts("");
  printf("area (trapezoid, 2-point):\n");
  double ydata3[] = {1, 2, 3, -1, -3};
  status = nsl_int_trapezoid(xdata, ydata3, n, 1);
  for (i = 0; i < n; i++)
    printf("%g %g\n", xdata[i], ydata3[i]);
  printf("sum = %g\n", ydata3[n - 1]);
  puts("");
  printf("integral (Simpson's 1/3, 3-point):\n");
  double ydata5[] = {1, 2, 3, -1, -3};
  size_t np = nsl_int_simpson(xdata, ydata5, n, 0);
  for (i = 0; i < np; i++)
    printf("%g %g\n", xdata[i], ydata5[i]);
  printf("sum = %g (n = %zu)\n", ydata5[np - 1], np);
  puts("");
  printf("integral (Simpson's 3/8, 4-point):\n");
  double xdata2[] = {1, 2, 3, 5, 7, 8, 9};
  double ydata6[] = {2, 2, 2, 2, 2, 2, 2};
  n = 7;
  np = nsl_int_simpson_3_8(xdata2, ydata6, n, 0);
  for (i = 0; i < np; i++)
    printf("%g %g\n", xdata2[i], ydata6[i]);
  printf("sum = %g (n = %zu)\n", ydata6[np - 1], np);
  puts("");
  return 0;
}
```