user: What is the c source code of the assembly code below:

```asm
<qr_house>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %rcx,-0x58(%rbp)
  mov    -0x4c(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jge    L38
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L38:
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  cltq
  imul   %edx,%eax
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x4c(%rbp),%eax
  cltq
  mov    %eax,%edx
  mov    -0x4c(%rbp),%eax
  cltq
  imul   %edx,%eax
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L20
L83:
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  jmp    L81
L133:
  mov    -0x38(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x38(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x38(%rbp)
L81:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L133
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <house@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  jmp    L39
L3:
  mov    -0x38(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x30(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  jmp    L142
L120:
  mov    -0x34(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%ecx
  mov    -0x38(%rbp),%eax
  add    %ecx,%eax
  sub    -0x3c(%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
  sub    -0x3c(%rbp),%eax
  add    %eax,-0x30(%rbp)
  addl   $0x1,-0x34(%rbp)
L142:
  mov    -0x34(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L120
  addl   $0x1,-0x38(%rbp)
L39:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L3
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edi
  mov    -0x50(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x10(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    $0x1,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <mmult@plt>
  mov    -0x50(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  movq   %rdx,%xmm0
  mov    $0x1,%edx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <scale@plt>
  mov    -0x50(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edi
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rdx
  mov    -0x10(%rbp),%rsi
  mov    -0x20(%rbp),%rax
  mov    %edi,%r9d
  mov    $0x1,%r8d
  mov    %rax,%rdi
  call   <mmult@plt>
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  jmp    L103
L110:
  mov    -0x38(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  jmp    L18
L62:
  mov    -0x2c(%rbp),%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x38(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x50(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  imul   %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  sub    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x2c(%rbp),%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
L18:
  mov    -0x34(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L62
  addl   $0x1,-0x38(%rbp)
L103:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L110
  mov    -0x3c(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jge    L100
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x38(%rbp)
  jmp    L122
L47:
  mov    -0x38(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x38(%rbp),%eax
  imul   -0x50(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x3c(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x38(%rbp)
L122:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L47
L100:
  addl   $0x1,-0x3c(%rbp)
L20:
  mov    -0x3c(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L83
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D3
data_type: string

tool: D3: M should be greater than or equal to N

assistant: ```c
void qr_house(double *A, int M, int N, double *bvec) {
  int j, i, k, u, t;
  double *x, *v, *AT, *w;
  double beta;
  if (M < N) {
    printf("M should be greater than or equal to N");
    exit(1);
  }
  x = (double *)malloc(sizeof(double) * M);
  v = (double *)malloc(sizeof(double) * M);
  AT = (double *)malloc(sizeof(double) * M * N);
  w = (double *)malloc(sizeof(double) * M * M);
  for (j = 0; j < N; ++j) {
    for (i = j; i < M; ++i) {
      x[i - j] = A[i * N + j];
    }
    beta = house(x, M - j, v);
    bvec[j] = beta;
    for (i = j; i < M; i++) {
      t = i * N;
      u = 0;
      for (k = j; k < N; k++) {
        AT[u + i - j] = A[k + t];
        u += (M - j);
      }
    }
    mmult(AT, v, w, N - j, M - j, 1);
    scale(w, N - j, 1, beta);
    mmult(v, w, AT, M - j, 1, N - j);
    for (i = j; i < M; i++) {
      t = i * N;
      for (k = j; k < N; k++) {
        A[t + k] -= AT[(i - j) * (N - j) + k - j];
      }
    }
    if (j < M) {
      for (i = j + 1; i < M; ++i) {
        A[i * N + j] = v[i - j];
      }
    }
  }
  free(x);
  free(v);
  free(AT);
  free(w);
}
```