user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Householder2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,0x44(%rsp)
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,%rbx
  test   %edi,%edi
  jle    L215
  movslq %edi,%rax
  lea    -0x8(%rsi,%rax,8),%rsi
  mov    %edi,%ecx
  shl    $0x3,%rcx
  mov    $0x0,%eax
L121:
  mov    (%rsi),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%r12,%rax,1)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L121
  mov    0x44(%rsp),%eax
  lea    -0x1(%rax),%r15d
  test   %r15d,%r15d
  jle    L271
L126:
  mov    0x44(%rsp),%eax
  sub    $0x2,%eax
  cltq
  mov    %rax,0x18(%rsp)
  movslq %r15d,%rax
  lea    0x0(,%rax,8),%r13
  mov    %r13,0x48(%rsp)
  lea    -0x8(%r13),%r14
  mov    %r14,%rax
  mov    %r13,%r14
  mov    %rax,%r13
  jmp    L305
L120:
  movsd  0x10(%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  jmp    L27
L89:
  mov    0x48(%rsp),%r9
  add    %rbp,%r9
  lea    0x8(%rbp),%rdi
  mov    0x44(%rsp),%eax
  lea    -0x1(%rax),%r8d
  mov    $0x8,%edx
  movsd  D44(%rip),%xmm5
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm3
  jmp    L141
L118:
  test   %r15d,%r15d
  js     L119
  mov    $0x0,%eax
L390:
  mov    0x0(%rbp,%rax,1),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12,%rax,1)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L390
  mov    $0x0,%esi
L364:
  mov    %rbp,%rax
  pxor   %xmm1,%xmm1
L240:
  mov    (%rax),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rcx,%rsi,1),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rdi,%rax
  jne    L240
  mov    $0x0,%eax
