user: What would the C source look like for the assembly code provided here:

```asm
<qrsolv>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,0x48(%rsp)
  mov    %rdx,0x20(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %r9,0x28(%rsp)
  mov    0x90(%rsp),%r12
  test   %edi,%edi
  jle    L243
  mov    %rsi,%r15
  mov    %r9,%rbx
  mov    %edi,%r11d
  lea    -0x1(%rdi),%r13d
  mov    %r13d,0x4c(%rsp)
  mov    %edi,%r10d
  mov    %r10,0x30(%rsp)
  mov    $0x0,%ecx
  mov    $0x0,%r9d
  mov    0x98(%rsp),%rbp
  jmp    L49
L355:
  mov    %r13d,%eax
  sub    %r9d,%eax
  lea    0x1(%r9,%rax,1),%rdi
  shl    $0x3,%rdi
  mov    %rcx,%rax
L227:
  mov    (%r15,%rax,1),%rdx
  movsd  (%rdx,%rcx,1),%xmm0
  mov    (%rsi),%rdx
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L227
L70:
  mov    (%rsi),%rax
  movsd  (%rax,%rcx,1),%xmm0
  movsd  %xmm0,(%rbx,%rcx,1)
  movsd  (%r8,%rcx,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rcx,1)
  add    $0x1,%r9
  add    $0x8,%rsi
  add    $0x8,%rcx
  cmp    %r10,%r9
  je     L9
L49:
  cmp    %r9d,%r11d
  jg     L355
  jmp    L70
L9:
  mov    $0x0,%r14d
  mov    %r15,0x18(%rsp)
  jmp    L54
L295:
  call   <sqrt@plt>
  jmp    L368
L276:
  mov    (%r15),%rax
  movsd  (%r12,%rbx,8),%xmm0
  divsd  (%rax,%r13,1),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mulsd  %xmm0,%xmm0
  addsd  D33(%rip),%xmm0
  pxor   %xmm7,%xmm7
  ucomisd %xmm0,%xmm7
  ja     L320
  sqrtsd %xmm0,%xmm0
L176:
  movsd  D33(%rip),%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x8(%rsp),%xmm4
  mulsd  %xmm2,%xmm4
  jmp    L74
L320:
  call   <sqrt@plt>
  jmp    L176
L203:
  movapd %xmm4,%xmm6
  xorpd  D24(%rip),%xmm6
  movslq %r14d,%rax
  shl    $0x3,%rax
  mov    0x4c(%rsp),%edx
  sub    %r14d,%edx
  lea    0x2(%rbx,%rdx,1),%rcx
  shl    $0x3,%rcx
L165:
  mov    0x0(%rbp),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  movsd  (%r12,%rax,1),%xmm1
  movapd %xmm6,%xmm3
  mulsd  %xmm0,%xmm3
  movapd %xmm1,%xmm5
  mulsd  %xmm2,%xmm5
  addsd  %xmm5,%xmm3
  movsd  %xmm3,(%r12,%rax,1)
  mov    0x0(%rbp),%rdx
  mulsd  %xmm2,%xmm0
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L165
  mulsd  0x10(%rsp),%xmm2
  mulsd  %xmm6,%xmm7
  addsd  %xmm2,%xmm7
  movsd  %xmm7,0x10(%rsp)
  jmp    L8
L256:
  cmp    %r14d,0x48(%rsp)
  jle    L236
L8:
  add    $0x1,%r14d
  add    $0x8,%r15
  add    $0x1,%rbx
L345:
  lea    0x0(,%rbx,8),%r13
  pxor   %xmm6,%xmm6
  ucomisd (%r12,%rbx,8),%xmm6
  jp     L248
  je     L256
L248:
  mov    %r15,%rbp
  mov    (%r15),%rax
  movsd  (%rax,%r13,1),%xmm0
  call   <fabs@plt>
  mov    %rax,0x8(%rsp)
  movsd  (%r12,%rbx,8),%xmm0
  call   <fabs@plt>
  cmp    %rax,0x8(%rsp)
  jge    L276
  mov    (%r15),%rax
  movsd  (%rax,%r13,1),%xmm2
  divsd  (%r12,%rbx,8),%xmm2
  movsd  %xmm2,0x8(%rsp)
  movapd %xmm2,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D33(%rip),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L295
  sqrtsd %xmm0,%xmm0
L368:
  movsd  D33(%rip),%xmm4
  divsd  %xmm0,%xmm4
  movsd  0x8(%rsp),%xmm2
  mulsd  %xmm4,%xmm2
L74:
  add    0x0(%rbp),%r13
  movapd %xmm2,%xmm0
  mulsd  0x0(%r13),%xmm0
  movapd %xmm4,%xmm1
  mulsd  (%r12,%rbx,8),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%r13)
  mov    0x98(%rsp),%rax
  movsd  (%rax,%rbx,8),%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm2,%xmm0
  movsd  0x10(%rsp),%xmm1
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%rbx,8)
  cmp    %r14d,0x48(%rsp)
  jg     L203
  mov    0x40(%rsp),%r14
L318:
  mov    0x18(%rsp),%rdi
  mov    (%rdi,%r14,8),%rax
  movsd  (%rax,%r14,8),%xmm0
  movsd  %xmm0,(%r12,%r14,8)
  mov    0x28(%rsp),%rax
  movsd  (%rax,%r14,8),%xmm0
  mov    (%rdi,%r14,8),%rax
  movsd  %xmm0,(%rax,%r14,8)
  add    $0x1,%r14
  cmp    0x30(%rsp),%r14
  je     L72
L54:
  mov    %r14d,%esi
  mov    0x20(%rsp),%rax
  movslq (%rax,%r14,4),%rax
  mov    0x38(%rsp),%rbx
  lea    (%rbx,%rax,8),%rcx
  movsd  (%rcx),%xmm0
  pxor   %xmm6,%xmm6
  ucomisd %xmm6,%xmm0
  jp     L273
  je     L318
L273:
  cmp    %r14d,0x48(%rsp)
  jle    L81
  lea    0x0(,%r14,8),%rdi
  lea    (%r12,%rdi,1),%rax
  mov    0x4c(%rsp),%edx
  sub    %esi,%edx
  add    %r14,%rdx
  lea    0x8(%r12,%rdx,8),%rdx
L170:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L170
  movsd  (%rcx),%xmm0
  movsd  %xmm0,(%r12,%r14,8)
  lea    0x1(%rsi),%eax
  mov    0x18(%rsp),%rbx
  lea    (%rbx,%rdi,1),%r15
  mov    %r14,%rbx
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x10(%rsp)
  mov    %r14,0x40(%rsp)
  mov    %eax,%r14d
  jmp    L345
L236:
  mov    0x40(%rsp),%r14
  jmp    L318
L72:
  mov    %rdi,%r15
  mov    0x48(%rsp),%esi
  mov    %esi,%edx
  mov    $0x0,%eax
  pxor   %xmm0,%xmm0
  mov    $0x0,%edi
  mov    0x30(%rsp),%r9
  mov    0x98(%rsp),%r10
  jmp    L197
L353:
  add    $0x1,%rax
  cmp    %r9,%rax
  je     L51
L197:
  ucomisd (%r12,%rax,8),%xmm0
  setnp  %cl
  cmovne %edi,%ecx
  test   %cl,%cl
  je     L126
  cmp    %edx,%esi
  cmove  %eax,%edx
L126:
  cmp    %esi,%edx
  jge    L353
  movq   $0x0,(%r10,%rax,8)
  jmp    L353
L83:
  sub    $0x1,%rcx
L333:
  movsd  (%rsi,%rcx,8),%xmm0
  subsd  %xmm1,%xmm0
  divsd  (%r12,%rcx,8),%xmm0
  movsd  %xmm0,(%rsi,%rcx,8)
  cmp    %rcx,%rdi
  je     L277
  pxor   %xmm1,%xmm1
  cmp    %ecx,%edx
  jle    L83
  mov    -0x8(%r15,%rcx,8),%r8
  mov    %rcx,%rax
L16:
  movsd  (%r8,%rax,8),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L16
  jmp    L83
L277:
  mov    $0x0,%eax
  mov    0x48(%rsp),%ecx
  mov    0x20(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  mov    0x98(%rsp),%r8
L140:
  movsd  (%r8,%rax,8),%xmm0
  movslq (%rsi,%rax,4),%rdx
  movsd  %xmm0,(%rdi,%rdx,8)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jg     L140
L243:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L51:
  test   %edx,%edx
  jle    L277
  lea    -0x1(%rdx),%eax
  movslq %eax,%rcx
  movslq %edx,%rdi
  sub    $0x1,%rdi
  mov    %eax,%eax
  sub    %rax,%rdi
  pxor   %xmm1,%xmm1
  mov    0x98(%rsp),%rsi
  jmp    L333
L81:
  movsd  %xmm0,(%r12,%r14,8)
  jmp    L318
```

