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

```asm
<getQR>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%r14
  mov    %rdi,0x60(%rsp)
  mov    %esi,%r15d
  mov    %edx,%ebp
  mov    %rcx,0x50(%rsp)
  mov    %r8,0x38(%rsp)
  mov    %r9,%rbx
  movslq %esi,%r13
  lea    0x0(,%rsi,4),%r12d
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %rax,0x78(%rsp)
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %rax,0x18(%rsp)
  mov    %r15d,%eax
  imul   %ebp,%eax
  mov    %eax,%edi
  shl    $0x2,%edi
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  mov    %r15d,%eax
  imul   %r15d,%eax
  mov    %eax,%edi
  shl    $0x2,%edi
  call   <malloc@plt>
  mov    %rax,0x28(%rsp)
  test   %ebp,%ebp
  jle    L217
  mov    $0x0,%edi
  mov    $0x0,%esi
  mov    $0x0,%r8d
  mov    %r14,%r9
  jmp    L87
L169:
  movslq %edx,%rcx
  movss  (%r9,%rcx,4),%xmm0
  movss  %xmm0,(%rbx,%rcx,4)
L1:
  lea    0x1(%rax),%ecx
  add    $0x1,%edx
  cmp    %ecx,%ebp
  je     L96
  mov    %ecx,%eax
L4:
  cmp    %eax,%esi
  jle    L169
  movslq %edx,%rcx
  movl   $0x0,(%rbx,%rcx,4)
  jmp    L1
L96:
  lea    0x1(%rsi),%edx
  add    %ebp,%edi
  cmp    %eax,%esi
  je     L127
  mov    %edx,%esi
L87:
  mov    %edi,%edx
  mov    %r8d,%eax
  jmp    L4
L217:
  test   %r15d,%r15d
  jg     L300
L90:
  mov    %ebp,%r14d
  sub    $0x1,%r14d
  js     L262
L51:
  movslq %r14d,%rax
  mov    %rax,0x30(%rsp)
  mov    %r14d,%edi
  imul   %ebp,%edi
  mov    %edi,0x40(%rsp)
  mov    %r15d,%edi
  sub    %r14d,%edi
  mov    %edi,0x10(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x8(%rsp)
  lea    0x4(%rax),%rdi
  lea    0x0(,%r13,4),%rax
  mov    %rax,0x58(%rsp)
  movl   $0x0,0x44(%rsp)
  mov    0x18(%rsp),%rax
  add    $0x8,%rax
  mov    %rax,0x68(%rsp)
  mov    0x20(%rsp),%rax
  sub    0x38(%rsp),%rax
  mov    %rax,0x70(%rsp)
  mov    %rdi,%r13
  jmp    L148
L43:
  movslq %edx,%rcx
  movss  %xmm0,(%r8,%rcx,4)
L52:
  add    $0x1,%eax
  add    $0x1,%edx
  cmp    %eax,%ebp
  je     L162
L282:
  cmp    %eax,%esi
  je     L43
  movslq %edx,%rcx
  movl   $0x0,(%r8,%rcx,4)
  jmp    L52
L162:
  add    $0x1,%esi
  add    %ebp,%edi
  cmp    %esi,%r15d
  je     L90
L27:
  test   %ebp,%ebp
  jle    L162
  mov    %edi,%edx
  mov    $0x0,%eax
  jmp    L282
L278:
  mov    %eax,%r12d
L78:
  cmp    %r14d,%ebp
  jle    L38
  lea    (%r9,%rcx,1),%rax
  mov    %rdi,%rdx
L98:
  movss  (%rax),%xmm0
  movss  %xmm0,(%rdx)
  add    $0x4,%rax
  add    %rsi,%rdx
  cmp    %rcx,%rax
  jne    L98
L38:
  lea    0x1(%r12),%eax
  add    $0x4,%rdi
  add    %r13,%rcx
  cmp    %eax,%r15d
  jne    L278
  mov    %ebp,%eax
  sub    %r8d,%eax
  mov    $0x1,%r9d
  mov    0x10(%rsp),%r8d
  mov    %eax,0x14(%rsp)
  mov    %eax,%ecx
  mov    0x28(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  call   <mmult@plt>
  mov    0x50(%rsp),%r10
  mov    0x8(%rsp),%r11
  movss  (%r10,%r11,1),%xmm0
  mov    $0x1,%edx
  mov    0x14(%rsp),%esi
  mov    0x28(%rsp),%rdi
  call   <scale@plt>
  mov    0x14(%rsp),%r9d
  mov    $0x1,%r8d
  mov    0x10(%rsp),%ecx
  mov    0x20(%rsp),%rdx
  mov    0x28(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  call   <mmult@plt>
  mov    0x48(%rsp),%rcx
  shl    $0x2,%rcx
  mov    %r14d,%edi
  mov    $0x0,%esi
  mov    0x38(%rsp),%rdx
  mov    0x8(%rsp),%rax
  add    %rax,%rdx
  mov    %rdx,%r9
  mov    0x70(%rsp),%r8
  sub    %rax,%r8
  mov    0x14(%rsp),%r10d
  jmp    L72
L141:
  mov    %eax,%edi
L72:
  cmp    %r14d,%ebp
  jle    L0
  lea    (%r9,%rcx,1),%rax
  mov    %r8,%rdx
  sub    %rcx,%rdx
  movslq %esi,%r11
  lea    (%rdx,%r11,4),%rdx
L145:
  movss  (%rax),%xmm0
  subss  (%rdx,%rax,1),%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L145
L0:
  lea    0x1(%rdi),%eax
  add    %r10d,%esi
  add    %r13,%rcx
  add    %r13,%rbx
  cmp    %edi,%r12d
  jne    L141
L53:
  sub    $0x1,%r14d
  addl   $0x1,0x44(%rsp)
  subq   $0x1,0x30(%rsp)
  sub    %ebp,0x40(%rsp)
  addl   $0x1,0x10(%rsp)
  subq   $0x4,0x8(%rsp)
  cmp    $0xffffffff,%r14d
  je     L262
L148:
  mov    0x18(%rsp),%rdi
  movl   $0x3f800000,(%rdi)
  mov    %r14d,%r8d
  lea    0x1(%r14),%eax
  cmp    %eax,%r15d
  jle    L204
  mov    0x40(%rsp),%eax
  add    %ebp,%eax
  cltq
  add    0x30(%rsp),%rax
  mov    0x60(%rsp),%rbx
  lea    (%rbx,%rax,4),%rdx
  lea    0x4(%rdi),%rax
  mov    0x10(%rsp),%edi
  lea    -0x2(%rdi),%ecx
  mov    0x68(%rsp),%rdi
  lea    (%rdi,%rcx,4),%rcx
L228:
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  add    %r13,%rdx
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L228
L204:
  cmp    %r14d,%r15d
  jle    L227
  movslq 0x40(%rsp),%rax
  mov    %rax,0x48(%rsp)
  mov    0x44(%rsp),%r9d
  add    %r9,%rax
  add    0x30(%rsp),%rax
  mov    0x38(%rsp),%rdi
  lea    0x4(%rdi,%rax,4),%rbx
  mov    0x58(%rsp),%rsi
  sub    0x8(%rsp),%rsi
  mov    %rbx,%rcx
  mov    0x20(%rsp),%rdi
  mov    %r14d,%r12d
  not    %r9
  shl    $0x2,%r9
  jmp    L78
L262:
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L227:
  mov    %ebp,%ebx
  sub    %r8d,%ebx
  mov    $0x1,%r9d
  mov    0x10(%rsp),%r8d
  mov    %ebx,%ecx
  mov    0x28(%rsp),%r12
  mov    %r12,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  call   <mmult@plt>
  mov    0x50(%rsp),%rax
  mov    0x8(%rsp),%r11
  movss  (%rax,%r11,1),%xmm0
  mov    $0x1,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <scale@plt>
  mov    %ebx,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rsp),%ecx
  mov    0x20(%rsp),%rdx
  mov    %r12,%rsi
  mov    0x18(%rsp),%rdi
  call   <mmult@plt>
  jmp    L53
L318:
  lea    -0x1(%rbp),%r14d
  jmp    L51
L127:
  test   %r15d,%r15d
  jle    L318
L300:
  mov    $0x0,%edi
  mov    $0x0,%esi
  movss  D5(%rip),%xmm0
  mov    0x38(%rsp),%r8
  jmp    L27
```

