user: Demonstrate the C code that generates the assembly output below:

```asm
<Tred2>:
  endbr64
  push   %r15
  movslq %edi,%rax
  push   %r14
  mov    %rax,%r15
  push   %r13
  push   %r12
  mov    %r8,%r12
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x58,%rsp
  mov    %rax,0x40(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x38(%rsp)
  test   %r15d,%r15d
  jle    L295
  mov    -0x8(%rsi,%rax,1),%r8
  mov    0x40(%rsp),%r9
  xor    %edi,%edi
L535:
  lea    0x0(,%rdi,8),%rdx
  mov    %rdi,%rax
  nopl   0x0(%rax,%rax,1)
L258:
  mov    (%rsi,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mov    (%r12,%rax,8),%rcx
  add    $0x1,%rax
  movsd  %xmm0,(%rcx,%rdx,1)
  cmp    %eax,%r15d
  jg     L258
  movsd  (%r8,%rdi,8),%xmm0
  movsd  %xmm0,(%rbx,%rdi,8)
  add    $0x1,%rdi
  cmp    %rdi,%r9
  jne    L535
L295:
  lea    -0x1(%r15),%r8d
  test   %r8d,%r8d
  jle    L386
  mov    %r15d,0x4c(%rsp)
  mov    %r8d,%r15d
  movapd D41(%rip),%xmm4
  movslq %r8d,%r14
  mov    %r15d,%ecx
  sub    $0x1,%ecx
  jne    L527
  nopw   0x0(%rax,%rax,1)
L613:
  movsd  -0x8(%rbx,%r14,8),%xmm0
  mov    -0x8(%r12,%r14,8),%rdi
  xor    %eax,%eax
  lea    0x0(,%r14,8),%r8
  mov    (%r12,%r14,8),%rsi
  movsd  %xmm0,0x0(%rbp,%r14,8)
  nopl   0x0(%rax)
L3:
  movsd  (%rdi,%rax,8),%xmm0
  mov    (%r12,%rax,8),%rdx
  movsd  %xmm0,(%rbx,%rax,8)
  movq   $0x0,(%rdx,%r8,1)
  movq   $0x0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L3
  movq   $0x0,(%rbx,%r14,8)
  test   %ecx,%ecx
  je     L542
L549:
  mov    %ecx,%r15d
  sub    $0x1,%r14
  mov    %r15d,%ecx
  sub    $0x1,%ecx
  je     L613
L527:
  test   %r15d,%r15d
  mov    $0x1,%r10d
  mov    %r14d,%r13d
  cmovg  %r14d,%r10d
  cmp    $0x1,%r14d
  jle    L242
  mov    %r10d,%edx
  lea    0x10(%rbx),%rsi
  mov    %rbx,%rax
  shr    %edx
  pxor   %xmm2,%xmm2
  sub    $0x1,%edx
  movapd %xmm2,%xmm3
  shl    $0x4,%rdx
  add    %rsi,%rdx
  cs nopw 0x0(%rax,%rax,1)
L271:
  movupd (%rax),%xmm0
  add    $0x10,%rax
  andpd  %xmm4,%xmm0
  addsd  %xmm0,%xmm3
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm3
  cmp    %rdx,%rax
  jne    L271
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r10b
  je     L28
  cltq
  movsd  (%rbx,%rax,8),%xmm0
  andpd  D22(%rip),%xmm0
  addsd  %xmm0,%xmm3
L28:
  ucomisd %xmm2,%xmm3
  jp     L55
  je     L613
L55:
  mov    %r10d,%edx
  movapd %xmm3,%xmm6
  movapd %xmm2,%xmm5
  mov    %rbx,%rax
  shr    %edx
  unpcklpd %xmm6,%xmm6
  sub    $0x1,%edx
  shl    $0x4,%rdx
  add    %rsi,%rdx
  cs nopw 0x0(%rax,%rax,1)
L534:
  movupd (%rax),%xmm0
  add    $0x10,%rax
  divpd  %xmm6,%xmm0
  movups %xmm0,-0x10(%rax)
  mulpd  %xmm0,%xmm0
  addsd  %xmm0,%xmm5
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm5
  cmp    %rax,%rdx
  jne    L534
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r10b
  je     L0
L167:
  cltq
  lea    (%rbx,%rax,8),%rax
  movsd  (%rax),%xmm0
  divsd  %xmm3,%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm5
L0:
  ucomisd %xmm5,%xmm2
  movsd  -0x8(%rbx,%r14,8),%xmm1
  ja     L593
  movapd %xmm5,%xmm0
  sqrtsd %xmm0,%xmm0
L178:
  mov    $0x2,%eax
  mov    %ecx,0x20(%rsp)
  mov    %r10d,0x48(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <Sign@plt>
  pxor   %xmm0,%xmm0
  movslq %r15d,%r9
  mov    %rbp,%rdi
  neg    %eax
  movsd  0x10(%rsp),%xmm3
  movsd  0x8(%rsp),%xmm1
  test   %r15d,%r15d
  cvtsi2sd %eax,%xmm0
  movsd  0x28(%rsp),%xmm5
  lea    0x0(,%r9,8),%rdx
  mov    $0x8,%eax
  cmovle %rax,%rdx
  lea    0x0(,%r14,8),%r11
  xor    %esi,%esi
  mov    %r9,0x8(%rsp)
  mov    %r11,0x18(%rsp)
  mulsd  %xmm0,%xmm3
  movsd  %xmm3,0x0(%rbp,%r14,8)
  movapd %xmm1,%xmm3
  subsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm3
  movsd  %xmm1,-0x8(%rbx,%r14,8)
  subsd  %xmm3,%xmm5
  movsd  %xmm5,0x10(%rsp)
  call   <memset@plt>
  mov    0x48(%rsp),%r10d
  mov    0x20(%rsp),%ecx
  xor    %edx,%edx
  mov    0x18(%rsp),%r11
  mov    0x8(%rsp),%r9
  mov    $0x1,%esi
  movsd  0x30(%rsp),%xmm2
  movapd D41(%rip),%xmm4
  movsd  0x10(%rsp),%xmm5
  jmp    L232
  cs nopw 0x0(%rax,%rax,1)
L330:
  movsd  %xmm1,0x0(%rbp,%rdx,1)
  cmp    %esi,%r13d
  jle    L71
L193:
  add    $0x1,%rsi
  add    $0x8,%rdx
L232:
  mov    (%r12,%rdx,1),%rax
  movsd  (%rbx,%rdx,1),%xmm6
  movsd  %xmm6,(%rax,%r11,1)
  movsd  (%rax,%rdx,1),%xmm1
  lea    -0x1(%rsi),%eax
  mulsd  %xmm6,%xmm1
  addsd  0x0(%rbp,%rdx,1),%xmm1
  cmp    %eax,%ecx
  jle    L330
  cmp    %esi,%r15d
  jle    L330
  mov    %rsi,%rax
L237:
  mov    (%r12,%rax,8),%rdi
  movsd  (%rbx,%rax,8),%xmm3
  movsd  (%rdi,%rdx,1),%xmm0
  mulsd  %xmm0,%xmm3
  mulsd  %xmm6,%xmm0
  addsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  addsd  %xmm3,%xmm1
  cmp    %eax,%r13d
  jg     L237
  movsd  %xmm1,0x0(%rbp,%rdx,1)
  jmp    L193
  nopw   0x0(%rax,%rax,1)
L71:
  cmp    $0x1,%r13d
  lea    0xf(%rbp),%rax
  setg   %dl
  sub    %rbx,%rax
  cmp    $0x1e,%rax
  jbe    L517
  test   %dl,%dl
  je     L517
  mov    %r10d,%esi
  movapd %xmm5,%xmm3
  movapd %xmm2,%xmm0
  xor    %eax,%eax
  shr    %esi
  unpcklpd %xmm3,%xmm3
  shl    $0x4,%rsi
  nopw   0x0(%rax,%rax,1)
L318:
  movupd 0x0(%rbp,%rax,1),%xmm1
  divpd  %xmm3,%xmm1
  movups %xmm1,0x0(%rbp,%rax,1)
  movupd (%rbx,%rax,1),%xmm2
  add    $0x10,%rax
  mulpd  %xmm1,%xmm2
  addsd  %xmm2,%xmm0
  unpckhpd %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  cmp    %rsi,%rax
  jne    L318
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r10b
  je     L501
  cltq
  lea    0x0(%rbp,%rax,8),%rsi
  movsd  (%rsi),%xmm1
  divsd  %xmm5,%xmm1
  movsd  %xmm1,(%rsi)
  mulsd  (%rbx,%rax,8),%xmm1
  addsd  %xmm1,%xmm0
L501:
  movapd %xmm5,%xmm1
  lea    0x8(%rbx),%rax
  addsd  %xmm5,%xmm1
  divsd  %xmm1,%xmm0
  cmp    %rax,%rbp
  je     L614
  test   %dl,%dl
  je     L614
  mov    %r10d,%edx
  movapd %xmm0,%xmm3
  xor    %eax,%eax
  shr    %edx
  unpcklpd %xmm3,%xmm3
  shl    $0x4,%rdx
  nopl   0x0(%rax)
L177:
  movupd (%rbx,%rax,1),%xmm2
  movupd 0x0(%rbp,%rax,1),%xmm1
  mulpd  %xmm3,%xmm2
  subpd  %xmm2,%xmm1
  movups %xmm1,0x0(%rbp,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L177
  mov    %r10d,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%r10d
  je     L228
  cltq
  mulsd  (%rbx,%rax,8),%xmm0
  lea    0x0(%rbp,%rax,8),%rdx
  movsd  (%rdx),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdx)
L228:
  mov    -0x8(%r12,%r14,8),%r10
  mov    (%r12,%r14,8),%r8
  test   %r13d,%r13d
  jle    L63
  xor    %esi,%esi
  nopl   (%rax)
L261:
  movsd  (%rbx,%rsi,8),%xmm3
  movsd  0x0(%rbp,%rsi,8),%xmm2
  lea    0x0(,%rsi,8),%rdi
  mov    %rsi,%rax
  xchg   %ax,%ax
L159:
  movsd  0x0(%rbp,%rax,8),%xmm1
  movsd  (%rbx,%rax,8),%xmm0
  mov    (%r12,%rax,8),%rdx
  add    $0x1,%rax
  mulsd  %xmm2,%xmm0
  mulsd  %xmm3,%xmm1
  add    %rdi,%rdx
  addsd  %xmm0,%xmm1
  movsd  (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  cmp    %eax,%r13d
  jg     L159
  movsd  (%r10,%rsi,8),%xmm0
  movsd  %xmm0,(%rbx,%rsi,8)
  movq   $0x0,(%r8,%rsi,8)
  add    $0x1,%rsi
  cmp    %r9,%rsi
  jne    L261
  movsd  %xmm5,(%rbx,%r14,8)
  jmp    L549
  nopw   0x0(%rax,%rax,1)
L63:
  movsd  (%r10),%xmm0
  movsd  %xmm0,(%rbx)
  movq   $0x0,(%r8)
  movsd  %xmm5,(%rbx,%r14,8)
  jmp    L549
L542:
  mov    0x4c(%rsp),%r15d
L386:
  mov    0x38(%rsp),%rax
  mov    -0x8(%r12,%rax,1),%r9
  cmp    $0x1,%r15d
  jle    L314
  mov    0x40(%rsp),%r10
  lea    0x8(%r12),%rdi
  mov    $0x8,%esi
  movsd  D5(%rip),%xmm4
  mov    $0x1,%r8d
  pxor   %xmm3,%xmm3
  nopl   (%rax)
L508:
  mov    -0x8(%rdi),%rax
  lea    -0x8(%rax,%rsi,1),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%r9,%rsi,1)
  movsd  %xmm4,(%rax)
  movsd  (%rbx,%rsi,1),%xmm1
  ucomisd %xmm3,%xmm1
  jp     L422
  jne    L422
L607:
  mov    %r12,%rax
  nopl   0x0(%rax,%rax,1)
L364:
  mov    (%rax),%rdx
  add    $0x8,%rax
  movq   $0x0,(%rdx,%rsi,1)
  cmp    %rax,%rdi
  jne    L364
  add    $0x1,%r8
  add    $0x8,%rsi
  add    $0x8,%rdi
  cmp    %r10,%r8
  jne    L508
  lea    0xf(%rbx),%rax
  sub    %r9,%rax
  cmp    $0x1e,%rax
  jbe    L238
  cmp    $0x2,%r15d
  jle    L238
  test   %r15d,%r15d
  mov    $0x1,%eax
  pxor   %xmm0,%xmm0
  cmovle %eax,%r15d
  xor    %eax,%eax
  mov    %r15d,%edx
  shr    %edx
  shl    $0x4,%rdx
  nopl   0x0(%rax,%rax,1)
L444:
  movupd (%r9,%rax,1),%xmm7
  movups %xmm7,(%rbx,%rax,1)
  movups %xmm0,(%r9,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L444
  mov    %r15d,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%r15d
  je     L393
  lea    (%r9,%rax,8),%rdx
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  movq   $0x0,(%rdx)
L393:
  mov    0x38(%rsp),%rax
  movsd  %xmm4,-0x8(%r9,%rax,1)
  movq   $0x0,0x0(%rbp)
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L422:
  xor    %eax,%eax
  nopl   (%rax)
L156:
  mov    (%r12,%rax,8),%rdx
  movsd  (%rdx,%rsi,1),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %r8,%rax
  jne    L156
  xor    %ecx,%ecx
  nopl   (%rax)
L612:
  mov    %r12,%rax
  movapd %xmm3,%xmm1
  nopw   0x0(%rax,%rax,1)
L168:
  mov    (%rax),%rdx
  add    $0x8,%rax
  movsd  (%rdx,%rsi,1),%xmm0
  mulsd  (%rdx,%rcx,1),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rax,%rdi
  jne    L168
  xor    %eax,%eax
  nopl   0x0(%rax)
L283:
  movsd  (%rbx,%rax,8),%xmm2
  mov    (%r12,%rax,8),%rdx
  add    $0x1,%rax
  mulsd  %xmm1,%xmm2
  add    %rcx,%rdx
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  cmp    %rax,%r8
  jne    L283
  add    $0x8,%rcx
  cmp    %rcx,%rsi
  jne    L612
  jmp    L607
L614:
  xor    %eax,%eax
  nopl   (%rax)
L184:
  movsd  (%rbx,%rax,8),%xmm2
  movsd  0x0(%rbp,%rax,8),%xmm1
  mulsd  %xmm0,%xmm2
  subsd  %xmm2,%xmm1
  movsd  %xmm1,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L184
  jmp    L228
L517:
  xor    %eax,%eax
  movapd %xmm2,%xmm0
  nopl   (%rax)
L479:
  movsd  0x0(%rbp,%rax,8),%xmm1
  divsd  %xmm5,%xmm1
  movsd  %xmm1,0x0(%rbp,%rax,8)
  mulsd  (%rbx,%rax,8),%xmm1
  add    $0x1,%rax
  addsd  %xmm1,%xmm0
  cmp    %eax,%r13d
  jg     L479
  jmp    L501
L242:
  movsd  (%rbx),%xmm3
  andpd  D22(%rip),%xmm3
  pxor   %xmm7,%xmm7
  pxor   %xmm2,%xmm2
  addsd  %xmm7,%xmm3
  ucomisd %xmm7,%xmm3
  jp     L126
  je     L613
L126:
  pxor   %xmm5,%xmm5
  xor    %eax,%eax
  jmp    L167
L238:
  xor    %eax,%eax
L421:
  movsd  (%r9,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  movq   $0x0,(%r9,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L421
  jmp    L393
L314:
  je     L456
  movsd  D5(%rip),%xmm4
  jmp    L393
L456:
  movsd  (%r9),%xmm0
  movsd  D5(%rip),%xmm4
  movsd  %xmm0,(%rbx)
  movq   $0x0,(%r9)
  jmp    L393
  nopl   (%rax)
L593:
  movapd %xmm5,%xmm0
  mov    %ecx,0x48(%rsp)
  mov    %r10d,0x18(%rsp)
  movsd  %xmm2,0x28(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm3,0x10(%rsp)
  movsd  %xmm5,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x28(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm1
  mov    0x48(%rsp),%ecx
  mov    0x18(%rsp),%r10d
  movsd  0x10(%rsp),%xmm3
  movsd  0x8(%rsp),%xmm5
  jmp    L178
```

