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

```asm
<print_spectrum>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x38(%rbp),%rax
  mov    %rax,%rsi
  lea    D101(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x30(%rbp)
  jmp    L121
L42:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x24(%rbp)
  jge    L90
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x24(%rbp)
L90:
  addl   $0x1,-0x30(%rbp)
L121:
  cmpl   $0xff,-0x30(%rbp)
  jle    L42
  movl   $0x1,-0x30(%rbp)
  jmp    L83
L68:
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L10
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  imul   $0x3c,%eax,%eax
  cltd
  idivl  -0x24(%rbp)
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L47
L3:
  mov    $0x6f,%edi
  call   <putchar@plt>
  addl   $0x1,-0x2c(%rbp)
L47:
  mov    -0x2c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L3
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D142(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  imul   -0x30(%rbp),%eax
  add    %eax,-0x20(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x1c(%rbp)
  jmp    L22
L10:
  mov    -0x30(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  jle    L45
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl -0x1c(%rbp),%xmm1
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  cmpl   $0x0,-0x44(%rbp)
  je     L23
  lea    D169(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L33
L23:
  lea    D105(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L33:
  movsd  -0x8(%rbp),%xmm1
  movsd  D128(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D26(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x28(%rbp),%xmm1
  movsd  D128(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D26(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rdx
  mov    -0x28(%rbp),%eax
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D165(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x18(%rbp),%xmm1
  movsd  D128(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D26(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rdx
  mov    -0x18(%rbp),%eax
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x18(%rbp),%xmm0
  subsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x28(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L20
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x28(%rbp),%xmm1
  movsd  -0x8(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
L20:
  movsd  -0x10(%rbp),%xmm1
  movsd  D9(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  divsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  lea    D112(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L45:
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x20(%rbp)
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x28(%rbp)
L22:
  addl   $0x1,-0x30(%rbp)
L83:
  cmpl   $0xc7,-0x30(%rbp)
  jle    L68
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D98
type_infered: string
name: retrieve_data
arguments: label: D101
type_infered: string
name: retrieve_data
arguments: label: D80
type_infered: string
name: retrieve_data
arguments: label: D142
type_infered: string
name: retrieve_data
arguments: label: D169
type_infered: string
name: retrieve_data
arguments: label: D105
type_infered: string
name: retrieve_data
arguments: label: D128
type_infered: f64
name: retrieve_data
arguments: label: D26
type_infered: f32[2]
name: retrieve_data
arguments: label: D65
type_infered: string
name: retrieve_data
arguments: label: D165
type_infered: string
name: retrieve_data
arguments: label: D21
type_infered: string
name: retrieve_data
arguments: label: D9
type_infered: f32[2]
name: retrieve_data
arguments: label: D112
type_infered: string

tool: D98: -------------------------------------------------------------------------------

tool: D101: %s:


tool: D80: %3d 

tool: D142:  %d


tool: D169: pulse 

tool: D105: pause 

tool: D128: 1000000

tool: {"D26": [0.0,6.6103515625]}

tool: D65: avg: %4.1f=%6.1f us, 

tool: D165: min: %2d=%6.1f us, 

tool: D21: max: %2d=%6.1f us, 

tool: {"D9": [0.0,3.390625]}

tool: D112: tol: %4.1f%%


assistant: ```c
void print_spectrum(char *text, int *buf, int is_pulse) {
  int i;
  int j;
  int min;
  int max;
  int max_value = 0;
  int value;
  int sum = 0;
  int counter = 0;
  double average = 0;
  double tolerance;
  puts("-------------------------------------------------------------------------------");
  printf("%s:\n", text);
  for (i = 0; i < 256; i++) {
    if (buf[i] > max_value) {
      max_value = buf[i];
    }
  }
  for (i = 1; i < 200; i++) {
    if (buf[i] > 0) {
      printf("%3d ", i);
      value = (buf[i] * 60) / max_value;
      for (j = 0; j < value; j++) {
        putchar('o');
      }
      printf(" %d\n", buf[i]);
      sum += i * buf[i];
      counter += buf[i];
    } else {
      max = i - 1;
      if (counter > 0) {
        average = (float)sum / (float)counter;
        if (is_pulse) {
          printf("pulse ");
        } else {
          printf("pause ");
        }
        printf("avg: %4.1f=%6.1f us, ", average, (1000000. * average) / (float)20000);
        printf("min: %2d=%6.1f us, ", min, (1000000. * min) / (float)20000);
        printf("max: %2d=%6.1f us, ", max, (1000000. * max) / (float)20000);
        tolerance = (max - average);
        if (average - min > tolerance) {
          tolerance = average - min;
        }
        tolerance = tolerance * 100 / average;
        printf("tol: %4.1f%%\n", tolerance);
      }
      counter = 0;
      sum = 0;
      min = i + 1;
    }
  }
}
```