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

```asm
<hessenberg>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  movslq %esi,%rbx
  lea    0x0(,%rbx,8),%ebp
  sub    $0xa8,%rsp
  mov    %rdi,0x48(%rsp)
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,0x60(%rsp)
  call   <malloc@plt>
  mov    %ebx,%edi
  imul   %ebx,%edi
  mov    %rax,0x18(%rsp)
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,(%rsp)
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  cmp    $0x2,%ebx
  jle    L200
  lea    -0x1(%rbx),%eax
  mov    0x48(%rsp),%rdi
  mov    %ebx,0x6c(%rsp)
  mov    %rbx,%r15
  mov    %eax,0x28(%rsp)
  lea    -0x2(%rbx),%eax
  lea    0x0(,%rbx,8),%r10
  mov    %eax,0x68(%rsp)
  lea    -0x3(%rbx),%eax
  mov    %r10,%r12
  lea    -0x8(,%rbx,8),%r11
  add    $0x2,%rax
  mov    %rdi,0x38(%rsp)
  mov    %rax,0x78(%rsp)
  lea    0x1(%rbx),%eax
  mov    %r11,%rbx
  mov    %eax,0x84(%rsp)
  mov    (%rsp),%rax
  movq   $0x1,0x10(%rsp)
  movq   $0x0,0x30(%rsp)
  lea    -0x8(%rax),%rsi
  mov    %rsi,0x88(%rsp)
  lea    0x8(%rax),%rsi
  sub    %rdi,%rax
  movq   $0x0,0x20(%rsp)
  mov    %rsi,0x90(%rsp)
  mov    %rax,0x98(%rsp)
  nop
L45:
  mov    0x10(%rsp),%rax
  mov    0x84(%rsp),%edi
  sub    %eax,%edi
  mov    %eax,%r14d
  mov    %eax,%r11d
  mov    %edi,0x2c(%rsp)
  cmp    %eax,%r15d
  jle    L139
  movslq 0x6c(%rsp),%rax
  mov    0x48(%rsp),%rdi
  mov    0x60(%rsp),%rsi
  mov    %rax,0x58(%rsp)
  add    0x20(%rsp),%rax
  lea    (%rdi,%rax,8),%rdx
  mov    0x68(%rsp),%edi
  mov    %rsi,%rax
  mov    %rdi,0x50(%rsp)
  lea    0x8(%rsi,%rdi,8),%rcx
  nop
L131:
  movsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    %r12,%rdx
  movsd  %xmm0,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L131
  mov    0x28(%rsp),%ebp
  mov    0x60(%rsp),%rdi
  mov    %r11d,0x74(%rsp)
  mov    0x18(%rsp),%rdx
  mov    %ebp,%esi
  call   <house@plt>
  mov    0x58(%rsp),%rax
  mov    %ebp,%edi
  mov    %r14d,%r10d
  mov    0x20(%rsp),%r8
  mov    0x48(%rsp),%rsi
  movsd  %xmm0,0x40(%rsp)
  add    %rdi,%rax
  mov    0x74(%rsp),%r11d
  not    %rdi
  add    %r8,%rax
  mov    %r8d,0x70(%rsp)
  shl    $0x3,%rdi
  lea    0x8(%rsi,%rax,8),%rbp
  mov    (%rsp),%rsi
  mov    %rbp,%rcx
  nopl   0x0(%rax)
L171:
  lea    (%rdi,%rcx,1),%rax
  mov    %rsi,%rdx
  cmp    %r8d,%r15d
  jle    L88
  nopl   0x0(%rax)
L123:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,(%rdx)
  add    %rbx,%rdx
  cmp    %rcx,%rax
  jne    L123
L88:
  lea    0x1(%r10),%r13d
  add    $0x8,%rsi
  add    %r12,%rcx
  cmp    %r13d,%r15d
  je     L145
  mov    %r13d,%r10d
  jmp    L171
  nopl   0x0(%rax)
L145:
  mov    0x28(%rsp),%r8d
  mov    0x2c(%rsp),%ecx
  mov    $0x1,%r9d
  mov    %r11d,0x80(%rsp)
  mov    0x8(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    %r10d,0x74(%rsp)
  mov    (%rsp),%rdi
  call   <mmult@plt>
  movsd  0x40(%rsp),%xmm0
  mov    0x2c(%rsp),%esi
  mov    $0x1,%edx
  mov    0x8(%rsp),%rdi
  call   <scale@plt>
  mov    0x2c(%rsp),%r9d
  mov    0x28(%rsp),%ecx
  mov    $0x1,%r8d
  mov    0x8(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  mov    (%rsp),%rdx
  call   <mmult@plt>
  mov    0x80(%rsp),%r11d
  mov    0x58(%rsp),%rcx
  xor    %esi,%esi
  mov    0x74(%rsp),%r10d
  mov    %rbx,0x58(%rsp)
  mov    %r11d,0x74(%rsp)
  mov    0x38(%rsp),%rbx
  shl    $0x3,%rcx
  mov    0x2c(%rsp),%r9d
  mov    0x70(%rsp),%r11d
  mov    0x98(%rsp),%rdi
  sub    0x30(%rsp),%rdi
  nopl   0x0(%rax,%rax,1)
L192:
  cmp    %r11d,%r13d
  jle    L148
  mov    %rdi,%rdx
  movslq %esi,%r8
  lea    (%rcx,%rbx,1),%rax
  sub    %rcx,%rdx
  lea    (%rdx,%r8,8),%rdx
  cs nopw 0x0(%rax,%rax,1)
L193:
  movsd  (%rax),%xmm0
  subsd  (%rax,%rdx,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rbp,%rax
  jne    L193
L148:
  lea    0x1(%r14),%eax
  add    %r9d,%esi
  add    %r12,%rcx
  add    %r12,%rbp
  cmp    %r14d,%r10d
  je     L128
  mov    %eax,%r14d
  jmp    L192
  xchg   %ax,%ax
L128:
  mov    0x58(%rsp),%rbx
  mov    0x74(%rsp),%r11d
L54:
  mov    0x88(%rsp),%rdi
  mov    0x10(%rsp),%rax
  xor    %r13d,%r13d
  sub    0x20(%rsp),%rax
  mov    0x38(%rsp),%rcx
  lea    (%rdi,%rax,8),%rsi
  mov    0x30(%rsp),%rax
  mov    0x50(%rsp),%rdi
  sub    (%rsp),%rcx
  lea    0x8(%rax),%r14
  mov    0x90(%rsp),%rax
  lea    (%rax,%rdi,8),%rdx
  cs nopw 0x0(%rax,%rax,1)
L30:
  mov    %rsi,%rax
  cmp    %r11d,%r15d
  jle    L133
  nopl   0x0(%rax,%rax,1)
L196:
  movsd  0x8(%rcx,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rdx,%rax
  jne    L196
L133:
  lea    0x1(%r13),%ebp
  add    %rbx,%rsi
  add    %r14,%rcx
  add    %rbx,%rdx
  cmp    %ebp,%r15d
  je     L5
  mov    %ebp,%r13d
  jmp    L30
  nopl   0x0(%rax,%rax,1)
L5:
  mov    0x28(%rsp),%r8d
  mov    (%rsp),%rdi
  mov    %r15d,%ecx
  mov    %r11d,0x2c(%rsp)
  mov    0x8(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    $0x1,%r9d
  call   <mmult@plt>
  movsd  0x40(%rsp),%xmm0
  mov    0x8(%rsp),%rdi
  mov    %r15d,%esi
  mov    $0x1,%edx
  call   <scale@plt>
  mov    0x28(%rsp),%r9d
  mov    (%rsp),%rdx
  mov    $0x1,%r8d
  mov    0x18(%rsp),%rsi
  mov    0x8(%rsp),%rdi
  mov    %r15d,%ecx
  call   <mmult@plt>
  mov    0x38(%rsp),%rax
  mov    (%rsp),%rcx
  mov    $0xfffffffffffffff8,%r8
  mov    0x48(%rsp),%rdi
  mov    0x2c(%rsp),%r11d
  lea    0x8(%rax),%r9
  sub    %rax,%rcx
  mov    0x50(%rsp),%rax
  add    0x20(%rsp),%rax
  lea    0x10(%rdi,%rax,8),%rdx
  mov    %r9,%rsi
  sub    0x30(%rsp),%r8
  xor    %edi,%edi
  nopl   0x0(%rax)
L43:
  mov    %rsi,%rax
  cmp    %r11d,%ebp
  jle    L183
  nopl   0x0(%rax,%rax,1)
L170:
  movsd  (%rax),%xmm0
  subsd  -0x8(%rax,%rcx,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L170
L183:
  lea    0x1(%rdi),%eax
  add    %r12,%rsi
  add    %r8,%rcx
  add    %r12,%rdx
  cmp    %edi,%r13d
  je     L151
  mov    %eax,%edi
  jmp    L43
L139:
  mov    0x28(%rsp),%r14d
  mov    0x18(%rsp),%r13
  mov    %eax,0x50(%rsp)
  mov    0x60(%rsp),%rdi
  mov    %r14d,%esi
  mov    %r13,%rdx
  call   <house@plt>
  mov    0x2c(%rsp),%ebp
  mov    %r14d,%r8d
  mov    (%rsp),%rdi
  mov    %r14d,0x28(%rsp)
  mov    0x8(%rsp),%r14
  mov    $0x1,%r9d
  mov    %r13,%rsi
  mov    %ebp,%ecx
  movsd  %xmm0,0x40(%rsp)
  mov    %r14,%rdx
  call   <mmult@plt>
  movsd  0x40(%rsp),%xmm0
  mov    %ebp,%esi
  mov    %r14,%rdi
  mov    $0x1,%edx
  call   <scale@plt>
  mov    0x28(%rsp),%ecx
  mov    (%rsp),%rdx
  mov    %ebp,%r9d
  mov    $0x1,%r8d
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <mmult@plt>
  test   %r15d,%r15d
  mov    0x50(%rsp),%r11d
  jg     L58
  mov    0x8(%rsp),%r14
  mov    0x18(%rsp),%r13
  mov    %r15d,%ecx
  mov    $0x1,%r9d
  mov    (%rsp),%rbp
  mov    0x28(%rsp),%r8d
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <mmult@plt>
  mov    %r14,%rdi
  mov    $0x1,%edx
  mov    %r15d,%esi
  movsd  0x40(%rsp),%xmm0
  call   <scale@plt>
  mov    0x28(%rsp),%r9d
  mov    %r14,%rdi
  mov    %r15d,%ecx
  mov    $0x1,%r8d
  mov    %rbp,%rdx
  mov    %r13,%rsi
  call   <mmult@plt>
  mov    0x30(%rsp),%rax
  lea    0x8(%rax),%r14
  mov    0x38(%rsp),%rax
  lea    0x8(%rax),%r9
  nopw   0x0(%rax,%rax,1)
L151:
  addq   $0x1,0x10(%rsp)
  sub    $0x8,%rbx
  mov    0x10(%rsp),%rax
  addq   $0x1,0x20(%rsp)
  subl   $0x1,0x28(%rsp)
  subl   $0x1,0x68(%rsp)
  add    %r15d,0x6c(%rsp)
  mov    %r14,0x30(%rsp)
  mov    %r9,0x38(%rsp)
  cmp    0x78(%rsp),%rax
  jne    L45
L200:
  mov    0x60(%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <free@plt>
L58:
  mov    0x68(%rsp),%eax
  mov    %rax,0x50(%rsp)
  jmp    L54
```

