user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<qrfac>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %esi,-0x58(%rbp)
  mov    %rdx,-0x60(%rbp)
  mov    %ecx,-0x64(%rbp)
  mov    %r8d,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  movsd  D21(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L159
L3:
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x20(%rbp),%rax
  lea    (%rcx,%rax,1),%rbx
  mov    -0x54(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <enorm@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x18(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x28(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  cmpl   $0x0,-0x68(%rbp)
  je     L282
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
L282:
  addl   $0x1,-0x4c(%rbp)
L159:
  mov    -0x4c(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L3
  mov    -0x54(%rbp),%edx
  mov    -0x58(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x40(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L86
L100:
  cmpl   $0x0,-0x68(%rbp)
  je     L270
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  jmp    L243
L60:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  comisd %xmm1,%xmm0
  jbe    L73
  mov    -0x48(%rbp),%eax
  mov    %eax,-0x44(%rbp)
L73:
  addl   $0x1,-0x48(%rbp)
L243:
  mov    -0x48(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L60
  mov    -0x44(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  je     L270
  movl   $0x0,-0x50(%rbp)
  jmp    L164
L200:
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x44(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x50(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x60(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x44(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x50(%rbp)
L164:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L200
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x18(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x28(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x70(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rax,%rdx
  mov    -0x48(%rbp),%eax
  mov    %eax,(%rdx)
L270:
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x54(%rbp),%eax
  sub    %ecx,%eax
  add    $0x1,%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <enorm@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  ucomisd -0x30(%rbp),%xmm0
  jp     L163
  pxor   %xmm0,%xmm0
  ucomisd -0x30(%rbp),%xmm0
  je     L122
L163:
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L280
  movsd  -0x30(%rbp),%xmm0
  movq   D18(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
L280:
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L197
L42:
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x50(%rbp)
L197:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L42
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  D30(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x4c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x58(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L122
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  jmp    L169
L295:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L1
L215:
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x48(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x50(%rbp)
L1:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L215
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x38(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  jmp    L262
L283:
  mov    -0x48(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x4c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mulsd  -0x20(%rbp),%xmm1
  mov    -0x48(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x50(%rbp)
L262:
  mov    -0x50(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L283
  cmpl   $0x0,-0x68(%rbp)
  je     L80
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L264
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L80
L264:
  mov    -0x48(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x18(%rbp),%xmm0
  jb     L95
  mov    D16(%rip),%rax
  jmp    L204
L95:
  mov    -0x18(%rbp),%rax
L204:
  movq   %rax,%xmm0
  call   <sqrt@plt>
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D1(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L80
  mov    -0x48(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0x54(%rbp),%eax
  sub    %ecx,%eax
  mov    -0x48(%rbp),%ecx
  movslq %ecx,%rcx
  lea    0x0(,%rcx,8),%rsi
  mov    0x18(%rbp),%rcx
  lea    (%rsi,%rcx,1),%rbx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <enorm@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    0x28(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
L80:
  addl   $0x1,-0x48(%rbp)
L169:
  mov    -0x48(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L295
L122:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x30(%rbp),%xmm0
  movq   D18(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x4c(%rbp)
L86:
  mov    -0x4c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L100
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D21
type_infered: f32[2]
name: parse_data
arguments: label: D18
type_infered: f32[2]
name: parse_data
arguments: label: D30
type_infered: f64
name: parse_data
arguments: label: D16
type_infered: f32[2]
name: parse_data
arguments: label: D1
type_infered: byte[8]

tool: {"D21": [0.0,0.021484375]}

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

tool: D30: 1

tool: {"D16": [0.0,0.0]}

tool: {"D1": [0x9a,0x99,0x99,0x99,0x99,0x99,0xa9,0x3f]}

assistant: ```c
void qrfac(int m, int n, double *a, int lda, int pivot, int *ipvt, int lipvt, double *rdiag, double *acnorm, double *wa) {
  double d1;
  int i, j, k, jp1;
  double sum;
  double temp;
  int minmn;
  double epsmch;
  double ajnorm;
  (void)lipvt;
  epsmch = 2.2204460492503131e-16;
  for (j = 0; j < n; ++j) {
    acnorm[j] = enorm(m, &a[j * lda + 0]);
    rdiag[j] = acnorm[j];
    wa[j] = rdiag[j];
    if (pivot) {
      ipvt[j] = j + 1;
    }
  }
  minmn = ((m) <= (n) ? (m) : (n));
  for (j = 0; j < minmn; ++j) {
    if (pivot) {
      int kmax = j;
      for (k = j; k < n; ++k) {
        if (rdiag[k] > rdiag[kmax]) {
          kmax = k;
        }
      }
      if (kmax != j) {
        for (i = 0; i < m; ++i) {
          temp = a[i + j * lda];
          a[i + j * lda] = a[i + kmax * lda];
          a[i + kmax * lda] = temp;
        }
        rdiag[kmax] = rdiag[j];
        wa[kmax] = wa[j];
        k = ipvt[j];
        ipvt[j] = ipvt[kmax];
        ipvt[kmax] = k;
      }
    }
    ajnorm = enorm(m - (j + 1) + 1, &a[j + j * lda]);
    if (ajnorm != 0.) {
      if (a[j + j * lda] < 0.) {
        ajnorm = -ajnorm;
      }
      for (i = j; i < m; ++i) {
        a[i + j * lda] /= ajnorm;
      }
      a[j + j * lda] += 1.;
      jp1 = j + 1;
      if (n > jp1) {
        for (k = jp1; k < n; ++k) {
          sum = 0.;
          for (i = j; i < m; ++i) {
            sum += a[i + j * lda] * a[i + k * lda];
          }
          temp = sum / a[j + j * lda];
          for (i = j; i < m; ++i) {
            a[i + k * lda] -= temp * a[i + j * lda];
          }
          if (pivot && rdiag[k] != 0.) {
            temp = a[j + k * lda] / rdiag[k];
            d1 = 1. - temp * temp;
            rdiag[k] *= sqrt(((((double)0.) >= (d1) ? ((double)0.) : (d1))));
            d1 = rdiag[k] / wa[k];
            if (.05 * (d1 * d1) <= epsmch) {
              rdiag[k] = enorm(m - (j + 1), &a[jp1 + k * lda]);
              wa[k] = rdiag[k];
            }
          }
        }
      }
    }
    rdiag[j] = -ajnorm;
  }
}
```