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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x64,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,-0x18(%rbp)
  movq   $0x1,-0x20(%rbp)
  jmp    L124
L139:
  mov    -0x20(%rbp),%rax
  test   %rax,%rax
  js     L112
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L120
L112:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L120:
  movsd  D146(%rip),%xmm1
  divsd  %xmm1,%xmm0
  comisd D118(%rip),%xmm0
  jae    L50
  cvttsd2si %xmm0,%rax
  jmp    L133
L50:
  movsd  D118(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%rax
  movabs $0x8000000000000000,%rdx
  xor    %rdx,%rax
L133:
  mov    %rax,%rdi
  call   <exp@plt>
  movq   %xmm0,%rax
  movsd  D32(%rip),%xmm0
  movq   %rax,%xmm1
  subsd  %xmm0,%xmm1
  mov    -0x20(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,(%rax)
  addq   $0x1,-0x20(%rbp)
L124:
  cmpq   $0x64,-0x20(%rbp)
  jbe    L139
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rsi
  lea    D153(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D87(%rip),%r9
  lea    D31(%rip),%r8
  lea    D26(%rip),%rax
  mov    %rax,%rcx
  lea    D165(%rip),%rax
  mov    %rax,%rdx
  lea    D109(%rip),%rax
  mov    %rax,%rsi
  lea    D154(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movq   $0x1,-0x20(%rbp)
  jmp    L157
L101:
  mov    -0x20(%rbp),%rax
  test   %rax,%rax
  js     L78
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L146
L78:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L146:
  movsd  D19(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  D23(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x2c(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  lea    -0x28(%rbp),%rdx
  mov    -0x2c(%rbp),%ecx
  mov    -0x18(%rbp),%rax
  movd   %ecx,%xmm0
  mov    $0x64,%esi
  mov    %rax,%rdi
  call   <hunt@plt>
  mov    -0x28(%rbp),%rax
  cmp    $0x63,%rax
  ja     L143
  mov    -0x28(%rbp),%rax
  test   %rax,%rax
  je     L143
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x28(%rbp),%rdx
  pxor   %xmm3,%xmm3
  cvtss2sd -0x2c(%rbp),%xmm3
  movq   %xmm3,%rax
  mov    -0x10(%rbp),%rcx
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  mov    %rcx,%rsi
  movq   %rax,%xmm0
  lea    D150(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  jmp    L28
L143:
  mov    -0x28(%rbp),%rax
  cmp    $0x64,%rax
  jne    L33
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x28(%rbp),%rdx
  pxor   %xmm4,%xmm4
  cvtss2sd -0x2c(%rbp),%xmm4
  movq   %xmm4,%rax
  mov    -0x10(%rbp),%rsi
  lea    D72(%rip),%rcx
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D131(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  jmp    L28
L33:
  mov    -0x28(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x28(%rbp),%rdx
  pxor   %xmm5,%xmm5
  cvtss2sd -0x2c(%rbp),%xmm5
  movq   %xmm5,%rax
  mov    -0x10(%rbp),%rsi
  movapd %xmm0,%xmm1
  lea    D60(%rip),%rcx
  movq   %rax,%xmm0
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
L28:
  addq   $0x1,-0x20(%rbp)
L157:
  cmpq   $0x13,-0x20(%rbp)
  jbe    L101
  mov    -0x18(%rbp),%rax
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <free_vector@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D146
datatype: f64
name: read_data
arguments: data_tag: D118
datatype: byte[16]
name: read_data
arguments: data_tag: D32
datatype: f64
name: read_data
arguments: data_tag: D27
datatype: string
name: read_data
arguments: data_tag: D36
datatype: string
name: read_data
arguments: data_tag: D153
datatype: string
name: read_data
arguments: data_tag: D87
datatype: string
name: read_data
arguments: data_tag: D31
datatype: string
name: read_data
arguments: data_tag: D26
datatype: string
name: read_data
arguments: data_tag: D165
datatype: string
name: read_data
arguments: data_tag: D109
datatype: string
name: read_data
arguments: data_tag: D154
datatype: string
name: read_data
arguments: data_tag: D19
datatype: f64
name: read_data
arguments: data_tag: D23
datatype: f64
name: read_data
arguments: data_tag: D150
datatype: string
name: read_data
arguments: data_tag: D72
datatype: string
name: read_data
arguments: data_tag: D131
datatype: string
name: read_data
arguments: data_tag: D60
datatype: string
name: read_data
arguments: data_tag: D116
datatype: string

tool: D146: 20

tool: {"D118": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x43,0x00,0x00,0x00,0x00,0x00,0x80,0x52,0x40]}

tool: D32: 74

tool: D27: 
  result of:   j=0 indicates x too small

tool: D36:  

tool: D153: %14s j=100 indicates x too large

tool: D87: xx(j+1)

tool: D31: xx(j)

tool: D26: j

tool: D165: guess

tool: D109: locate:

tool: D154: 
%12s %8s %4s %11s %13s 


tool: D19: 10

tool: D23: 100

tool: D150: %12.5f %6lu %6lu %12.6f %12.6f 


tool: D72:    upper lim

tool: D131: %12.5f %6lu %6lu %12.6f %s 


tool: D60:    lower lim

tool: D116: %12.5f %6lu %6lu %s %12.6f 


assistant: ```c
int main(void) {
  unsigned long i, j, ji;
  float x, *xx;
  xx = vector(1, 100);
  for (i = 1; i <= 100; i++)
    xx[i] = exp(i / 20.0) - 74.0;
  printf("\n  result of:   j=0 indicates x too small\n");
  printf("%14s j=100 indicates x too large", " ");
  printf("\n%12s %8s %4s %11s %13s \n", "locate:", "guess", "j", "xx(j)", "xx(j+1)");
  for (i = 1; i <= 19; i++) {
    x = -100.0 + 10.0 * i;
    j = (ji = 5 * i);
    hunt(xx, 100, x, &j);
    if ((j < 100) && (j > 0))
      printf("%12.5f %6lu %6lu %12.6f %12.6f \n", x, ji, j, xx[j], xx[j + 1]);
    else if (j == 100)
      printf("%12.5f %6lu %6lu %12.6f %s \n", x, ji, j, xx[j], "   upper lim");
    else
      printf("%12.5f %6lu %6lu %s %12.6f \n", x, ji, j, "   lower lim", xx[j + 1]);
  }
  free_vector(xx, 1, 100);
  return 0;
}
```