assistant: ```c
void hessenberg(double *A, int N) {
  int k, i, j, t, u;
  double *x, *v, *AT, *w;
  double beta;
  x = (double *)malloc(sizeof(double) * N);
  v = (double *)malloc(sizeof(double) * N);
  AT = (double *)malloc(sizeof(double) * N * N);
  w = (double *)malloc(sizeof(double) * N);
  for (k = 0; k < N - 2; ++k) {
    for (i = k + 1; i < N; ++i) {
      x[i - k - 1] = A[i * N + k];
    }
    beta = house(x, N - k - 1, v);
    for (i = k + 1; i < N; i++) {
      t = i * N;
      u = 0;
      for (j = k; j < N; j++) {
        AT[u + i - k - 1] = A[j + t];
        u += (N - k - 1);
      }
    }
    mmult(AT, v, w, N - k, N - k - 1, 1);
    scale(w, N - k, 1, beta);
    mmult(v, w, AT, N - k - 1, 1, N - k);
    for (i = k + 1; i < N; i++) {
      t = i * N;
      for (j = k; j < N; j++) {
        A[t + j] -= AT[(i - k - 1) * (N - k) + j - k];
      }
    }
    for (i = 0; i < N; i++) {
      t = i * N;
      u = i * (N - k - 1);
      for (j = k + 1; j < N; j++) {
        AT[u + j - k - 1] = A[t + j];
      }
    }
    mmult(AT, v, w, N, N - k - 1, 1);
    scale(w, N, 1, beta);
    mmult(w, v, AT, N, 1, N - k - 1);
    for (i = 0; i < N; i++) {
      t = i * N;
      u = i * (N - k - 1);
      for (j = k + 1; j < N; j++) {
        A[t + j] -= AT[u + j - k - 1];
      }
    }
  }
  free(x);
  free(v);
  free(AT);
  free(w);
}
```