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

```asm
<lnsrch>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  mov    $0x8,%edi
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %r8d,%ebx
  sub    $0x58,%rsp
  mov    %rdx,0x8(%rsp)
  mov    0x90(%rsp),%r13
  mov    %r9,0x38(%rsp)
  movsd  %xmm1,(%rsp)
  call   <malloc@plt>
  mov    $0x20,%edi
  mov    %rax,%r15
  call   <malloc@plt>
  mov    $0x10,%edi
  mov    %rax,0x28(%rsp)
  call   <malloc@plt>
  mov    $0x10,%edi
  mov    %rax,0x30(%rsp)
  call   <malloc@plt>
  lea    0x0(,%rbx,8),%edi
  mov    %rax,0x20(%rsp)
  call   <malloc@plt>
  mov    0x8(%rsp),%rdi
  mov    %ebx,%r8d
  mov    %r15,%rdx
  mov    $0x1,%r9d
  mov    $0x1,%ecx
  mov    %r12,%rsi
  mov    %rax,0x18(%rsp)
  call   <mmult@plt>
  test   %ebx,%ebx
  jle    L40
  mov    0x18(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  mov    %r12,%r11
  mov    %ebx,%eax
  movsd  D41(%rip),%xmm4
  mov    %rbp,%rsi
  movq   D103(%rip),%xmm2
  sub    %rcx,%r11
  lea    (%rcx,%rax,8),%rdi
  sub    %rcx,%rsi
  mov    %rcx,%rax
  sub    %rcx,%rdx
  movsd  %xmm4,0x10(%rsp)
  mov    %r11,%rcx
  nopl   0x0(%rax)
L14:
  movsd  (%rdx,%rax,1),%xmm1
  movsd  0x10(%rsp),%xmm3
  movsd  (%rsi,%rax,1),%xmm0
  andpd  %xmm2,%xmm1
  divsd  %xmm1,%xmm3
  andpd  %xmm2,%xmm0
  movsd  (%rcx,%rax,1),%xmm1
  add    $0x8,%rax
  maxsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm1
  movsd  %xmm1,-0x8(%rax)
  cmp    %rdi,%rax
  jne    L14
L85:
  mov    0x18(%rsp),%rdi
  mov    %ebx,%esi
  call   <array_max_abs@plt>
  movsd  (%rsp),%xmm5
  movsd  0x10(%rsp),%xmm3
  divsd  %xmm0,%xmm5
  movsd  %xmm5,0x38(%rsp)
L34:
  movapd %xmm3,%xmm0
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  movsd  %xmm3,0x8(%rsp)
  call   <scale@plt>
  mov    %ebx,%r8d
  mov    $0x1,%ecx
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <madd@plt>
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   *%r14
  mov    %ebx,%esi
  mov    %rbp,%rdi
  movsd  %xmm0,(%rsp)
  call   *%r14
  movsd  D15(%rip),%xmm6
  movsd  0x8(%rsp),%xmm3
  movsd  (%r15),%xmm2
  movapd %xmm0,%xmm1
  mulsd  %xmm3,%xmm6
  movapd %xmm6,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  comisd (%rsp),%xmm0
  jb     L47
  xor    %r12d,%r12d
L43:
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  add    $0x58,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L47:
  movsd  0x38(%rsp),%xmm4
  comisd %xmm3,%xmm4
  ja     L164
  ucomisd 0x10(%rsp),%xmm3
  jp     L12
  jne    L12
  movsd  (%rsp),%xmm4
  movapd %xmm2,%xmm0
  xorpd  D52(%rip),%xmm0
  subsd  %xmm1,%xmm4
  subsd  %xmm2,%xmm4
  divsd  %xmm4,%xmm0
L64:
  movapd %xmm0,%xmm1
  movsd  D86(%rip),%xmm2
  movsd  (%rsp),%xmm5
  movsd  %xmm3,0x40(%rsp)
  mulsd  %xmm3,%xmm2
  movsd  %xmm5,0x48(%rsp)
  cmpnlesd %xmm2,%xmm1
  andpd  %xmm1,%xmm0
  andnpd %xmm2,%xmm1
  orpd   %xmm0,%xmm1
  movapd %xmm1,%xmm3
  jmp    L34
  nopw   0x0(%rax,%rax,1)
L12:
  movapd %xmm3,%xmm0
  movsd  0x10(%rsp),%xmm2
  movsd  0x40(%rsp),%xmm7
  movapd %xmm3,%xmm5
  mulsd  %xmm3,%xmm0
  mov    0x28(%rsp),%rdi
  mov    0x30(%rsp),%rsi
  mov    $0x1,%r9d
  movapd %xmm7,%xmm4
  subsd  %xmm7,%xmm5
  mov    0x20(%rsp),%rdx
  mov    $0x2,%r8d
  mulsd  %xmm7,%xmm4
  mov    $0x2,%ecx
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm5,0x40(%rsp)
  divsd  %xmm0,%xmm2
  movsd  %xmm2,(%rdi)
  movsd  D74(%rip),%xmm2
  divsd  %xmm4,%xmm2
  movsd  %xmm2,0x8(%rdi)
  movapd %xmm7,%xmm2
  xorpd  D52(%rip),%xmm2
  divsd  %xmm0,%xmm2
  movapd %xmm3,%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm2,0x10(%rdi)
  movapd %xmm3,%xmm2
  movsd  %xmm0,0x18(%rdi)
  movsd  (%rsp),%xmm0
  mulsd  (%r15),%xmm2
  subsd  %xmm1,%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rsi)
  movsd  (%r15),%xmm5
  movsd  0x48(%rsp),%xmm0
  mulsd  %xmm7,%xmm5
  subsd  %xmm1,%xmm0
  subsd  %xmm5,%xmm0
  movsd  %xmm0,0x8(%rsi)
  call   <mmult@plt>
  movsd  0x40(%rsp),%xmm5
  mov    0x20(%rsp),%rdi
  mov    $0x2,%edx
  mov    $0x1,%esi
  movapd %xmm5,%xmm0
  call   <scale@plt>
  mov    0x20(%rsp),%rax
  pxor   %xmm5,%xmm5
  movsd  0x8(%rsp),%xmm3
  movsd  (%rax),%xmm1
  ucomisd %xmm5,%xmm1
  jp     L100
  jne    L100
  movsd  0x8(%rax),%xmm1
  movsd  (%r15),%xmm0
  xorpd  D52(%rip),%xmm0
  addsd  %xmm1,%xmm1
  divsd  %xmm1,%xmm0
L91:
  movsd  D90(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  minsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  jmp    L64
  nopw   0x0(%rax,%rax,1)
L164:
  movslq %ebx,%rdx
  xor    %eax,%eax
  test   %ebx,%ebx
  jle    L33
  nopl   0x0(%rax)
L3:
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L3
L33:
  mov    $0x1,%r12d
  jmp    L43
L100:
  mov    0x20(%rsp),%rax
  mulsd  D66(%rip),%xmm1
  pxor   %xmm5,%xmm5
  movsd  (%r15),%xmm4
  movsd  0x8(%rax),%xmm2
  movapd %xmm2,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm4
  subsd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L151
  sqrtsd %xmm0,%xmm0
L2:
  subsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  jmp    L91
L40:
  movsd  D41(%rip),%xmm4
  movsd  %xmm4,0x10(%rsp)
  jmp    L85
L151:
  movsd  %xmm3,0x48(%rsp)
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x48(%rsp),%xmm3
  movsd  0x40(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm2
  jmp    L2
```

