user: 这段汇编代码用C语言表示是什么样的？

```asm
<construct_array_with_main_lobe>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movsd  D64(%rip),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D42(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x30(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L44:
  cmp    %rdx,%rsp
  je     L26
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L44
L26:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L6
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L6:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x70(%rbp),%rax
  mov    (%rax),%esi
  lea    -0x48(%rbp),%rcx
  lea    -0x5c(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  mov    $0x1,%r8d
  mov    %rax,%rdi
  call   <amplitudeloc@plt>
  pxor   %xmm0,%xmm0
  ucomisd -0x20(%rbp),%xmm0
  jp     L122
  pxor   %xmm0,%xmm0
  ucomisd -0x20(%rbp),%xmm0
  jne    L122
  movsd  D42(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
L122:
  mov    -0x5c(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  movsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L80
L90:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  divsd  -0x20(%rbp),%xmm0
  mov    -0x28(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x54(%rbp)
L80:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x54(%rbp)
  jl     L90
  cmpl   $0x0,-0x58(%rbp)
  jne    L189
  movl   $0x1,-0x58(%rbp)
L189:
  movl   $0x0,-0x50(%rbp)
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x58(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x54(%rbp)
  jmp    L55
L135:
  mov    -0x28(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movq   D68(%rip),%xmm1
  andpd  %xmm0,%xmm1
  movsd  -0x40(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L43
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L113
L43:
  subl   $0x1,-0x54(%rbp)
L55:
  cmpl   $0x0,-0x54(%rbp)
  jg     L135
L113:
  mov    -0x58(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x54(%rbp)
  jmp    L212
L210:
  mov    -0x28(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movq   D68(%rip),%xmm1
  andpd  %xmm0,%xmm1
  movsd  -0x40(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L178
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x4c(%rbp)
  jmp    L163
L178:
  addl   $0x1,-0x54(%rbp)
L212:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x54(%rbp)
  jl     L210
L163:
  movl   $0x0,-0x54(%rbp)
  jmp    L144
L165:
  mov    -0x54(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jle    L82
  mov    -0x54(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L15
L82:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L101
L15:
  movsd  -0x20(%rbp),%xmm0
  movq   D68(%rip),%xmm1
  movapd %xmm0,%xmm2
  andpd  %xmm1,%xmm2
  movsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  mov    -0x28(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  subsd  -0x40(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D42(%rip),%xmm1
  subsd  -0x40(%rbp),%xmm1
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L101:
  addl   $0x1,-0x54(%rbp)
L144:
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x54(%rbp)
  jl     L165
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L74
  call   <__stack_chk_fail@plt>
L74:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D64
data_type: f64
name: retrieve_data
arguments: data_label: D42
data_type: f64
name: retrieve_data
arguments: data_label: D68
data_type: qword

tool: D64: 0.1

tool: D42: 1

tool: D68: 9223372036854775807

assistant: ```c
int construct_array_with_main_lobe(double *array_in, int *npts_in, double *array_out) {
  int amplitudeloc(double *array, int len, int *max_amp_loc, double *amplitude, int flag);
  int npts_peak_min, npts_peak_max, npts_peak;
  double peak_max, peak_min, value_peak;
  int count, flag;
  double cut_min = 0.1;
  double cut_max = 1.0;
  double array_tmp[*npts_in];
  amplitudeloc(array_in, *npts_in, &npts_peak_max, &peak_max, 1);
  if (value_peak == 0)
    value_peak = 1;
  npts_peak = npts_peak_max;
  value_peak = peak_max;
  for (count = 0; count < *npts_in; count++) {
    array_tmp[count] = array_in[count] / value_peak;
  }
  if (npts_peak == 0)
    npts_peak = 1;
  int ONSET = 0;
  int ENDSET = *npts_in - 1;
  for (count = npts_peak - 1; count > 0; count--) {
    if (fabs(array_tmp[count]) < cut_min) {
      ONSET = count;
      break;
    }
  }
  for (count = npts_peak - 1; count < *npts_in - 1; count++) {
    if (fabs(array_tmp[count]) < cut_min) {
      ENDSET = count;
      break;
    }
  }
  for (count = 0; count < *npts_in; count++) {
    if (count <= ONSET || count >= ENDSET)
      array_out[count] = 0;
    else {
      array_out[count] = value_peak / fabs(value_peak) * (array_tmp[count] - cut_min) / (1 - cut_min);
    }
  }
  return 0;
}
```