user: Translate the below assembly code into C programming language:

```asm
<lm_qrsolv>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rcx,0x10(%rsp)
  mov    0xc0(%rsp),%r10
  mov    %r8,0x20(%rsp)
  mov    0xc8(%rsp),%rbx
  mov    0xd0(%rsp),%r12
  test   %edi,%edi
  jle    L285
  mov    %edi,%ebp
  movslq %edx,%rdi
  mov    %rsi,0x8(%rsp)
  mov    %rsi,%r15
  lea    -0x1(%rbp),%eax
  mov    %edx,%r14d
  mov    %rsi,%r11
  xor    %r8d,%r8d
  lea    0x8(,%rdi,8),%r13
  mov    %eax,0x44(%rsp)
  mov    %ebp,%eax
  shl    $0x3,%rdi
  mov    %r13,0x28(%rsp)
  mov    %rax,%rcx
  mov    %rax,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L265:
  mov    %r11,%rdx
  mov    %r8,%rax
  cs nopw 0x0(%rax,%rax,1)
L283:
  movsd  (%rdx),%xmm0
  add    %rdi,%rdx
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jg     L283
  movsd  (%r11),%xmm0
  add    %rdi,%rsi
  add    %r13,%r11
  movsd  %xmm0,(%r10,%r8,8)
  movsd  (%r9,%r8,8),%xmm0
  movsd  %xmm0,(%r12,%r8,8)
  add    $0x1,%r8
  cmp    %r8,%rcx
  jne    L265
  mov    0x8(%rsp),%rcx
  lea    0x1(%r14),%r8d
  mov    %r14d,%eax
  xor    %r13d,%r13d
  mov    %r12,0xd0(%rsp)
  mov    %r8d,%r14d
  pxor   %xmm5,%xmm5
  mov    %r15,%r8
  mov    %rcx,%r12
  movl   $0x0,0x8(%rsp)
  mov    %eax,%r15d
  mov    0xd0(%rsp),%rcx
  movl   $0x0,0x40(%rsp)
  jmp    L31
  nopl   0x0(%rax,%rax,1)
L23:
  movsd  (%r12),%xmm0
  add    %r15d,0x40(%rsp)
  add    %r14d,0x8(%rsp)
  movsd  %xmm0,(%rbx,%r13,8)
  movsd  (%r10,%r13,8),%xmm0
  mov    %r11,%r13
  movsd  %xmm0,(%r12)
  add    0x28(%rsp),%r12
  cmp    %r11,0x18(%rsp)
  je     L20
L31:
  mov    0x10(%rsp),%rax
  mov    0x20(%rsp),%rdi
  mov    %r13d,%edx
  mov    %r13d,%esi
  movslq (%rax,%r13,4),%rax
  lea    (%rdi,%rax,8),%r9
  ucomisd (%r9),%xmm5
  jp     L101
  lea    0x1(%r13),%r11
  je     L23
L101:
  mov    0x44(%rsp),%eax
  lea    (%rbx,%r13,8),%rdi
  mov    %rcx,0xd0(%rsp)
  mov    %r10,0xc0(%rsp)
  sub    %edx,%eax
  cmp    %esi,%ebp
  mov    %r8,0x38(%rsp)
  lea    0x8(,%rax,8),%rdx
  mov    $0x8,%eax
  mov    %r9,0x30(%rsp)
  cmovle %rax,%rdx
  xor    %esi,%esi
  call   <memset@plt>
  mov    0x30(%rsp),%r9
  mov    D12(%rip),%rax
  lea    0x1(%r13),%r11
  pxor   %xmm5,%xmm5
  mov    0x8(%rsp),%edi
  mov    0x38(%rsp),%r8
  mov    %r11,%rsi
  movsd  (%r9),%xmm1
  mov    0xc0(%rsp),%r10
  movapd %xmm5,%xmm6
  movq   %rax,%xmm8
  mov    0x40(%rsp),%r9d
  movsd  D2(%rip),%xmm10
  mov    0xd0(%rsp),%rcx
  movq   D99(%rip),%xmm7
  movsd  %xmm1,(%rbx,%r13,8)
  movq   D1(%rip),%xmm9
  jmp    L90
  nopl   (%rax)
L25:
  cmp    %esi,%ebp
  jle    L23
L137:
  movsd  (%rbx,%rsi,8),%xmm1
  add    %r15d,%r9d
  add    $0x1,%rsi
  add    %r14d,%edi
L90:
  ucomisd %xmm5,%xmm1
  jp     L211
  je     L25
L211:
  movslq %edi,%rax
  movapd %xmm1,%xmm3
  lea    (%r8,%rax,8),%rax
  andpd  %xmm7,%xmm3
  movsd  (%rax),%xmm2
  movapd %xmm2,%xmm0
  andpd  %xmm7,%xmm0
  comisd %xmm0,%xmm3
  jbe    L196
  movapd %xmm2,%xmm3
  movsd  D12(%rip),%xmm4
  divsd  %xmm1,%xmm3
  movapd %xmm3,%xmm0
  mulsd  %xmm4,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L50
  sqrtsd %xmm0,%xmm0
L227:
  movsd  D2(%rip),%xmm4
  divsd  %xmm0,%xmm4
  mulsd  %xmm4,%xmm3
L75:
  mulsd  %xmm3,%xmm2
  movapd %xmm4,%xmm11
  mulsd  %xmm4,%xmm1
  xorpd  %xmm9,%xmm11
  addsd  %xmm2,%xmm1
  movapd %xmm4,%xmm2
  mulsd  %xmm6,%xmm2
  mulsd  %xmm3,%xmm6
  movsd  %xmm1,(%rax)
  movsd  -0x8(%rcx,%rsi,8),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm3,%xmm1
  mulsd  %xmm11,%xmm0
  addsd  %xmm2,%xmm1
  addsd  %xmm0,%xmm6
  movsd  %xmm1,-0x8(%rcx,%rsi,8)
  cmp    %esi,%ebp
  jle    L23
  movslq %r9d,%rdx
  movslq %esi,%rax
  lea    (%r8,%rdx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L209:
  movsd  (%rbx,%rax,8),%xmm1
  movsd  (%rdx,%rax,8),%xmm0
  movapd %xmm11,%xmm2
  mulsd  %xmm0,%xmm2
  movapd %xmm1,%xmm12
  mulsd  %xmm3,%xmm12
  mulsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm1
  addsd  %xmm12,%xmm2
  addsd  %xmm1,%xmm0
  movsd  %xmm2,(%rbx,%rax,8)
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jg     L209
  jmp    L137
  nopl   (%rax)
L196:
  movapd %xmm1,%xmm4
  divsd  %xmm2,%xmm4
  movapd %xmm4,%xmm0
  mulsd  %xmm8,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm8,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L63
  sqrtsd %xmm0,%xmm0
L148:
  movapd %xmm10,%xmm3
  divsd  %xmm0,%xmm3
  mulsd  %xmm3,%xmm4
  jmp    L75
L20:
  mov    0x18(%rsp),%rdi
  mov    %r15d,%r14d
  mov    %rcx,%r12
  mov    %r8,%r15
  mov    %ebp,%edx
  xor    %eax,%eax
  xor    %esi,%esi
  cs nopw 0x0(%rax,%rax,1)
L277:
  ucomisd (%rbx,%rax,8),%xmm5
  setnp  %cl
  cmovne %esi,%ecx
  test   %cl,%cl
  je     L6
  cmp    %edx,%ebp
  cmove  %eax,%edx
L6:
  cmp    %ebp,%edx
  jge    L160
  movq   $0x0,(%r12,%rax,8)
L160:
  add    $0x1,%rax
  cmp    %rax,%rdi
  jne    L277
  mov    %edx,%r8d
  sub    $0x1,%r8d
  js     L139
  movslq %r8d,%rsi
  imul   %r14d,%r8d
  mov    %edx,%edi
  nopl   0x0(%rax,%rax,1)
L252:
  cmp    %edi,%edx
  jle    L64
  movslq %r8d,%rcx
  movslq %edi,%rax
  movapd %xmm5,%xmm1
  lea    (%r15,%rcx,8),%rcx
  cs nopw 0x0(%rax,%rax,1)
L250:
  movsd  (%rcx,%rax,8),%xmm0
  mulsd  (%r12,%rax,8),%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %eax,%edx
  jg     L250
L22:
  movsd  (%r12,%rsi,8),%xmm0
  sub    $0x1,%edi
  sub    %r14d,%r8d
  subsd  %xmm1,%xmm0
  divsd  (%rbx,%rsi,8),%xmm0
  movsd  %xmm0,(%r12,%rsi,8)
  sub    $0x1,%rsi
  test   %esi,%esi
  jns    L252
L139:
  mov    0x10(%rsp),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax)
L278:
  movsd  (%r12,%rax,8),%xmm0
  movslq (%rcx,%rax,4),%rdx
  add    $0x1,%rax
  movsd  %xmm0,(%r10,%rdx,8)
  cmp    %eax,%ebp
  jg     L278
L285:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L64:
  movapd %xmm5,%xmm1
  jmp    L22
L50:
  mov    %r11,0x78(%rsp)
  mov    %rcx,0xd0(%rsp)
  mov    %r10,0xc0(%rsp)
  mov    %r8,0x70(%rsp)
  mov    %rsi,0x68(%rsp)
  mov    %r9d,0x64(%rsp)
  mov    %edi,0x60(%rsp)
  mov    %rax,0x30(%rsp)
  movsd  %xmm1,0x58(%rsp)
  movsd  %xmm6,0x50(%rsp)
  movsd  %xmm3,0x48(%rsp)
  movsd  %xmm2,0x38(%rsp)
  call   <sqrt@plt>
  mov    D12(%rip),%rax
  mov    0x78(%rsp),%r11
  pxor   %xmm5,%xmm5
  mov    0xd0(%rsp),%rcx
  mov    0xc0(%rsp),%r10
  movq   %rax,%xmm8
  mov    D2(%rip),%rax
  mov    0x70(%rsp),%r8
  mov    0x68(%rsp),%rsi
  mov    0x64(%rsp),%r9d
  movq   %rax,%xmm10
  mov    0x60(%rsp),%edi
  movq   D1(%rip),%xmm9
  movq   D99(%rip),%xmm7
  movsd  0x58(%rsp),%xmm1
  movsd  0x50(%rsp),%xmm6
  movsd  0x48(%rsp),%xmm3
  movsd  0x38(%rsp),%xmm2
  mov    0x30(%rsp),%rax
  jmp    L227
L63:
  mov    %r11,0x78(%rsp)
  mov    %rcx,0xd0(%rsp)
  mov    %r10,0xc0(%rsp)
  mov    %r8,0x70(%rsp)
  mov    %rsi,0x68(%rsp)
  mov    %r9d,0x64(%rsp)
  mov    %edi,0x60(%rsp)
  mov    %rax,0x30(%rsp)
  movsd  %xmm1,0x58(%rsp)
  movsd  %xmm6,0x50(%rsp)
  movsd  %xmm4,0x48(%rsp)
  movsd  %xmm2,0x38(%rsp)
  call   <sqrt@plt>
  mov    D12(%rip),%rax
  mov    0x78(%rsp),%r11
  pxor   %xmm5,%xmm5
  mov    0xd0(%rsp),%rcx
  mov    0xc0(%rsp),%r10
  movq   %rax,%xmm8
  mov    D2(%rip),%rax
  mov    0x70(%rsp),%r8
  mov    0x68(%rsp),%rsi
  mov    0x64(%rsp),%r9d
  movq   %rax,%xmm10
  mov    0x60(%rsp),%edi
  movq   D1(%rip),%xmm9
  movq   D99(%rip),%xmm7
  movsd  0x58(%rsp),%xmm1
  movsd  0x50(%rsp),%xmm6
  movsd  0x48(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm2
  mov    0x30(%rsp),%rax
  jmp    L148
```