L26:
  mov    %rsi,%rcx
  add    0x0(%rbp,%rax,1),%rcx
  movapd %xmm1,%xmm2
  mulsd  (%r12,%rax,1),%xmm2
  movsd  (%rcx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L26
  add    $0x8,%rsi
  cmp    %rdx,%rsi
  jne    L364
L105:
  mov    $0x0,%eax
L142:
  mov    0x0(%rbp,%rax,8),%rcx
  movq   $0x0,(%rcx,%rdx,1)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jge    L142
L119:
  add    $0x1,%r15d
  add    $0x8,%rdx
  add    $0x8,%rdi
  cmp    %r8d,%r15d
  je     L408
L141:
  mov    -0x8(%rdi),%rax
  movsd  -0x8(%rax,%rdx,1),%xmm0
  mov    (%r9),%rax
  movsd  %xmm0,-0x8(%rax,%rdx,1)
  mov    -0x8(%rdi),%rax
  movsd  %xmm5,-0x8(%rax,%rdx,1)
  movsd  (%r12,%rdx,1),%xmm1
  ucomisd %xmm4,%xmm1
  jp     L118
  ucomisd %xmm3,%xmm1
  jne    L118
  test   %r15d,%r15d
  jns    L105
  jmp    L119
L408:
  cmpl   $0x0,0x44(%rsp)
  jle    L384
L271:
  mov    0x44(%rsp),%edi
  movslq %edi,%rax
  lea    -0x8(%rbp,%rax,8),%rdx
  mov    %edi,%esi
  shl    $0x3,%rsi
  mov    $0x0,%eax
L264:
  mov    (%rdx),%rcx
  movsd  (%rcx,%rax,1),%xmm0
  movsd  %xmm0,(%r12,%rax,1)
  mov    (%rdx),%rcx
  movq   $0x0,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    %rsi,%rax
  jne    L264
L384:
  movslq 0x44(%rsp),%rax
  shl    $0x3,%rax
  mov    -0x8(%rbp,%rax,1),%rdx
  mov    D44(%rip),%rdi
  mov    %rdi,-0x8(%rdx,%rax,1)
  movq   $0x0,(%rbx)
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L51:
  mov    0x20(%rsp),%rax
  movsd  %xmm1,(%rbx,%rax,8)
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L328:
  movsd  (%rbx,%rax,8),%xmm0
  divsd  %xmm4,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  mulsd  (%r12,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L328
  movapd %xmm4,%xmm0
  addsd  %xmm4,%xmm0
  divsd  %xmm0,%xmm1
  mov    $0x0,%eax
L304:
  movapd %xmm1,%xmm2
  mulsd  (%r12,%rax,8),%xmm2
  movsd  (%rbx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L304
  mov    $0x0,%edi
L20:
  lea    0x0(,%rdi,8),%rsi
  movsd  (%r12,%rdi,8),%xmm2
  movsd  (%rbx,%rdi,8),%xmm3
  cmp    %edi,%r15d
  jle    L370
  mov    %rdi,%rax
L52:
  mov    %rsi,%rdx
  add    0x0(%rbp,%rax,8),%rdx
  movapd %xmm2,%xmm1
  mulsd  (%rbx,%rax,8),%xmm1
  movapd %xmm3,%xmm0
  mulsd  (%r12,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  movsd  (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L52
L370:
  mov    0x0(%rbp,%r13,1),%rax
  movsd  (%rax,%rsi,1),%xmm0
  movsd  %xmm0,(%r12,%rdi,8)
  mov    0x0(%rbp,%r14,1),%rax
  movq   $0x0,(%rax,%rsi,1)
  add    $0x1,%rdi
  cmp    %rcx,%rdi
  jne    L20
  jmp    L365
L100:
  movsd  (%r12,%r13,1),%xmm0
  movsd  %xmm0,(%rbx,%r14,1)
  pxor   %xmm4,%xmm4
  jmp    L365
L352:
  movsd  (%r12,%r13,1),%xmm0
  movsd  %xmm0,(%rbx,%r14,1)
  mov    $0x0,%eax
L345:
  mov    0x0(%rbp,%r13,1),%rdx
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  mov    0x0(%rbp,%r14,1),%rdx
  movq   $0x0,(%rdx,%rax,8)
  mov    0x0(%rbp,%rax,8),%rdx
  movq   $0x0,(%rdx,%r14,1)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L345
  pxor   %xmm4,%xmm4
L365:
  movsd  %xmm4,(%r12,%r14,1)
  subq   $0x1,0x18(%rsp)
  sub    $0x8,%r14
  sub    $0x8,%r13
  sub    $0x1,%r15d
  je     L89
L305:
  test   %r15d,%r15d
  jle    L100
  mov    0x18(%rsp),%eax
  mov    %rax,0x20(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x30(%rsp)
  lea    0x8(%r12,%rax,1),%rdx
  mov    %r12,%rax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
L332:
  movsd  (%rax),%xmm0
  andpd  D13(%rip),%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L332
  movsd  0x8(%rsp),%xmm7
  ucomisd D10(%rip),%xmm7
  jp     L344
  je     L352
L344:
  mov    %r12,%rax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x10(%rsp)
L404:
  movsd  (%rax),%xmm0
  divsd  0x8(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L404
  lea    (%r12,%r13,1),%rax
  mov    %rax,0x38(%rsp)
  movsd  (%r12,%r13,1),%xmm6
  movsd  %xmm6,0x28(%rsp)
  pxor   %xmm0,%xmm0
  movsd  0x10(%rsp),%xmm5
  ucomisd %xmm5,%xmm0
  ja     L120
  sqrtsd %xmm5,%xmm5
  movapd %xmm5,%xmm1
L27:
  movsd  0x28(%rsp),%xmm5
  comisd D10(%rip),%xmm5
  jbe    L359
  xorpd  D39(%rip),%xmm1
L359:
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx,%r14,1)
  movsd  0x28(%rsp),%xmm5
  movapd %xmm5,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  0x10(%rsp),%xmm4
  subsd  %xmm0,%xmm4
  subsd  %xmm1,%xmm5
  mov    0x38(%rsp),%rax
  movsd  %xmm5,(%rax)
  mov    %rbx,%rax
  mov    0x30(%rsp),%rdi
  lea    0x8(%rbx,%rdi,1),%rdx
L272:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L272
  mov    0x20(%rsp),%rax
  lea    0x1(%rax),%rdi
  mov    $0x0,%esi
  mov    $0x1,%ecx
L373:
  movsd  (%r12,%rsi,1),%xmm3
  mov    0x0(%rbp,%rsi,1),%rax
  movsd  %xmm3,(%rax,%r14,1)
  mov    0x0(%rbp,%rsi,1),%rax
  movapd %xmm3,%xmm1
  mulsd  (%rax,%rsi,1),%xmm1
  addsd  (%rbx,%rsi,1),%xmm1
  cmp    %rdi,%rcx
  je     L51
  mov    %rcx,%rax
L96:
  mov    0x0(%rbp,%rax,8),%rdx
  movsd  (%rdx,%rsi,1),%xmm0
  movapd %xmm0,%xmm2
  mulsd  (%r12,%rax,8),%xmm2
  addsd  %xmm2,%xmm1
  mulsd  %xmm3,%xmm0
  addsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L96
  movsd  %xmm1,(%rbx,%rsi,1)
  add    $0x1,%rcx
  add    $0x8,%rsi
  jmp    L373
L215:
  mov    0x44(%rsp),%eax
  lea    -0x1(%rax),%r15d
  test   %r15d,%r15d
  jg     L126
  jmp    L384
```

tool_calls: name: parse_data
arguments: data_label: D44
data_type: f64
name: parse_data
arguments: data_label: D13
data_type: qword[2]
name: parse_data
arguments: data_label: D10
data_type: f64[2]
name: parse_data
arguments: data_label: D39
data_type: byte[16]

tool: D44: 1

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

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

tool: {"D39": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
void Householder2(int n, double **V, double *d, double *e) {
  int i, j, k;
  for (j = 0; j < n; j++) {
    d[j] = V[n - 1][j];
  }
  for (i = n - 1; i > 0; i--) {
    double scale = 0.0;
    double h = 0.0;
    for (k = 0; k < i; k++) {
      scale = scale + fabs(d[k]);
    }
    if (scale == 0.0) {
      e[i] = d[i - 1];
      for (j = 0; j < i; j++) {
        d[j] = V[i - 1][j];
        V[i][j] = 0.0;
        V[j][i] = 0.0;
      }
    } else {
      double f, g, hh;
      for (k = 0; k < i; k++) {
        d[k] /= scale;
        h += d[k] * d[k];
      }
      f = d[i - 1];
      g = sqrt(h);
      if (f > 0) {
        g = -g;
      }
      e[i] = scale * g;
      h = h - f * g;
      d[i - 1] = f - g;
      for (j = 0; j < i; j++) {
        e[j] = 0.0;
      }
      for (j = 0; j < i; j++) {
        f = d[j];
        V[j][i] = f;
        g = e[j] + V[j][j] * f;
        for (k = j + 1; k <= i - 1; k++) {
          g += V[k][j] * d[k];
          e[k] += V[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 - 1; k++) {
          V[k][j] -= (f * e[k] + g * d[k]);
        }
        d[j] = V[i - 1][j];
        V[i][j] = 0.0;
      }
    }
    d[i] = h;
  }
  for (i = 0; i < n - 1; i++) {
    double h;
    V[n - 1][i] = V[i][i];
    V[i][i] = 1.0;
    h = d[i + 1];
    if (h != 0.0) {
      for (k = 0; k <= i; k++) {
        d[k] = V[k][i + 1] / h;
      }
      for (j = 0; j <= i; j++) {
        double g = 0.0;
        for (k = 0; k <= i; k++) {
          g += V[k][i + 1] * V[k][j];
        }
        for (k = 0; k <= i; k++) {
          V[k][j] -= g * d[k];
        }
      }
    }
    for (k = 0; k <= i; k++) {
      V[k][i + 1] = 0.0;
    }
  }
  for (j = 0; j < n; j++) {
    d[j] = V[n - 1][j];
    V[n - 1][j] = 0.0;
  }
  V[n - 1][n - 1] = 1.0;
  e[0] = 0.0;
}
```