user: Translate the below assembly code into C programming language:

```asm
<housev>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,%r14
  mov    %rsi,0x28(%rsp)
  mov    %rdx,0x30(%rsp)
  mov    %ecx,%r15d
  mov    %ecx,0x54(%rsp)
  mov    $0x8,%esi
  mov    %ecx,%edi
  call   <calloc@plt>
  mov    %rax,0x10(%rsp)
  cmp    $0x2,%r15d
  jle    L131
  mov    %rax,%rbx
  movslq %r15d,%rax
  lea    0x8(,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x1(%r15),%ebp
  lea    0x8(%r14),%r15
  mov    %rbx,%rax
  neg    %rbx
  mov    %rbx,0x8(%rsp)
  mov    %r14,%r13
  sub    %rax,%r13
  mov    %rax,%rbx
  sub    %r14,%rbx
  mov    %rbx,0x20(%rsp)
  mov    %r14,0x68(%rsp)
  jmp    L293
L35:
  movapd %xmm0,%xmm6
  subsd  %xmm4,%xmm6
  movsd  %xmm6,0x48(%rsp)
  mulsd  D30(%rip),%xmm4
  movapd %xmm4,%xmm0
  mulsd  %xmm6,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D57(%rip),%xmm1
  divsd  %xmm0,%xmm1
  jmp    L174
L86:
  movsd  0x48(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L290:
  add    $0x1,%edx
  add    $0x8,%rax
  cmp    %r12d,%edx
  je     L245
L59:
  movq   $0x0,-0x8(%rax,%rcx,1)
  test   %edx,%edx
  je     L86
  movapd %xmm1,%xmm0
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L290
L89:
  lea    (%rcx,%r11,1),%rdx
  mov    %rdx,%r8
  mov    %r14d,%edi
  lea    0x8(%rax,%rdi,8),%rdi
L48:
  add    $0x8,%rax
  movsd  0x8(%rbx,%rcx,1),%xmm0
  mulsd  (%rdx),%xmm0
  movsd  (%r8),%xmm1
  mulsd  0x8(%rsi,%rdx,1),%xmm1
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rax),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,-0x8(%rax)
  add    $0x8,%rdx
  cmp    %rdi,%rax
  jne    L48
L108:
  add    $0x1,%r9d
  lea    (%r10,%rcx,1),%rax
  add    %rdi,%rax
  sub    $0x1,%r14d
  add    $0x8,%rcx
  cmp    %r12d,%r9d
  je     L120
L149:
  mov    %rax,%rdi
  cmp    %r12d,%r9d
  jl     L89
  jmp    L108
L118:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,(%rsp)
L120:
  movsd  -0x8(%r15),%xmm0
  mov    0x28(%rsp),%rax
  mov    0x10(%rsp),%rdi
  add    %rdi,%rax
  mov    0x8(%rsp),%rbx
  movsd  %xmm0,(%rax,%rbx,1)
  mov    0x30(%rsp),%rax
  add    %rdi,%rax
  movsd  (%rsp),%xmm6
  movsd  %xmm6,(%rax,%rbx,1)
  sub    $0x1,%ebp
  mov    0x18(%rsp),%rax
  add    %rax,%r15
  add    %rax,%r13
  add    $0x8,%rbx
  mov    %rbx,0x8(%rsp)
  sub    %rax,0x20(%rsp)
  cmp    $0x1,%ebp
  je     L8
L293:
  lea    -0x8(%r15),%rbx
  mov    %ebp,%r12d
  test   %ebp,%ebp
  jle    L118
  lea    -0x1(%rbp),%r14d
  mov    %r14d,%eax
  mov    %rax,0x40(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x38(%rsp)
  lea    0x8(%rax,%r15,1),%rdx
  mov    %r15,%rax
  pxor   %xmm7,%xmm7
  movsd  %xmm7,(%rsp)
L210:
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L210
  comisd D52(%rip),%xmm0
  jbe    L120
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  pxor   %xmm4,%xmm4
  cvtsi2sd %eax,%xmm4
  movsd  %xmm4,(%rsp)
  movsd  (%r15),%xmm0
  pxor   %xmm6,%xmm6
  comisd %xmm0,%xmm6
  ja     L35
  movapd %xmm0,%xmm4
  movsd  (%rsp),%xmm7
  addsd  %xmm7,%xmm4
  movsd  %xmm4,0x48(%rsp)
  movapd %xmm7,%xmm0
  addsd  %xmm7,%xmm0
  mulsd  %xmm4,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D57(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  (%rsp),%xmm7
  xorpd  D19(%rip),%xmm7
  movsd  %xmm7,(%rsp)
L174:
  mov    %r15,%rax
  mov    $0x0,%edx
  mov    0x20(%rsp),%rcx
  jmp    L59
L8:
  mov    0x68(%rsp),%r14
  mov    0x54(%rsp),%ebx
  lea    -0x2(%rbx),%eax
  lea    -0x3(%rbx),%edx
  add    $0x1,%rdx
  imul   0x18(%rsp),%rdx
  add    %rdx,%r14
L45:
  cltq
  movsd  (%r14),%xmm0
  mov    0x28(%rsp),%rdi
  movsd  %xmm0,(%rdi,%rax,8)
  movsd  0x8(%r14),%xmm0
  mov    0x30(%rsp),%rbx
  movsd  %xmm0,(%rbx,%rax,8)
  mov    0x54(%rsp),%r15d
  movslq %r15d,%rdx
  lea    0x8(,%rdx,8),%rbx
  lea    (%r14,%rbx,1),%rbp
  movsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x8(%rdi,%rax,8)
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  lea    (%r15,%r15,1),%edx
  test   %edx,%edx
  jle    L267
  mov    %rbp,%rax
  lea    -0x1(%rdx),%edx
  shl    $0x3,%rdx
  mov    %rbp,%rcx
  sub    %rdx,%rcx
  lea    -0x8(%rcx),%rdx
L140:
  movq   $0x0,(%rax)
  sub    $0x8,%rax
  cmp    %rax,%rdx
  jne    L140
L267:
  movsd  D57(%rip),%xmm0
  movsd  %xmm0,0x0(%rbp)
  lea    -0x8(%rbx),%r10
  mov    %rbx,%r11
  neg    %r11
  movsd  %xmm0,(%r14)
  mov    %r14,%rax
  sub    %rbx,%rax
  lea    0x8(%rax),%rsi
  mov    0x54(%rsp),%edi
  cmp    $0x2,%edi
  jle    L263
  mov    $0x8,%ebp
  sub    %rbx,%rbp
  mov    %edi,%ebx
  mov    %rbx,%rax
  neg    %rax
  lea    0x10(%rsi,%rax,8),%r8
  mov    $0x2,%ecx
  movapd %xmm0,%xmm4
  mov    %edi,%r12d
  shl    $0x3,%r12
  movapd %xmm0,%xmm3
L112:
  movsd  %xmm4,(%r14)
  mov    %ecx,%r9d
  mov    %r14,%rdx
  mov    $0x0,%edi
  test   %ecx,%ecx
  jle    L29
L193:
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L214:
  movsd  (%rsi,%rax,8),%xmm0
  mulsd  (%rdx,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L214
  addsd  %xmm1,%xmm1
  mov    $0x0,%eax
L262:
  movapd %xmm1,%xmm2
  mulsd  (%rsi,%rax,8),%xmm2
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L262
  add    $0x1,%edi
  add    %r10,%rdx
  cmp    %edi,%r9d
  jne    L193
L29:
  lea    (%r12,%r8,1),%rax
L4:
  sub    $0x8,%rax
  movq   $0x0,(%rax)
  cmp    %r8,%rax
  jne    L4
  add    %r11,%r14
  movsd  %xmm3,(%r14)
  add    %r11,%rsi
  add    %rbp,%r8
  add    $0x1,%rcx
  cmp    %rbx,%rcx
  jne    L112
L263:
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L131:
  mov    $0x0,%eax
  jmp    L45
L237:
  mov    0x58(%rsp),%rax
  mov    0x60(%rsp),%rbx
  mov    0x10(%rsp),%rdx
  mov    0x40(%rsp),%rdi
  mulsd  (%rdx,%rdi,8),%xmm1
  addsd  %xmm2,%xmm1
  mov    0x48(%rsp),%rcx
  add    0x38(%rsp),%rcx
L137:
  movapd %xmm1,%xmm2
  mulsd  0x8(%rsi,%rdx,1),%xmm2
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rdx
  cmp    %rcx,%rdx
  jne    L137
  mov    $0x0,%ecx
  mov    $0x0,%r9d
  mov    0x10(%rsp),%r11
  mov    0x8(%rsp),%rdi
  lea    0x10(%r11,%rdi,1),%r10
  jmp    L149
L245:
  mov    0x18(%rsp),%rax
  lea    -0x8(%rax,%r15,1),%rax
  lea    -0x2(%rbp),%r10d
  mov    0x10(%rsp),%rdi
  add    $0x8,%rdi
  mov    %rdi,0x48(%rsp)
  mov    %rdi,%r9
  mov    %rax,%rdx
  pxor   %xmm2,%xmm2
  mov    0x8(%rsp),%rdi
  add    $0x8,%rdi
  mov    %rax,0x58(%rsp)
  mov    %rbx,0x60(%rsp)
  mov    %rdi,%rbx
L248:
  mov    %r13,%rsi
  movsd  0x0(%r13,%r9,1),%xmm1
  lea    0x8(%rdx),%r8
  lea    -0x8(%r9),%rcx
  movapd %xmm1,%xmm0
  mulsd  (%rdx),%xmm0
  addsd  -0x8(%r9),%xmm0
  movsd  %xmm0,-0x8(%r9)
  cmp    $0xffffffff,%r10d
  je     L237
  mov    %r10d,%r11d
  lea    0x10(%rdx,%r11,8),%rdi
  mov    %r9,%rdx
  mov    %r8,%rax
L109:
  movsd  0x8(%rsi,%rdx,1),%xmm0
  mulsd  (%rax),%xmm0
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x8,%rax
  movapd %xmm1,%xmm0
  mulsd  -0x8(%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rdx
  cmp    %rdi,%rax
  jne    L109
  mulsd  (%rcx),%xmm1
  addsd  %xmm1,%xmm2
  lea    (%rbx,%r9,1),%rax
  lea    0x8(%rax,%r11,8),%rdx
  add    %r8,%rdx
  sub    $0x1,%r10d
  add    $0x8,%r9
  jmp    L248
```

