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

```asm
<mp_lmpar>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %r9,%r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rsi,0x28(%rsp)
  mov    0xc0(%rsp),%rbx
  mov    %edx,0x3c(%rsp)
  mov    0xc8(%rsp),%r15
  mov    %rcx,0x20(%rsp)
  movsd  %xmm0,0x18(%rsp)
  test   %edi,%edi
  jle    L121
  lea    0x1(%rdx),%edi
  pxor   %xmm3,%xmm3
  movslq %ebp,%rdx
  mov    %ebp,%r8d
  movslq %edi,%rdi
  mov    0xa0(%rsp),%r10
  xor    %eax,%eax
  xor    %r9d,%r9d
  shl    $0x3,%rdi
  movsd  %xmm3,(%rsp)
  jmp    L139
  xchg   %ax,%ax
L405:
  add    $0x1,%rax
  add    %rdi,%rsi
  cmp    %rax,%rdx
  je     L451
L139:
  movsd  (%r10,%rax,8),%xmm0
  movsd  (%rsp),%xmm7
  movsd  %xmm0,(%rbx,%rax,8)
  ucomisd (%rsi),%xmm7
  setnp  %cl
  cmovne %r9d,%ecx
  test   %cl,%cl
  je     L359
  cmp    %r8d,%ebp
  je     L271
L359:
  cmp    %r8d,%ebp
  jle    L405
  movq   $0x0,(%rbx,%rax,8)
L501:
  add    $0x1,%rax
  add    %rdi,%rsi
  cmp    %rax,%rdx
  jne    L139
L451:
  test   %r8d,%r8d
  je     L377
  mov    0x3c(%rsp),%r11d
  mov    0x28(%rsp),%r9
  movslq %r8d,%rcx
  lea    -0x2(%r8),%edi
  lea    (%rbx,%rcx,8),%rsi
  mov    %r11d,%eax
  not    %eax
  cltq
  lea    0x0(,%rax,8),%r14
  lea    -0x1(%r8),%eax
  imul   %r11d,%eax
  neg    %r11d
  movslq %r11d,%r11
  shl    $0x3,%r11
  cltq
  add    %rax,%rcx
  lea    (%r9,%rcx,8),%r10
  lea    (%r9,%rax,8),%rcx
  nopl   (%rax)
L289:
  movsd  -0x8(%rsi),%xmm1
  divsd  -0x8(%r10),%xmm1
  movsd  %xmm1,-0x8(%rsi)
  cmp    $0xffffffff,%edi
  jne    L172
L377:
  mov    0x20(%rsp),%rsi
  mov    0xb0(%rsp),%rdi
  xor    %eax,%eax
L370:
  movsd  (%rbx,%rax,8),%xmm0
  movslq (%rsi,%rax,4),%rcx
  add    $0x1,%rax
  movsd  %xmm0,(%rdi,%rcx,8)
  cmp    %rax,%rdx
  jne    L370
  mov    0xb0(%rsp),%rsi
  xor    %eax,%eax
  nopl   0x0(%rax)
L561:
  movslq (%r12,%rax,4),%rcx
  movsd  0x0(%r13,%rcx,8),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  movsd  %xmm0,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L561
  mov    %r15,%rsi
  mov    %ebp,%edi
  mov    %r8d,0x8(%rsp)
  call   <mp_enorm@plt>
  movsd  0x18(%rsp),%xmm4
  mov    0x8(%rsp),%r8d
  movsd  D51(%rip),%xmm1
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm3
  subsd  %xmm4,%xmm7
  mulsd  %xmm1,%xmm4
  movsd  %xmm7,0x30(%rsp)
  comisd %xmm7,%xmm4
  movsd  %xmm4,0x40(%rsp)
  jae    L71
  movsd  (%rsp),%xmm6
  movslq 0x3c(%rsp),%r14
  movsd  %xmm6,0x10(%rsp)
  cmp    %r8d,%ebp
  jle    L555
L81:
  test   %ebp,%ebp
  jle    L443
  mov    0x20(%rsp),%rdi
  lea    -0x1(%rbp),%eax
  mov    0x28(%rsp),%rcx
  lea    0x0(,%r14,8),%r8
  mov    0xa0(%rsp),%r9
  mov    $0x8,%edx
  mov    %rdi,%rsi
  lea    0x4(%rdi,%rax,4),%rdi
  nopw   0x0(%rax,%rax,1)
L43:
  xor    %eax,%eax
  pxor   %xmm2,%xmm2
  cs nopw 0x0(%rax,%rax,1)
L173:
  movsd  (%rcx,%rax,1),%xmm0
  mulsd  (%r9,%rax,1),%xmm0
  add    $0x8,%rax
  addsd  %xmm0,%xmm2
  cmp    %rax,%rdx
  jne    L173
  movslq (%rsi),%rax
  add    $0x4,%rsi
  add    %r8,%rcx
  movslq (%r12,%rax,4),%rax
  divsd  0x0(%r13,%rax,8),%xmm2
  movsd  %xmm2,-0x8(%rbx,%rdx,1)
  add    $0x8,%rdx
  cmp    %rsi,%rdi
  jne    L43
L443:
  mov    %rbx,%rsi
  mov    %ebp,%edi
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm1,0x50(%rsp)
  call   <mp_enorm@plt>
  movsd  0x8(%rsp),%xmm3
  movapd %xmm0,%xmm6
  divsd  0x18(%rsp),%xmm6
  ucomisd (%rsp),%xmm6
  movapd %xmm0,%xmm2
  movsd  %xmm6,0x48(%rsp)
  jp     L531
  movsd  0x50(%rsp),%xmm1
  je     L178
L531:
  mov    0xa8(%rsp),%rax
  movsd  0x10(%rsp),%xmm1
  movsd  %xmm2,0x50(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  (%rax),%xmm0
  call   <mp_dmax1@plt>
  mov    0xa8(%rsp),%rax
  movsd  0x48(%rsp),%xmm1
  movsd  %xmm0,(%rax)
  call   <mp_dmin1@plt>
  ucomisd (%rsp),%xmm0
  jp     L352
  movsd  0x8(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm2
  jne    L352
  divsd  %xmm3,%xmm2
  movapd %xmm2,%xmm0
L352:
  mov    0xa8(%rsp),%rax
  movl   $0xa,0x50(%rsp)
  mov    %r15,0xc8(%rsp)
  mov    %ebp,%r15d
  movsd  %xmm0,(%rax)
  lea    0x0(,%r14,8),%rax
  movslq %ebp,%r14
  mov    %rbx,%rbp
  mov    %rax,0x58(%rsp)
  mov    0xc8(%rsp),%rbx
L229:
  ucomisd (%rsp),%xmm0
  jp     L446
  je     L175
L446:
  movsd  (%rsp),%xmm3
  ucomisd %xmm0,%xmm3
  ja     L279
  sqrtsd %xmm0,%xmm0
L219:
  test   %r15d,%r15d
  jle    L282
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L223:
  movslq (%r12,%rax,4),%rdx
  movsd  0x0(%r13,%rdx,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r14
  jne    L223
  sub    $0x8,%rsp
  mov    %rbp,%r8
  mov    %r15d,%edi
  push   %rbx
  push   0xc8(%rsp)
  push   0xc8(%rsp)
  mov    0xc0(%rsp),%r9
  mov    0x40(%rsp),%rcx
  mov    0x5c(%rsp),%edx
  mov    0x48(%rsp),%rsi
  call   <mp_qrsolv@plt>
  mov    0xd0(%rsp),%rcx
  add    $0x20,%rsp
  xor    %eax,%eax
L261:
  movslq (%r12,%rax,4),%rdx
  movsd  0x0(%r13,%rdx,8),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r14
  jne    L261
L477:
  mov    %rbx,%rsi
  mov    %r15d,%edi
  call   <mp_enorm@plt>
  movsd  0x40(%rsp),%xmm3
  movapd %xmm0,%xmm6
  subsd  0x18(%rsp),%xmm6
  movapd %xmm0,%xmm1
  movapd %xmm6,%xmm0
  andpd  D58(%rip),%xmm0
  movsd  %xmm6,0x8(%rsp)
  comisd %xmm0,%xmm3
  jae    L356
  movsd  0x10(%rsp),%xmm7
  movsd  (%rsp),%xmm3
  ucomisd %xmm3,%xmm7
  jp     L281
  jne    L281
  movsd  0x30(%rsp),%xmm5
  comisd %xmm6,%xmm5
  jb     L281
  comisd %xmm5,%xmm3
  ja     L356
L281:
  subl   $0x1,0x50(%rsp)
  je     L356
  mov    0x20(%rsp),%rsi
  xor    %eax,%eax
  test   %r15d,%r15d
  jle    L115
  nopl   0x0(%rax)
L313:
  movslq (%rsi,%rax,4),%rdx
  movsd  (%rbx,%rdx,8),%xmm0
  movslq (%r12,%rdx,4),%rcx
  divsd  %xmm1,%xmm0
  mulsd  0x0(%r13,%rcx,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r14
  jne    L313
  mov    0x28(%rsp),%rax
  mov    0x58(%rsp),%rdi
  mov    $0x1,%edx
  mov    0xb8(%rsp),%rsi
  lea    0x8(%rax),%rcx
  nopw   0x0(%rax,%rax,1)
L363:
  movsd  -0x8(%rbp,%rdx,8),%xmm1
  divsd  -0x8(%rsi,%rdx,8),%xmm1
  movsd  %xmm1,-0x8(%rbp,%rdx,8)
  cmp    %rdx,%r14
  jne    L398
L115:
  mov    %rbp,%rsi
  mov    %r15d,%edi
  call   <mp_enorm@plt>
  movsd  0x8(%rsp),%xmm4
  comisd (%rsp),%xmm4
  movapd %xmm0,%xmm2
  ja     L413
L107:
  movsd  (%rsp),%xmm4
  comisd 0x8(%rsp),%xmm4
  ja     L105
L186:
  movsd  0x8(%rsp),%xmm1
  divsd  0x18(%rsp),%xmm1
  divsd  %xmm2,%xmm1
  mov    0xa8(%rsp),%rax
  movsd  0x10(%rsp),%xmm0
  divsd  %xmm2,%xmm1
  addsd  (%rax),%xmm1
  call   <mp_dmax1@plt>
  mov    0xa8(%rsp),%rax
  movsd  0x8(%rsp),%xmm1
  movsd  %xmm0,(%rax)
  movsd  %xmm1,0x30(%rsp)
  jmp    L229
  nopl   0x0(%rax)
L271:
  movq   $0x0,(%rbx,%rax,8)
  mov    %eax,%r8d
  jmp    L501
L71:
  mov    0xa8(%rsp),%rax
  movq   $0x0,(%rax)
L356:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L172:
  lea    0x1(%rdi),%r9d
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L112:
  movsd  (%rcx,%rax,8),%xmm2
  movsd  (%rbx,%rax,8),%xmm0
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r9
  jne    L112
  sub    $0x8,%rsi
  add    %r14,%r10
  sub    $0x1,%edi
  add    %r11,%rcx
  jmp    L289
  nopw   0x0(%rax,%rax,1)
L398:
  mov    %rdx,%rax
  nopl   0x0(%rax,%rax,1)
L406:
  movsd  -0x8(%rcx,%rax,8),%xmm2
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L406
  add    $0x1,%rdx
  add    %rdi,%rcx
  jmp    L363
  nop
L175:
  movsd  D45(%rip),%xmm1
  mulsd  0x48(%rsp),%xmm1
  mov    D33(%rip),%rax
  movq   %rax,%xmm0
  call   <mp_dmax1@plt>
  mov    0xa8(%rsp),%rax
  movsd  %xmm0,(%rax)
  jmp    L446
L105:
  mov    0xa8(%rsp),%rax
  movsd  0x48(%rsp),%xmm0
  movsd  %xmm2,0x30(%rsp)
  movsd  (%rax),%xmm1
  call   <mp_dmin1@plt>
  movsd  0x30(%rsp),%xmm2
  movsd  %xmm0,0x48(%rsp)
  jmp    L186
  xchg   %ax,%ax
L413:
  mov    0xa8(%rsp),%rax
  movsd  %xmm0,0x30(%rsp)
  movsd  0x10(%rsp),%xmm0
  movsd  (%rax),%xmm1
  call   <mp_dmax1@plt>
  movsd  0x30(%rsp),%xmm2
  movsd  %xmm0,0x10(%rsp)
  jmp    L107
L282:
  sub    $0x8,%rsp
  mov    %rbp,%r8
  mov    %r15d,%edi
  push   %rbx
  push   0xc8(%rsp)
  push   0xc8(%rsp)
  mov    0xc0(%rsp),%r9
  mov    0x40(%rsp),%rcx
  mov    0x5c(%rsp),%edx
  mov    0x48(%rsp),%rsi
  call   <mp_qrsolv@plt>
  add    $0x20,%rsp
  jmp    L477
L121:
  mov    %r15,%rsi
  call   <mp_enorm@plt>
  movsd  0x18(%rsp),%xmm6
  movsd  D51(%rip),%xmm1
  movapd %xmm0,%xmm7
  movapd %xmm0,%xmm3
  subsd  %xmm6,%xmm7
  mulsd  %xmm1,%xmm6
  movsd  %xmm7,0x30(%rsp)
  comisd %xmm7,%xmm6
  movsd  %xmm6,0x40(%rsp)
  jae    L71
  pxor   %xmm6,%xmm6
  movsd  %xmm6,(%rsp)
L555:
  mov    0x20(%rsp),%rdi
  lea    -0x1(%rbp),%r10d
  mov    %ebp,%edx
  xor    %eax,%eax
  test   %ebp,%ebp
  jle    L90
  nopl   (%rax)
L91:
  movslq (%rdi,%rax,4),%rcx
  movsd  (%r15,%rcx,8),%xmm0
  movslq (%r12,%rcx,4),%rsi
  divsd  %xmm3,%xmm0
  mulsd  0x0(%r13,%rsi,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L91
  movslq 0x3c(%rsp),%r14
  mov    0x28(%rsp),%rcx
  mov    %rbx,%rsi
  mov    $0xffffffff,%edx
  lea    0x8(,%r14,8),%r8
  mov    %rcx,%rdi
  lea    0x0(,%r14,8),%r9
  nopl   0x0(%rax)
L47:
  pxor   %xmm2,%xmm2
  cmp    $0xffffffff,%edx
  je     L546
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L424:
  movsd  (%rcx,%rax,8),%xmm0
  mulsd  (%rbx,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm2
  cmp    %eax,%edx
  jge    L424
L546:
  movsd  (%rsi),%xmm0
  add    $0x1,%edx
  add    $0x8,%rsi
  add    %r9,%rcx
  subsd  %xmm2,%xmm0
  divsd  (%rdi),%xmm0
  add    %r8,%rdi
  movsd  %xmm0,-0x8(%rsi)
  cmp    %edx,%r10d
  jne    L47
L28:
  mov    %rbx,%rsi
  mov    %ebp,%edi
  movsd  %xmm1,0x48(%rsp)
  movsd  %xmm3,0x8(%rsp)
  call   <mp_enorm@plt>
  movsd  0x8(%rsp),%xmm3
  movsd  0x48(%rsp),%xmm1
  movapd %xmm0,%xmm2
  movsd  0x30(%rsp),%xmm0
  divsd  0x18(%rsp),%xmm0
  divsd  %xmm2,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x10(%rsp)
  jmp    L81
L178:
  movsd  %xmm0,0x50(%rsp)
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm3,0x8(%rsp)
  call   <mp_dmin1@plt>
  movsd  D33(%rip),%xmm1
  movsd  0x50(%rsp),%xmm2
  movsd  0x8(%rsp),%xmm3
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x48(%rsp)
  jmp    L531
L90:
  movslq 0x3c(%rsp),%r14
  jmp    L28
L279:
  call   <sqrt@plt>
  jmp    L219
```