tool_calls: name: disassemble_data
arguments: tag: D33
type_infered: f64
name: disassemble_data
arguments: tag: D24
type_infered: f32[4]

tool: D33: 1

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

assistant: ```c
void qrsolv(int n, double **r, int ipvt[], double diag[], double qtb[], double x[], double sdiag[], double wa[]) {
  int i, j, jp1, k, kp1, l, nsing;
  double qtbpj, sum, temp, dsin, dcos, dtan, dcotan;
  for (j = 0; j < n; j++) {
    for (i = j; i < n; i++)
      r[j][i] = r[i][j];
    x[j] = r[j][j];
    wa[j] = qtb[j];
  }
  for (j = 0; j < n; j++) {
    l = ipvt[j];
    if (diag[l] != 0.0) {
      for (k = j; k < n; k++)
        sdiag[k] = 0.0;
      sdiag[j] = diag[l];
      qtbpj = 0.0;
      for (k = j; k < n; k++) {
        if (sdiag[k] == 0.0)
          continue;
        if (fabs(r[k][k]) < fabs(sdiag[k])) {
          dcotan = r[k][k] / sdiag[k];
          dsin = 1.0 / sqrt(1.0 + dcotan * dcotan);
          dcos = dsin * dcotan;
        } else {
          dtan = sdiag[k] / r[k][k];
          dcos = 1.0 / sqrt(1.0 + dtan * dtan);
          dsin = dcos * dtan;
        }
        r[k][k] = dcos * r[k][k] + dsin * sdiag[k];
        temp = dcos * wa[k] + dsin * qtbpj;
        qtbpj = -dsin * wa[k] + dcos * qtbpj;
        wa[k] = temp;
        kp1 = k + 1;
        if (n <= kp1)
          continue;
        for (i = kp1; i < n; i++) {
          temp = dcos * r[k][i] + dsin * sdiag[i];
          sdiag[i] = -dsin * r[k][i] + dcos * sdiag[i];
          r[k][i] = temp;
        }
      }
    }
    sdiag[j] = r[j][j];
    r[j][j] = x[j];
  }
  nsing = n;
  for (j = 0; j < n; j++) {
    if ((sdiag[j] == 0.0) && (nsing == n))
      nsing = j;
    if (nsing < n)
      wa[j] = 0.0;
  }
  if (nsing >= 1) {
    for (k = 0; k < nsing; k++) {
      j = nsing - k - 1;
      sum = 0.0;
      jp1 = j + 1;
      if (nsing > jp1) {
        for (i = jp1; i < nsing; i++)
          sum += r[j][i] * wa[i];
      }
      wa[j] = (wa[j] - sum) / sdiag[j];
    }
  }
  for (j = 0; j < n; j++) {
    l = ipvt[j];
    x[l] = wa[j];
  }
}
```