tool_calls: name: unpack_data
arguments: label: D30
type_infered: f32[2]
name: unpack_data
arguments: label: D57
type_infered: f64
name: unpack_data
arguments: label: D52
type_infered: f32
name: unpack_data
arguments: label: D19
type_infered: f32[4]

tool: {"D30": [0.0,-2.0]}

tool: D57: 1

tool: D52: 0

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

assistant: ```c
void housev(double *a, double *d, double *dp, int n) {
  double sc, x, y, h;
  int i, j, k, m, e;
  double *qw, *qs, *pc, *p;
  qs = (double *)calloc(n, sizeof(double));
  for (j = 0, pc = a; j < n - 2; ++j, pc += n + 1) {
    m = n - j - 1;
    for (i = 1, sc = 0.; i <= m; ++i)
      sc += pc[i] * pc[i];
    if (sc > 0.) {
      sc = sqrt(sc);
      if ((x = *(pc + 1)) < 0.) {
        y = x - sc;
        h = 1. / sqrt(-2. * sc * y);
      } else {
        y = x + sc;
        h = 1. / sqrt(2. * sc * y);
        sc = -sc;
      }
      for (i = 0, qw = pc + 1; i < m; ++i) {
        qs[i] = 0.;
        if (i)
          qw[i] *= h;
        else
          qw[i] = y * h;
      }
      for (i = 0, e = j + 2, p = pc + n + 1, h = 0.; i < m; ++i, p += e++) {
        qs[i] += (y = qw[i]) * *p++;
        for (k = i + 1; k < m; ++k) {
          qs[i] += qw[k] * *p;
          qs[k] += y * *p++;
        }
        h += y * qs[i];
      }
      for (i = 0; i < m; ++i) {
        qs[i] -= h * qw[i];
        qs[i] += qs[i];
      }
      for (i = 0, e = j + 2, p = pc + n + 1; i < m; ++i, p += e++) {
        for (k = i; k < m; ++k)
          *p++ -= qw[i] * qs[k] + qs[i] * qw[k];
      }
    }
    d[j] = *pc;
    dp[j] = sc;
  }
  d[j] = *pc;
  dp[j] = *(pc + 1);
  d[j + 1] = *(pc += n + 1);
  free(qs);
  for (i = 0, m = n + n, p = pc; i < m; ++i)
    *p-- = 0.;
  *pc = 1.;
  *(pc -= n + 1) = 1.;
  qw = pc - n;
  for (m = 2; m < n; ++m, qw -= n + 1) {
    for (j = 0, p = pc, *pc = 1.; j < m; ++j, p += n) {
      for (i = 0, qs = p, h = 0.; i < m;)
        h += qw[i++] * *qs++;
      for (i = 0, qs = p, h += h; i < m;)
        *qs++ -= h * qw[i++];
    }
    for (i = 0, p = qw + m; i < n; ++i)
      *(--p) = 0.;
    *(pc -= n + 1) = 1.;
  }
}
```