tool_calls: name: read_data
arguments: tag: D51
data_type: f64
name: read_data
arguments: tag: D58
data_type: qword[2]
name: read_data
arguments: tag: D45
data_type: f64
name: read_data
arguments: tag: D33
data_type: byte[8]

tool: D51: 0.1

tool: {"D58": [0x7fffffffffffffff,0x0000000000000000]}

tool: D45: 0.001

tool: {"D33": [0x17,0x78,0x01,0x05,0x00,0x00,0x10,0x00]}

assistant: ```c
void mp_lmpar(int n, double *r, int ldr, int *ipvt, int *ifree, double *diag, double *qtb, double delta, double *par, double *x, double *sdiag, double *wa1, double *wa2) {
  int i, iter, ij, jj, j, jm1, jp1, k, l, nsing;
  double dxnorm, fp, gnorm, parc, parl, paru;
  double sum, temp;
  static double zero = 0.0;
  static double p1 = 0.1;
  static double p001 = 0.001;
  nsing = n;
  jj = 0;
  for (j = 0; j < n; j++) {
    wa1[j] = qtb[j];
    if ((r[jj] == zero) && (nsing == n))
      nsing = j;
    if (nsing < n)
      wa1[j] = zero;
    jj += ldr + 1;
  }
  if (nsing >= 1) {
    for (k = 0; k < nsing; k++) {
      j = nsing - k - 1;
      wa1[j] = wa1[j] / r[j + ldr * j];
      temp = wa1[j];
      jm1 = j - 1;
      if (jm1 >= 0) {
        ij = ldr * j;
        for (i = 0; i <= jm1; i++) {
          wa1[i] -= r[ij] * temp;
          ij += 1;
        }
      }
    }
  }
  for (j = 0; j < n; j++) {
    l = ipvt[j];
    x[l] = wa1[j];
  }
  iter = 0;
  for (j = 0; j < n; j++)
    wa2[j] = diag[ifree[j]] * x[j];
  dxnorm = mp_enorm(n, wa2);
  fp = dxnorm - delta;
  if (fp <= p1 * delta) {
    goto L220;
  }
  parl = zero;
  if (nsing >= n) {
    for (j = 0; j < n; j++) {
      l = ipvt[j];
      wa1[j] = diag[ifree[l]] * (wa2[l] / dxnorm);
    }
    jj = 0;
    for (j = 0; j < n; j++) {
      sum = zero;
      jm1 = j - 1;
      if (jm1 >= 0) {
        ij = jj;
        for (i = 0; i <= jm1; i++) {
          sum += r[ij] * wa1[i];
          ij += 1;
        }
      }
      wa1[j] = (wa1[j] - sum) / r[j + ldr * j];
      jj += ldr;
    }
    temp = mp_enorm(n, wa1);
    parl = ((fp / delta) / temp) / temp;
  }
  jj = 0;
  for (j = 0; j < n; j++) {
    sum = zero;
    ij = jj;
    for (i = 0; i <= j; i++) {
      sum += r[ij] * qtb[i];
      ij += 1;
    }
    l = ipvt[j];
    wa1[j] = sum / diag[ifree[l]];
    jj += ldr;
  }
  gnorm = mp_enorm(n, wa1);
  paru = gnorm / delta;
  if (paru == zero)
    paru = 2.2250739e-308 / mp_dmin1(delta, p1);
  *par = mp_dmax1(*par, parl);
  *par = mp_dmin1(*par, paru);
  if (*par == zero)
    *par = gnorm / dxnorm;
L150:
  iter += 1;
  if (*par == zero)
    *par = mp_dmax1(2.2250739e-308, p001 * paru);
  temp = sqrt(*par);
  for (j = 0; j < n; j++)
    wa1[j] = temp * diag[ifree[j]];
  mp_qrsolv(n, r, ldr, ipvt, wa1, qtb, x, sdiag, wa2);
  for (j = 0; j < n; j++)
    wa2[j] = diag[ifree[j]] * x[j];
  dxnorm = mp_enorm(n, wa2);
  temp = fp;
  fp = dxnorm - delta;
  if ((fabs(fp) <= p1 * delta) || ((parl == zero) && (fp <= temp) && (temp < zero)) || (iter == 10))
    goto L220;
  for (j = 0; j < n; j++) {
    l = ipvt[j];
    wa1[j] = diag[ifree[l]] * (wa2[l] / dxnorm);
  }
  jj = 0;
  for (j = 0; j < n; j++) {
    wa1[j] = wa1[j] / sdiag[j];
    temp = wa1[j];
    jp1 = j + 1;
    if (jp1 < n) {
      ij = jp1 + jj;
      for (i = jp1; i < n; i++) {
        wa1[i] -= r[ij] * temp;
        ij += 1;
      }
    }
    jj += ldr;
  }
  temp = mp_enorm(n, wa1);
  parc = ((fp / delta) / temp) / temp;
  if (fp > zero)
    parl = mp_dmax1(parl, *par);
  if (fp < zero)
    paru = mp_dmin1(paru, *par);
  *par = mp_dmax1(parl, *par + parc);
  goto L150;
L220:
  if (iter == 0)
    *par = zero;
}
```