user: 下面的汇编指令对应的C源代码是什么:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    $0x11,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,-0x20(%rbp)
L154:
  mov    $0x11,%esi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x3c(%rbp),%rax
  mov    %rax,%rsi
  lea    D133(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x3c(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comiss %xmm1,%xmm0
  jae    L95
  movl   $0x1,-0x38(%rbp)
  jmp    L3
L168:
  mov    -0x38(%rbp),%eax
  sub    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D39(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movss  -0x3c(%rbp),%xmm1
  cvtss2sd %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  movq   %rax,%xmm0
  call   <cos@plt>
  movd   %xmm0,%eax
  mov    %eax,(%rbx)
  addl   $0x1,-0x38(%rbp)
L3:
  cmpl   $0x11,-0x38(%rbp)
  jle    L168
  mov    -0x20(%rbp),%rax
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <cosft1@plt>
  movss  D113(%rip),%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  D11(%rip),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movl   $0x1,-0x38(%rbp)
  jmp    L123
L112:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  -0x2c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L94
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x2c(%rbp)
L94:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x30(%rbp),%xmm0
  jbe    L81
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x30(%rbp)
L81:
  addl   $0x1,-0x38(%rbp)
L123:
  cmpl   $0x11,-0x38(%rbp)
  jle    L112
  movss  -0x30(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x2c(%rbp),%xmm1
  movss  D142(%rip),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x28(%rbp)
  movl   $0x1,-0x38(%rbp)
  jmp    L34
L126:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  subss  -0x2c(%rbp),%xmm0
  mulss  -0x28(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D95(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D36(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movq   %xmm2,%rdx
  mov    -0x38(%rbp),%eax
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movl   $0x1,-0x34(%rbp)
  jmp    L30
L170:
  mov    $0x2a,%edi
  call   <putchar@plt>
  addl   $0x1,-0x34(%rbp)
L30:
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x34(%rbp)
  jle    L170
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x38(%rbp)
L34:
  cmpl   $0x11,-0x38(%rbp)
  jle    L126
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    -0x20(%rbp),%rax
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <cosft1@plt>
  movss  D113(%rip),%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  D11(%rip),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movl   $0x1,-0x38(%rbp)
  jmp    L7
L124:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  -0x2c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L196
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x2c(%rbp)
L196:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x30(%rbp),%xmm0
  jbe    L4
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x30(%rbp)
L4:
  addl   $0x1,-0x38(%rbp)
L7:
  cmpl   $0x11,-0x38(%rbp)
  jle    L124
  movss  -0x30(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x2c(%rbp),%xmm1
  movss  D142(%rip),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x28(%rbp)
  movl   $0x1,-0x38(%rbp)
  jmp    L88
L108:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  subss  -0x2c(%rbp),%xmm0
  mulss  -0x28(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D95(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D36(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,%esi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x34(%rbp)
  jmp    L120
L87:
  mov    $0x2a,%edi
  call   <putchar@plt>
  addl   $0x1,-0x34(%rbp)
L120:
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x34(%rbp)
  jle    L87
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x38(%rbp)
L88:
  cmpl   $0x11,-0x38(%rbp)
  jle    L108
  jmp    L154
L95:
  nop
  mov    -0x20(%rbp),%rax
  mov    $0x11,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <free_vector@plt>
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L134
  call   <__stack_chk_fail@plt>
L134:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D19
type: string
name: parse_data
arguments: data_label: D133
type: string
name: parse_data
arguments: data_label: D39
type: byte[8]
name: parse_data
arguments: data_label: D113
type: byte[4]
name: parse_data
arguments: data_label: D11
type: f32
name: parse_data
arguments: data_label: D142
type: f32
name: parse_data
arguments: data_label: D95
type: f64
name: parse_data
arguments: data_label: D36
type: byte[8]
name: parse_data
arguments: data_label: D53
type: string
name: parse_data
arguments: data_label: D52
type: string
name: parse_data
arguments: data_label: D25
type: string

tool: D19: Period of cosine in channels (2-%2d)


tool: D133: %f

tool: {"D39": [0x4a,0xd8,0x12,0x4d,0xfb,0x21,0x19,0x40]}

tool: {"D113": [0xf9,0x02,0x15,0xd0]}

tool: D11: 10000000000

tool: D142: 30

tool: D95: 0.5

tool: {"D36": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: D53: %4d %6.2f 

tool: D52: press RETURN to continue ...

tool: D25: %4d 

assistant: ```c
int main(void) {
  int i, j, nlim;
  float big, per, scal, small, *data;
  data = vector(1, 17);
  for (;;) {
    printf("Period of cosine in channels (2-%2d)\n", 17);
    scanf("%f", &per);
    if (per <= 0.0)
      break;
    for (i = 1; i <= 17; i++)
      data[i] = cos(2.0 * 3.1415926 * (i - 1) / per);
    cosft1(data, 17 - 1);
    big = -1.0e10;
    small = 1.0e10;
    for (i = 1; i <= 17; i++) {
      if (data[i] < small)
        small = data[i];
      if (data[i] > big)
        big = data[i];
    }
    scal = 30.0 / (big - small);
    for (i = 1; i <= 17; i++) {
      nlim = (int)(0.5 + scal * (data[i] - small) + 1.0e-3);
      printf("%4d %6.2f ", i, data[i]);
      for (j = 1; j <= nlim + 1; j++)
        printf("*");
      printf("\n");
    }
    printf("press RETURN to continue ...\n");
    (void)getchar();
    cosft1(data, 17 - 1);
    big = -1.0e10;
    small = 1.0e10;
    for (i = 1; i <= 17; i++) {
      if (data[i] < small)
        small = data[i];
      if (data[i] > big)
        big = data[i];
    }
    scal = 30.0 / (big - small);
    for (i = 1; i <= 17; i++) {
      nlim = (int)(0.5 + scal * (data[i] - small) + 1.0e-3);
      printf("%4d ", i);
      for (j = 1; j <= nlim + 1; j++)
        printf("*");
      printf("\n");
    }
  }
  free_vector(data, 1, 17);
  return 0;
}
```