tool_calls: name: retrieve_data
arguments: data_tag: D41
type_infered: f64
name: retrieve_data
arguments: data_tag: D103
type_infered: qword
name: retrieve_data
arguments: data_tag: D15
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D52
type_infered: f32[4]
name: retrieve_data
arguments: data_tag: D86
type_infered: f64
name: retrieve_data
arguments: data_tag: D74
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D90
type_infered: f64
name: retrieve_data
arguments: data_tag: D66
type_infered: f64

tool: D41: 1

tool: D103: 9223372036854775807

tool: {"D15": [0x2d,0x43,0x1c,0xeb,0xe2,0x36,0x1a,0x3f]}

tool: {"D52": [0.0,-0.0,0.0,0.0]}

tool: D86: 0.1

tool: {"D74": [0.0,-1.875]}

tool: D90: 0.5

tool: D66: 3

assistant: ```c
int lnsrch(double (*funcpt)(double *, int), double *xi, double *jac, double *p, int N, double maxstep, double *dx, double stol, double *x) {
  int retval, i, j;
  double alpha, lambda, lambdamin, funcf, funci, lambdaprev, lambdatemp, funcprev;
  double lambda2, lambdaprev2, ll, den, rell;
  double *slopei, *temp1, *temp2, *ab, *rcheck;
  slopei = (double *)malloc(sizeof(double) * 1);
  temp1 = (double *)malloc(sizeof(double) * 4);
  temp2 = (double *)malloc(sizeof(double) * 2);
  ab = (double *)malloc(sizeof(double) * 2);
  rcheck = (double *)malloc(sizeof(double) * N);
  retval = 100;
  alpha = 1e-04;
  lambda = 1.0;
  mmult(jac, p, slopei, 1, N, 1);
  for (i = 0; i < N; ++i) {
    if (fabs(xi[i]) > 1.0 / fabs(dx[i])) {
      den = fabs(xi[i]);
    } else {
      den = 1.0 / fabs(dx[i]);
    }
    rcheck[i] = p[i] / den;
  }
  rell = array_max_abs(rcheck, N);
  lambdamin = stol / rell;
  while (retval > 1) {
    scale(p, 1, N, lambda);
    madd(xi, p, x, 1, N);
    funcf = funcpt(x, N);
    funci = funcpt(xi, N);
    if (funcf <= funci + alpha * lambda * slopei[0]) {
      retval = 0;
    } else if (lambda < lambdamin) {
      retval = 1;
      for (i = 0; i < N; ++i) {
        x[i] = xi[i];
      }
    } else {
      if (lambda == 1.0) {
        lambdatemp = -slopei[0] / (funcf - funci - slopei[0]);
      } else {
        lambda2 = lambda * lambda;
        lambdaprev2 = lambdaprev * lambdaprev;
        ll = lambda - lambdaprev;
        temp1[0] = 1.0 / lambda2;
        temp1[1] = -1.0 / lambdaprev2;
        temp1[2] = -lambdaprev / lambda2;
        temp1[3] = lambda / lambdaprev2;
        temp2[0] = funcf - funci - lambda * slopei[0];
        temp2[1] = funcprev - funci - lambdaprev * slopei[0];
        mmult(temp1, temp2, ab, 2, 2, 1);
        scale(ab, 1, 2, ll);
        if (ab[0] == 0.0) {
          lambdatemp = -slopei[0] / (2.0 * ab[1]);
        } else {
          lambdatemp = (-ab[1] + sqrt(ab[1] * ab[1] - 3.0 * ab[0] * slopei[0])) / (3.0 * ab[0]);
        }
        if (lambdatemp > 0.5 * lambda) {
          lambdatemp = 0.5 * lambda;
        }
      }
      lambdaprev = lambda;
      funcprev = funcf;
      if (lambdatemp <= 0.1 * lambda) {
        lambda = 0.1 * lambda;
      } else {
        lambda = lambdatemp;
      }
    }
  }
  free(slopei);
  free(temp1);
  free(temp2);
  free(ab);
  free(rcheck);
  return retval;
}
```