tool_calls: name: disassemble_data
arguments: data_label: D5
data_type: f32

tool: D5: 1

assistant: ```c
void getQR(float *A, int M, int N, float *bvec, float *Q, float *R) {
  int i, j, k, t, u;
  float *x, *v, *AT, *w;
  x = (float *)malloc(sizeof(float) * M);
  v = (float *)malloc(sizeof(float) * M);
  AT = (float *)malloc(sizeof(float) * M * N);
  w = (float *)malloc(sizeof(float) * M * M);
  for (i = 0; i < N; ++i) {
    t = i * N;
    for (j = 0; j < N; ++j) {
      if (i > j) {
        R[t + j] = 0.;
      } else {
        R[t + j] = A[t + j];
      }
    }
  }
  for (i = 0; i < M; ++i) {
    t = i * N;
    for (j = 0; j < N; ++j) {
      if (i == j) {
        Q[t + j] = 1.;
      } else {
        Q[t + j] = 0.;
      }
    }
  }
  for (j = N - 1; j >= 0; --j) {
    v[0] = 1.;
    for (i = j + 1; i < M; ++i) {
      v[i - j] = A[i * N + j];
    }
    for (i = j; i < M; i++) {
      t = i * N;
      u = 0;
      for (k = j; k < N; k++) {
        AT[u + i - j] = Q[k + t];
        u += (M - j);
      }
    }
    mmult(AT, v, w, N - j, M - j, 1);
    scale(w, N - j, 1, bvec[j]);
    mmult(v, w, AT, M - j, 1, N - j);
    for (i = j; i < M; i++) {
      t = i * N;
      for (k = j; k < N; k++) {
        Q[t + k] -= AT[(i - j) * (N - j) + k - j];
      }
    }
  }
  free(x);
  free(v);
  free(AT);
  free(w);
}
```