tool_calls: name: parse_data
arguments: label: D41
data_type: qword[2]
name: parse_data
arguments: label: D22
data_type: qword[2]
name: parse_data
arguments: label: D5
data_type: f64

tool: {"D41": [0x7fffffffffffffff,0x7fffffffffffffff]}

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

tool: D5: 1

assistant: ```c
void Tred2(int n, double **a, double *d, double *e, double **z) {
  int i, j, k, l;
  double f, g, h, hh, scale;
  for (i = 0; i < n; i++) {
    for (j = i; j < n; j++)
      z[j][i] = a[j][i];
    d[i] = a[n - 1][i];
  }
  for (i = n - 1; i > 0; i--) {
    l = i - 1;
    h = scale = 0.0;
    if (l > 0) {
      for (k = 0; k < i; k++)
        scale += fabs(d[k]);
    }
    if (scale == 0.0) {
      e[i] = d[l];
      for (j = 0; j < i; j++) {
        d[j] = z[l][j];
        z[i][j] = z[j][i] = 0.0;
      }
    } else {
      for (k = 0; k < i; k++) {
        d[k] = d[k] / scale;
        h += d[k] * d[k];
      }
      f = d[l];
      g = -Sign(sqrt(h), f);
      e[i] = scale * g;
      h -= f * g;
      d[l] = f - g;
      for (j = 0; j < i; j++)
        e[j] = 0.0;
      for (j = 0; j < i; j++) {
        f = d[j];
        z[j][i] = f;
        g = e[j] + z[j][j] * f;
        if (l > j) {
          for (k = j + 1; k < i; k++) {
            g += z[k][j] * d[k];
            e[k] += z[k][j] * f;
          }
        }
        e[j] = g;
      }
      f = 0.0;
      for (j = 0; j < i; j++) {
        e[j] /= h;
        f += e[j] * d[j];
      }
      hh = f / (h + h);
      for (j = 0; j < i; j++)
        e[j] -= hh * d[j];
      for (j = 0; j < i; j++) {
        f = d[j];
        g = e[j];
        for (k = j; k < i; k++)
          z[k][j] -= (f * e[k] + g * d[k]);
        d[j] = z[l][j];
        z[i][j] = 0.0;
      }
    }
    d[i] = h;
  }
  for (i = 1; i < n; i++) {
    l = i - 1;
    z[n - 1][l] = z[l][l];
    z[l][l] = 1.0;
    h = d[i];
    if (h != 0.0) {
      for (k = 0; k <= l; k++)
        d[k] = z[k][i] / h;
      for (j = 0; j <= l; j++) {
        g = 0.0;
        for (k = 0; k <= l; k++)
          g += z[k][i] * z[k][j];
        for (k = 0; k <= l; k++)
          z[k][j] -= g * d[k];
      }
    }
    for (k = 0; k <= l; k++)
      z[k][i] = 0.0;
  }
  for (i = 0; i < n; i++) {
    d[i] = z[n - 1][i];
    z[n - 1][i] = 0.0;
  }
  z[n - 1][n - 1] = 1.0;
  e[0] = 0.0;
}
```