user: 请从给定的汇编指令推导出C源代码：

```asm
<hessenberg>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%r14
  mov    %rdi,0x68(%rsp)
  mov    %esi,%r15d
  movslq %esi,%rbx
  lea    0x0(,%rsi,8),%ebp
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %rax,%r12
  mov    %rax,0x58(%rsp)
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  mov    %r15d,%edi
  imul   %r15d,%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %rax,0x8(%rsp)
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %rax,0x10(%rsp)
  cmp    $0x2,%r15d
  jle    L25
  lea    -0x1(%r15),%eax
  mov    %eax,0x48(%rsp)
  lea    -0x2(%r15),%eax
  mov    %eax,0x4c(%rsp)
  lea    0x0(,%rbx,8),%rax
  mov    %rax,(%rsp)
  mov    %r14,0x30(%rsp)
  mov    %r15d,0x70(%rsp)
  movq   $0x1,0x40(%rsp)
  movq   $0x0,0x60(%rsp)
  movq   $0x0,0x28(%rsp)
  lea    0x8(%r12),%rax
  mov    %rax,0x78(%rsp)
  lea    0x8(%r14),%rax
  mov    %rax,0x80(%rsp)
  sub    %r14,%r13
  mov    %r13,0x88(%rsp)
  jmp    L132
L210:
  mov    %ebp,%r13d
L62:
  cmp    %r9d,%r15d
  jle    L187
  lea    (%r8,%rcx,1),%rax
  mov    %rdi,%rdx
L60:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  add    %rsi,%rdx
  cmp    %rcx,%rax
  jne    L60
L187:
  lea    0x1(%r13),%ebp
  add    $0x8,%rdi
  add    (%rsp),%rcx
  cmp    %ebp,%r15d
  jne    L210
  mov    $0x1,%r9d
  mov    0x1c(%rsp),%r8d
  mov    0x18(%rsp),%ecx
  mov    0x10(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  mov    0x8(%rsp),%rdi
  call   <mmult@plt>
  movsd  0x38(%rsp),%xmm0
  mov    $0x1,%edx
  mov    0x18(%rsp),%esi
  mov    0x10(%rsp),%rdi
  call   <scale@plt>
  mov    0x18(%rsp),%r9d
  mov    $0x1,%r8d
  mov    0x1c(%rsp),%ecx
  mov    0x8(%rsp),%rdx
  mov    0x10(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  call   <mmult@plt>
  mov    0x50(%rsp),%rcx
  shl    $0x3,%rcx
  mov    $0x0,%esi
  mov    0x88(%rsp),%r8
  sub    0x60(%rsp),%r8
  mov    (%rsp),%r9
  mov    0x30(%rsp),%r11
  mov    0x74(%rsp),%r10d
  jmp    L129
L143:
  mov    %eax,%r12d
L129:
  cmp    %r10d,%ebp
  jle    L99
  lea    (%rcx,%r11,1),%rax
  mov    %r8,%rdx
  sub    %rcx,%rdx
  movslq %esi,%rdi
  lea    (%rdx,%rdi,8),%rdx
L202:
  movsd  (%rax),%xmm0
  subsd  (%rax,%rdx,1),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L202
L99:
  lea    0x1(%r12),%eax
  add    0x18(%rsp),%esi
  add    %r9,%rcx
  add    %r9,%rbx
  cmp    %r12d,%r13d
  jne    L143
L72:
  test   %r15d,%r15d
  jle    L176
  movslq 0x1c(%rsp),%r12
  lea    0x0(,%r12,8),%rdi
  mov    0x40(%rsp),%rax
  sub    0x28(%rsp),%rax
  mov    0x8(%rsp),%rbx
  lea    -0x8(%rbx,%rax,8),%rsi
  mov    %r12,%rax
  neg    %rax
  mov    (%rsp),%rcx
  lea    (%rcx,%rax,8),%r8
  mov    0x30(%rsp),%rcx
  sub    %rbx,%rcx
  mov    0x4c(%rsp),%r13d
  lea    0x8(%rbx,%r13,8),%rdx
  mov    $0x0,%ebp
  jmp    L150
L59:
  mov    %ebx,%ebp
L150:
  cmp    %r14d,%r15d
  jle    L214
  mov    %rsi,%rax
L37:
  movsd  0x8(%rcx,%rax,1),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L37
L214:
  lea    0x1(%rbp),%ebx
  add    %rdi,%rsi
  add    %r8,%rcx
  add    %rdi,%rdx
  cmp    %ebx,%r15d
  jne    L59
  mov    $0x1,%r9d
  mov    0x1c(%rsp),%r8d
  mov    %ebx,%ecx
  mov    0x10(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  mov    0x8(%rsp),%rdi
  call   <mmult@plt>
  movsd  0x38(%rsp),%xmm0
  mov    $0x1,%edx
  mov    %ebx,%esi
  mov    0x10(%rsp),%rdi
  call   <scale@plt>
  mov    0x1c(%rsp),%r9d
  mov    $0x1,%r8d
  mov    %ebx,%ecx
  mov    0x8(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  call   <mmult@plt>
  mov    0x30(%rsp),%rsi
  lea    0x8(%rsi),%rdi
  movslq %ebx,%rax
  sub    %rax,%r12
  lea    0x0(,%r12,8),%r8
  mov    0x8(%rsp),%rcx
  sub    %rsi,%rcx
  add    0x28(%rsp),%r13
  mov    0x68(%rsp),%rax
  lea    0x10(%rax,%r13,8),%rdx
  mov    $0x0,%esi
  mov    (%rsp),%r9
  jmp    L226
L196:
  mov    %eax,%esi
L226:
  cmp    %r14d,%ebx
  jle    L5
  mov    %rdi,%rax
L217:
  movsd  (%rax),%xmm0
  subsd  -0x8(%rax,%rcx,1),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L217
L5:
  lea    0x1(%rsi),%eax
  add    %r9,%rdi
  add    %r8,%rcx
  add    %r9,%rdx
  cmp    %esi,%ebp
  jne    L196
L198:
  addq   $0x1,0x28(%rsp)
  subl   $0x1,0x48(%rsp)
  mov    0x48(%rsp),%eax
  add    %r15d,0x70(%rsp)
  subl   $0x1,0x4c(%rsp)
  addq   $0x8,0x60(%rsp)
  addq   $0x8,0x30(%rsp)
  addq   $0x1,0x40(%rsp)
  cmp    $0x1,%eax
  je     L25
L132:
  mov    0x40(%rsp),%rax
  mov    %eax,%r12d
  mov    %eax,%r14d
  cmp    %eax,%r15d
  jle    L125
  movslq 0x70(%rsp),%rax
  mov    %rax,0x50(%rsp)
  add    0x28(%rsp),%rax
  mov    0x68(%rsp),%rdi
  lea    (%rdi,%rax,8),%rdx
  mov    0x58(%rsp),%rax
  mov    0x4c(%rsp),%ecx
  mov    0x78(%rsp),%rdi
  lea    (%rdi,%rcx,8),%rcx
L170:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  add    (%rsp),%rdx
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L170
  mov    0x48(%rsp),%ebx
  lea    0x1(%rbx),%eax
  mov    %eax,0x18(%rsp)
  mov    %ebx,0x1c(%rsp)
  mov    0x20(%rsp),%rdx
  mov    %ebx,%esi
  mov    0x58(%rsp),%rdi
  call   <house@plt>
  movsd  %xmm0,0x38(%rsp)
  mov    %ebx,%edi
  mov    %ebx,%r8d
  mov    0x50(%rsp),%rax
  add    %r8,%rax
  mov    0x28(%rsp),%r9
  add    %r9,%rax
  mov    0x80(%rsp),%rbx
  lea    (%rbx,%rax,8),%rbx
  movslq %edi,%rsi
  shl    $0x3,%rsi
  mov    %rbx,%rcx
  mov    0x8(%rsp),%rdi
  mov    %r12d,%r13d
  mov    %r9d,0x74(%rsp)
  not    %r8
  shl    $0x3,%r8
  jmp    L62
L25:
  mov    0x58(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L176:
  mov    $0x1,%r9d
  mov    0x1c(%rsp),%r13d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x10(%rsp),%rbx
  mov    %rbx,%rdx
  mov    0x20(%rsp),%rbp
  mov    %rbp,%rsi
  mov    0x8(%rsp),%r14
  mov    %r14,%rdi
  call   <mmult@plt>
  movsd  0x38(%rsp),%xmm0
  mov    $0x1,%edx
  mov    %r15d,%esi
  mov    %rbx,%rdi
  call   <scale@plt>
  mov    %r13d,%r9d
  mov    $0x1,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <mmult@plt>
  jmp    L198
L125:
  mov    0x48(%rsp),%ebp
  lea    0x1(%rbp),%ebx
  mov    %ebp,0x1c(%rsp)
  mov    0x20(%rsp),%r12
  mov    %r12,%rdx
  mov    %ebp,%esi
  mov    0x58(%rsp),%rdi
  call   <house@plt>
  movsd  %xmm0,0x38(%rsp)
  mov    $0x1,%r9d
  mov    %ebp,%r8d
  mov    %ebx,%ecx
  mov    0x10(%rsp),%r13
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    0x8(%rsp),%rdi
  call   <mmult@plt>
  movsd  0x38(%rsp),%xmm0
  mov    $0x1,%edx
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <scale@plt>
  mov    %ebx,%r9d
  mov    $0x1,%r8d
  mov    %ebp,%ecx
  mov    0x8(%rsp),%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <mmult@plt>
  jmp    L72
```

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);
}
```