tool_calls: name: disassemble_data
arguments: tag: D12
type: f64
name: disassemble_data
arguments: tag: D2
type: f64
name: disassemble_data
arguments: tag: D99
type: qword
name: disassemble_data
arguments: tag: D1
type: f32[2]

tool: D12: 0.25

tool: D2: 0.5

tool: D99: 9223372036854775807

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

assistant: ```c
void lm_qrsolv(int n, double *r, int ldr, int *ipvt, double *diag, double *qtb, double *x, double *sdiag, double *wa) {
  int i, kk, j, k, nsing;
  double qtbpj, sum, temp;
  double sin, cos, tan, cotan;
  static double p25 = 0.25;
  static double p5 = 0.5;
  for (j = 0; j < n; j++) {
    for (i = j; i < n; i++)
      r[j * ldr + i] = r[i * ldr + j];
    x[j] = r[j * ldr + j];
    wa[j] = qtb[j];
  }
  for (j = 0; j < n; j++) {
    if (diag[ipvt[j]] == 0.)
      goto L90;
    for (k = j; k < n; k++)
      sdiag[k] = 0.;
    sdiag[j] = diag[ipvt[j]];
    qtbpj = 0.;
    for (k = j; k < n; k++) {
      if (sdiag[k] == 0.)
        continue;
      kk = k + ldr * k;
      if (fabs(r[kk]) < fabs(sdiag[k])) {
        cotan = r[kk] / sdiag[k];
        sin = p5 / sqrt(p25 + p25 * (cotan) * (cotan));
        cos = sin * cotan;
      } else {
        tan = sdiag[k] / r[kk];
        cos = p5 / sqrt(p25 + p25 * (tan) * (tan));
        sin = cos * tan;
      }
      r[kk] = cos * r[kk] + sin * sdiag[k];
      temp = cos * wa[k] + sin * qtbpj;
      qtbpj = -sin * wa[k] + cos * qtbpj;
      wa[k] = temp;
      for (i = k + 1; i < n; i++) {
        temp = cos * r[k * ldr + i] + sin * sdiag[i];
        sdiag[i] = -sin * r[k * ldr + i] + cos * sdiag[i];
        r[k * ldr + i] = temp;
      }
    }
  L90:
    sdiag[j] = r[j * ldr + j];
    r[j * ldr + j] = x[j];
  }
  nsing = n;
  for (j = 0; j < n; j++) {
    if (sdiag[j] == 0. && nsing == n)
      nsing = j;
    if (nsing < n)
      wa[j] = 0;
  }
  for (j = nsing - 1; j >= 0; j--) {
    sum = 0;
    for (i = j + 1; i < nsing; i++)
      sum += r[j * ldr + i] * wa[i];
    wa[j] = (wa[j] - sum) / sdiag[j];
  }
  for (j = 0; j < n; j++)
    x[ipvt[j]] = wa[j];
}
```