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

```asm
<main>:
  endbr64
  push   %r15
  lea    D106(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  lea    D97(%rip),%rbx
  sub    $0x1a8,%rsp
  movapd D74(%rip),%xmm2
  movapd D172(%rip),%xmm3
  mov    %fs:0x28,%rax
  mov    %rax,0x198(%rsp)
  xor    %eax,%eax
  mov    D113(%rip),%rax
  lea    0x30(%rsp),%r14
  mov    %rsp,%rbp
  movapd D280(%rip),%xmm4
  movapd D25(%rip),%xmm0
  movaps %xmm2,(%rsp)
  mov    %rax,0x20(%rsp)
  mov    D103(%rip),%rax
  movaps %xmm3,0x10(%rsp)
  mov    %rax,0x50(%rsp)
  movaps %xmm4,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  call   <puts@plt>
L46:
  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    L46
  lea    D256(%rip),%r13
  xor    %r12d,%r12d
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D47(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <nsl_int_rectangle@plt>
L95:
  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    L95
  movsd  0x50(%rsp),%xmm0
  lea    D38(%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    D158(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%ecx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  movapd D280(%rip),%xmm5
  mov    D121(%rip),%rax
  mov    $0x5,%edx
  mov    %rax,0x80(%rsp)
  movaps %xmm5,0x60(%rsp)
  movaps %xmm5,0x70(%rsp)
  call   <nsl_int_rectangle@plt>
L71:
  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    L71
  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    D283(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  mov    %r15,%rsi
  movapd D74(%rip),%xmm7
  movapd D258(%rip),%xmm2
  mov    %rbp,%rdi
  mov    D77(%rip),%rax
  movaps %xmm7,0x90(%rsp)
  mov    %rax,0xb0(%rsp)
  movaps %xmm2,0xa0(%rsp)
  call   <nsl_int_trapezoid@plt>
L54:
  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    L54
  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    D50(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%ecx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  movapd D74(%rip),%xmm3
  movapd D258(%rip),%xmm4
  mov    $0x5,%edx
  mov    D77(%rip),%rax
  movaps %xmm3,0xc0(%rsp)
  mov    %rax,0xe0(%rsp)
  movaps %xmm4,0xd0(%rsp)
  call   <nsl_int_trapezoid@plt>
L85:
  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    L85
  mov    %r14,%rdi
  mov    $0x1,%eax
  movsd  0xe0(%rsp),%xmm0
  lea    0xf0(%rsp),%r15
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  lea    D79(%rip),%rdi
  call   <puts@plt>
  xor    %ecx,%ecx
  mov    $0x5,%edx
  mov    %r15,%rsi
  movapd D74(%rip),%xmm5
  movapd D258(%rip),%xmm6
  mov    %rbp,%rdi
  mov    D77(%rip),%rax
  movaps %xmm5,0xf0(%rsp)
  mov    %rax,0x110(%rsp)
  movaps %xmm6,0x100(%rsp)
  call   <nsl_int_simpson@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L64
  xor    %r12d,%r12d
  xchg   %ax,%ax
L96:
  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    L96
L64:
  mov    %r14,%rsi
  lea    D88(%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    D53(%rip),%rdi
  call   <puts@plt>
  mov    D102(%rip),%rax
  xor    %ecx,%ecx
  movapd D280(%rip),%xmm3
  movapd D74(%rip),%xmm7
  mov    $0x7,%edx
  mov    %r14,%rsi
  mov    %r15,%rdi
  mov    %rax,0x150(%rsp)
  movapd D172(%rip),%xmm2
  movapd D113(%rip),%xmm0
  mov    D121(%rip),%rax
  movaps %xmm7,0x120(%rsp)
  movaps %xmm2,0x130(%rsp)
  mov    %rax,0x190(%rsp)
  movaps %xmm0,0x140(%rsp)
  movaps %xmm3,0x160(%rsp)
  movaps %xmm3,0x170(%rsp)
  movaps %xmm3,0x180(%rsp)
  call   <nsl_int_simpson_3_8@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L76
  xor    %ebp,%ebp
  nop
L73:
  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    L73
L76:
  lea    D88(%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    L3
  add    $0x1a8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D106
type_infered: string
name: read_data
arguments: data_label: D97
type_infered: string
name: read_data
arguments: data_label: D74
type_infered: byte[16]
name: read_data
arguments: data_label: D172
type_infered: byte[16]
name: read_data
arguments: data_label: D113
type_infered: byte[16]
name: read_data
arguments: data_label: D280
type_infered: byte[16]
name: read_data
arguments: data_label: D25
type_infered: byte[16]
name: read_data
arguments: data_label: D103
type_infered: byte[8]
name: read_data
arguments: data_label: D256
type_infered: string
name: read_data
arguments: data_label: D47
type_infered: string
name: read_data
arguments: data_label: D38
type_infered: string
name: read_data
arguments: data_label: D158
type_infered: string
name: read_data
arguments: data_label: D121
type_infered: byte[8]
name: read_data
arguments: data_label: D283
type_infered: string
name: read_data
arguments: data_label: D258
type_infered: byte[16]
name: read_data
arguments: data_label: D77
type_infered: byte[8]
name: read_data
arguments: data_label: D50
type_infered: string
name: read_data
arguments: data_label: D79
type_infered: string
name: read_data
arguments: data_label: D88
type_infered: string
name: read_data
arguments: data_label: D53
type_infered: string
name: read_data
arguments: data_label: D102
type_infered: byte[8]

tool: D106: data:

tool: D97: %g %g


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

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

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

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

tool: {"D25": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

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

tool: 

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

tool: D38: sum = %g


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

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

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

tool: {"D258": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

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

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

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

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


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

tool: {"D102": [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;
}
```