user: 请将以下的汇编代码转换成C语言代码：

```asm
<Tred2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,0x3c(%rsp)
  mov    %rdx,%rbp
  mov    %rcx,%r12
  mov    %r8,%rbx
  test   %edi,%edi
  jle    L141
  mov    %edi,%r10d
  movslq %edi,%rax
  lea    -0x8(%rsi,%rax,8),%r9
  mov    %edi,%r8d
  mov    $0x0,%edx
  mov    $0x0,%edi
  jmp    L228
L473:
  mov    (%rsi,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mov    (%rbx,%rax,8),%rcx
  movsd  %xmm0,(%rcx,%rdx,1)
  add    $0x1,%rax
  cmp    %eax,%r10d
  jg     L473
L73:
  mov    (%r9),%rax
  movsd  (%rax,%rdx,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rdx,1)
  add    $0x1,%rdi
  add    $0x8,%rdx
  cmp    %r8,%rdi
  je     L141
L228:
  mov    %rdi,%rax
  cmp    %edi,%r10d
  jg     L473
  jmp    L73
L141:
  mov    0x3c(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
  test   %eax,%eax
  jle    L294
  movslq %eax,%r14
  lea    -0x8(,%r14,8),%r15
  mov    %r15,%rax
  mov    %r14,%r15
  mov    %rax,%r14
  jmp    L1
L105:
  movsd  0x8(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L96
L7:
  cmp    %r10d,%esi
  jge    L474
  movslq %esi,%rax
L293:
  mov    (%rbx,%rax,8),%r11
  movsd  (%r11,%rdx,1),%xmm0
  movapd %xmm0,%xmm2
  mulsd  0x0(%rbp,%rax,8),%xmm2
  addsd  %xmm2,%xmm1
  mulsd  %xmm3,%xmm0
  addsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L293
  movsd  %xmm1,(%rdi)
L123:
  add    $0x8,%rcx
  add    $0x8,%rdx
  add    $0x1,%esi
L219:
  movsd  0x0(%rbp,%rdx,1),%xmm3
  mov    (%rbx,%rdx,1),%rax
  movsd  %xmm3,(%rax,%r8,1)
  mov    %rcx,%rdi
  mov    (%rbx,%rdx,1),%rax
  movapd %xmm3,%xmm1
  mulsd  (%rax,%rdx,1),%xmm1
  addsd  (%rcx),%xmm1
  lea    -0x1(%rsi),%eax
  cmp    %eax,%r9d
  jg     L7
  movsd  %xmm1,(%rcx)
  cmp    %r13d,%esi
  jl     L123
L198:
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
  mov    0x18(%rsp),%rcx
L426:
  movsd  (%r12,%rax,8),%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  mulsd  0x0(%rbp,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L426
  movapd %xmm4,%xmm0
  addsd  %xmm4,%xmm0
  divsd  %xmm0,%xmm1
  mov    $0x0,%eax
  mov    0x18(%rsp),%rcx
L362:
  movapd %xmm1,%xmm2
  mulsd  0x0(%rbp,%rax,8),%xmm2
  movsd  (%r12,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L362
  mov    $0x0,%esi
  mov    0x18(%rsp),%rdi
  jmp    L207
L162:
  mov    %rax,%rsi
L207:
  lea    0x0(,%rsi,8),%rcx
  movsd  0x0(%rbp,%rsi,8),%xmm2
  movsd  (%r12,%rsi,8),%xmm3
  cmp    %esi,%r13d
  jle    L220
  mov    %rsi,%rax
L102:
  mov    %rcx,%rdx
  add    (%rbx,%rax,8),%rdx
  movapd %xmm2,%xmm1
  mulsd  (%r12,%rax,8),%xmm1
  movapd %xmm3,%xmm0
  mulsd  0x0(%rbp,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  movsd  (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L102
L220:
  mov    (%rbx,%r14,1),%rax
  movsd  (%rax,%rcx,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rsi,8)
  mov    (%rbx,%r15,8),%rax
  movq   $0x0,(%rax,%rcx,1)
  lea    0x1(%rsi),%rax
  cmp    %rdi,%rsi
  jne    L162
L479:
  movsd  %xmm4,0x0(%rbp,%r15,8)
  sub    $0x1,%r15
  sub    $0x8,%r14
  cmpl   $0x0,0x14(%rsp)
  je     L294
L1:
  mov    0x14(%rsp),%eax
  mov    %eax,0x38(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
  mov    %r15d,%r13d
  cmp    $0x1,%r15d
  jle    L279
  mov    %eax,%eax
  mov    %rax,0x18(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x28(%rsp)
  lea    0x8(%rbp,%rax,1),%rdx
  mov    %rbp,%rax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,(%rsp)
L17:
  movsd  (%rax),%xmm0
  andpd  D15(%rip),%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L17
  movsd  (%rsp),%xmm5
  ucomisd D13(%rip),%xmm5
  jp     L302
  je     L442
L302:
  mov    %rbp,%rax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
L430:
  movsd  (%rax),%xmm0
  divsd  (%rsp),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L430
  lea    0x0(%rbp,%r14,1),%rax
  mov    %rax,0x30(%rsp)
  movsd  0x0(%rbp,%r14,1),%xmm7
  movsd  %xmm7,0x20(%rsp)
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm4
  ucomisd %xmm4,%xmm0
  ja     L105
  sqrtsd %xmm4,%xmm4
  movapd %xmm4,%xmm0
L96:
  movsd  0x20(%rsp),%xmm1
  mov    $0x2,%eax
  call   <Sign@plt>
  neg    %eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  lea    0x0(,%r15,8),%r8
  movsd  (%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12,%r15,8)
  movsd  0x20(%rsp),%xmm6
  movapd %xmm6,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  0x8(%rsp),%xmm4
  subsd  %xmm0,%xmm4
  subsd  %xmm1,%xmm6
  mov    0x30(%rsp),%rax
  movsd  %xmm6,(%rax)
  mov    %r12,%rcx
  mov    0x28(%rsp),%rax
  lea    0x8(%r12,%rax,1),%rdx
  mov    %r12,%rax
L100:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L100
  mov    $0x1,%esi
  mov    $0x0,%edx
  mov    0x14(%rsp),%r9d
  mov    0x38(%rsp),%r10d
  jmp    L219
L294:
  mov    0x3c(%rsp),%edi
  cmp    $0x1,%edi
  jle    L21
  movslq %edi,%rax
  lea    -0x8(%rbx,%rax,8),%r11
  lea    0x8(%rbx),%r8
  lea    -0x1(%rdi),%r10d
  mov    $0x8,%esi
  mov    $0x1,%edi
  mov    $0x0,%r9d
  movsd  D1(%rip),%xmm5
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm3
  jmp    L388
L174:
  test   %r9d,%r9d
  js     L218
  mov    $0x0,%eax
L32:
  mov    (%rbx,%rax,8),%rdx
  movsd  (%rdx,%rsi,1),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L32
  mov    $0x0,%ecx
L5:
  mov    %rbx,%rax
  pxor   %xmm1,%xmm1
L212:
  mov    (%rax),%rdx
  movsd  (%rdx,%rsi,1),%xmm0
  mulsd  (%rdx,%rcx,1),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rax,%r8
  jne    L212
  mov    $0x0,%eax
L50:
  mov    %rcx,%rdx
  add    (%rbx,%rax,8),%rdx
  movapd %xmm1,%xmm2
  mulsd  0x0(%rbp,%rax,8),%xmm2
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x1,%rax
  cmp    %rax,%rdi
  jne    L50
  add    $0x8,%rcx
  cmp    %rsi,%rcx
  jne    L5
L70:
  mov    $0x0,%eax
L91:
  mov    (%rbx,%rax,8),%rdx
  movq   $0x0,(%rdx,%rsi,1)
  add    $0x1,%rax
  cmp    %r9d,%eax
  jle    L91
L218:
  add    $0x1,%r9
  add    $0x1,%rdi
  add    $0x8,%rsi
  add    $0x8,%r8
  cmp    %r10,%r9
  je     L216
L388:
  mov    -0x8(%r8),%rax
  movsd  (%rax,%r9,8),%xmm0
  mov    (%r11),%rax
  movsd  %xmm0,(%rax,%r9,8)
  mov    -0x8(%r8),%rax
  movsd  %xmm5,(%rax,%r9,8)
  movsd  0x0(%rbp,%rsi,1),%xmm1
  ucomisd %xmm4,%xmm1
  jp     L174
  ucomisd %xmm3,%xmm1
  jne    L174
  test   %r9d,%r9d
  jns    L70
  jmp    L218
L21:
  cmpl   $0x1,0x3c(%rsp)
  jne    L380
L216:
  mov    0x3c(%rsp),%esi
  movslq %esi,%rax
  lea    -0x8(%rbx,%rax,8),%rdx
  mov    $0x0,%eax
L77:
  mov    (%rdx),%rcx
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  mov    (%rdx),%rcx
  movq   $0x0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L77
L380:
  movslq 0x3c(%rsp),%rax
  shl    $0x3,%rax
  mov    -0x8(%rbx,%rax,1),%rdx
  mov    D1(%rip),%rdi
  mov    %rdi,-0x8(%rdx,%rax,1)
  movq   $0x0,(%r12)
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L474:
  movsd  %xmm1,(%rcx)
  jmp    L198
L279:
  movsd  0x0(%rbp,%r14,1),%xmm0
  movsd  %xmm0,(%r12,%r15,8)
  pxor   %xmm4,%xmm4
  jne    L479
  mov    (%rbx,%r14,1),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,0x0(%rbp)
  mov    (%rbx),%rax
  movq   $0x0,(%rax,%r15,8)
  mov    (%rbx,%r15,8),%rax
  movq   $0x0,(%rax)
  pxor   %xmm4,%xmm4
  jmp    L479
L442:
  lea    0x0(,%r15,8),%rcx
  movsd  0x0(%rbp,%r14,1),%xmm0
  movsd  %xmm0,(%r12,%r15,8)
  mov    $0x0,%eax
L349:
  mov    (%rbx,%r14,1),%rdx
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  mov    (%rbx,%rax,8),%rdx
  movq   $0x0,(%rdx,%rcx,1)
  mov    (%rbx,%r15,8),%rdx
  movq   $0x0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L349
  pxor   %xmm4,%xmm4
  jmp    L479
```

tool_calls: name: extract_symbolic_data
arguments: label: D15
type: qword[2]
name: extract_symbolic_data
arguments: label: D13
type: f64
name: extract_symbolic_data
arguments: label: D1
type: f64

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

tool: D13: 0

tool: D1: 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;
}
```