user: 请将以下的汇编代码转换成C语言代码:

```asm
<getQR>:
  endbr64
  push   %r15
  mov    %edx,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %esi,%rbp
  push   %rbx
  lea    0x0(,%rbp,4),%r12d
  mov    %r9,%rbx
  sub    $0x98,%rsp
  mov    %rdi,0x58(%rsp)
  mov    %r12d,%edi
  mov    %rcx,0x60(%rsp)
  mov    %r8,0x50(%rsp)
  mov    %ebp,0x1c(%rsp)
  call   <malloc@plt>
  mov    %r12d,%edi
  movslq %r15d,%r12
  mov    %rax,0x88(%rsp)
  call   <malloc@plt>
  mov    %ebp,%edi
  imul   %r15d,%edi
  mov    %rax,0x10(%rsp)
  shl    $0x2,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  imul   %ebp,%edi
  mov    %rax,0x80(%rsp)
  shl    $0x2,%edi
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  test   %r15d,%r15d
  jle    L43
  mov    0x58(%rsp),%rcx
  lea    0x0(,%r12,4),%rsi
  xor    %edx,%edx
  pxor   %xmm1,%xmm1
  nopl   (%rax)
L150:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L28:
  movaps %xmm1,%xmm0
  cmp    %eax,%edx
  jg     L95
  movss  (%rcx,%rax,4),%xmm0
L95:
  movss  %xmm0,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L28
  add    $0x1,%edx
  add    %rsi,%rbx
  add    %rsi,%rcx
  cmp    %edx,%r15d
  jne    L150
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jle    L72
L115:
  lea    -0x1(%r15),%edi
  mov    0x50(%rsp),%rcx
  mov    0x1c(%rsp),%r10d
  xor    %edx,%edx
  movss  D3(%rip),%xmm1
  lea    0x0(,%r12,4),%rsi
  mov    %rdi,%r8
  pxor   %xmm2,%xmm2
  nopl   0x0(%rax,%rax,1)
L46:
  xor    %eax,%eax
  test   %r15d,%r15d
  jg     L4
  jmp    L149
  nopl   0x0(%rax)
L23:
  mov    %r9,%rax
L4:
  movaps %xmm1,%xmm0
  cmp    %eax,%edx
  je     L108
  movaps %xmm2,%xmm0
L108:
  movss  %xmm0,(%rcx,%rax,4)
  lea    0x1(%rax),%r9
  cmp    %rdi,%rax
  jne    L23
L149:
  add    $0x1,%edx
  add    %rsi,%rcx
  cmp    %edx,%r10d
  jne    L46
L132:
  test   %r8d,%r8d
  js     L207
L236:
  mov    0x1c(%rsp),%edi
  movslq %r8d,%rax
  mov    0x80(%rsp),%r11
  movl   $0x0,0x18(%rsp)
  sub    %rax,%rbp
  mov    %rax,(%rsp)
  sub    %r8d,%edi
  imul   %r15d,%r8d
  shl    $0x2,%rbp
  mov    %edi,0xc(%rsp)
  lea    0x0(,%rax,4),%rdi
  mov    0x10(%rsp),%rax
  mov    %rdi,0x28(%rsp)
  lea    0x4(%rdi),%r13
  mov    0x50(%rsp),%rdi
  add    $0x8,%rax
  mov    %r8d,0x40(%rsp)
  mov    %rax,0x68(%rsp)
  lea    0x4(%rdi),%rax
  mov    %rax,0x70(%rsp)
  mov    %r11,%rax
  sub    %rdi,%rax
  mov    %rax,0x78(%rsp)
  nopl   0x0(%rax)
L64:
  mov    (%rsp),%rax
  mov    0x10(%rsp),%rdi
  mov    %eax,%esi
  mov    %eax,%r12d
  movl   $0x3f800000,(%rdi)
  add    $0x1,%eax
  cmp    %eax,0x1c(%rsp)
  jle    L163
  mov    0x40(%rsp),%eax
  mov    0x58(%rsp),%rdi
  add    %r15d,%eax
  cltq
  add    (%rsp),%rax
  lea    (%rdi,%rax,4),%rdx
  mov    0xc(%rsp),%edi
  mov    0x10(%rsp),%rax
  lea    -0x2(%rdi),%ecx
  mov    0x68(%rsp),%rdi
  add    $0x4,%rax
  lea    (%rdi,%rcx,4),%rcx
  nopl   0x0(%rax)
L168:
  movss  (%rdx),%xmm0
  add    $0x4,%rax
  add    %r13,%rdx
  movss  %xmm0,-0x4(%rax)
  cmp    %rcx,%rax
  jne    L168
L163:
  mov    (%rsp),%rax
  mov    %r15d,%r10d
  sub    %esi,%r10d
  mov    %eax,%r14d
  cmp    %eax,0x1c(%rsp)
  jle    L188
  movslq 0x40(%rsp),%rax
  mov    0x18(%rsp),%edi
  mov    0x70(%rsp),%rsi
  mov    %rax,0x30(%rsp)
  add    %rdi,%rax
  add    (%rsp),%rax
  not    %rdi
  lea    (%rsi,%rax,4),%rbx
  mov    0xc(%rsp),%eax
  xor    %esi,%esi
  shl    $0x2,%rdi
  mov    %rbx,%rcx
  lea    -0x1(%rax),%r8d
  cs nopw 0x0(%rax,%rax,1)
L8:
  lea    (%rdi,%rcx,1),%rax
  lea    (%r11,%rsi,4),%rdx
  cmp    %r14d,%r15d
  jle    L96
  nopl   (%rax)
L128:
  movss  (%rax),%xmm0
  add    $0x4,%rax
  movss  %xmm0,(%rdx)
  add    %rbp,%rdx
  cmp    %rcx,%rax
  jne    L128
L96:
  lea    0x1(%rsi),%rax
  add    %r13,%rcx
  cmp    %r8,%rsi
  je     L210
  mov    %rax,%rsi
  jmp    L8
  nopl   (%rax)
L210:
  mov    0xc(%rsp),%r8d
  mov    0x20(%rsp),%rdx
  mov    %r10d,%ecx
  mov    %r11,%rdi
  mov    0x10(%rsp),%rsi
  mov    $0x1,%r9d
  mov    %r10d,0x38(%rsp)
  mov    %r11,0x48(%rsp)
  call   <mmult@plt>
  mov    0x60(%rsp),%r9
  mov    0x28(%rsp),%rax
  mov    $0x1,%edx
  mov    0x38(%rsp),%esi
  mov    0x20(%rsp),%rdi
  movss  (%r9,%rax,1),%xmm0
  call   <scale@plt>
  mov    0x38(%rsp),%r10d
  mov    0x48(%rsp),%r11
  mov    $0x1,%r8d
  mov    0xc(%rsp),%ecx
  mov    0x20(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  mov    %r10d,%r9d
  mov    %r11,%rdx
  mov    %r10d,0x44(%rsp)
  mov    %r11,0x38(%rsp)
  call   <mmult@plt>
  mov    0x38(%rsp),%r11
  mov    0x30(%rsp),%rcx
  xor    %esi,%esi
  mov    0x28(%rsp),%rax
  mov    0x50(%rsp),%r8
  mov    0x78(%rsp),%rdi
  mov    %r11,0x30(%rsp)
  shl    $0x2,%rcx
  mov    0x44(%rsp),%r10d
  mov    0x1c(%rsp),%r11d
  add    %rax,%r8
  sub    %rax,%rdi
  nopl   0x0(%rax)
L203:
  cmp    %r14d,%r15d
  jle    L177
  mov    %rdi,%rdx
  movslq %esi,%r9
  lea    (%r8,%rcx,1),%rax
  sub    %rcx,%rdx
  lea    (%rdx,%r9,4),%rdx
  cs nopw 0x0(%rax,%rax,1)
L11:
  movss  (%rax),%xmm0
  subss  (%rax,%rdx,1),%xmm0
  add    $0x4,%rax
  movss  %xmm0,-0x4(%rax)
  cmp    %rax,%rbx
  jne    L11
L177:
  add    $0x1,%r12d
  add    %r10d,%esi
  add    %r13,%rcx
  add    %r13,%rbx
  cmp    %r12d,%r11d
  jne    L203
L79:
  addl   $0x1,0x18(%rsp)
  mov    0x18(%rsp),%eax
  add    $0x4,%rbp
  subq   $0x1,(%rsp)
  mov    0x30(%rsp),%r11
  addl   $0x1,0xc(%rsp)
  sub    %r15d,0x40(%rsp)
  subq   $0x4,0x28(%rsp)
  cmp    %r15d,%eax
  jne    L64
L207:
  mov    0x88(%rsp),%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x80(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
L188:
  mov    0x20(%rsp),%rbx
  mov    0xc(%rsp),%r12d
  mov    %r10d,%ecx
  mov    %r11,%rdi
  mov    0x10(%rsp),%r14
  mov    $0x1,%r9d
  mov    %r11,0x38(%rsp)
  mov    %r12d,%r8d
  mov    %rbx,%rdx
  mov    %r10d,0x30(%rsp)
  mov    %r14,%rsi
  call   <mmult@plt>
  mov    0x28(%rsp),%rdi
  mov    0x60(%rsp),%rax
  mov    $0x1,%edx
  mov    0x30(%rsp),%esi
  movss  (%rax,%rdi,1),%xmm0
  mov    %rbx,%rdi
  call   <scale@plt>
  mov    0x38(%rsp),%r11
  mov    %r12d,%ecx
  mov    %rbx,%rsi
  mov    0x30(%rsp),%r9d
  mov    $0x1,%r8d
  mov    %r14,%rdi
  mov    %r11,%rdx
  mov    %r11,0x30(%rsp)
  call   <mmult@plt>
  jmp    L79
L43:
  mov    0x1c(%rsp),%edx
  lea    -0x1(%r15),%r8d
  test   %edx,%edx
  jg     L115
  jmp    L132
L72:
  lea    -0x1(%r15),%r8d
  jmp    L236
```

tool_calls: name: read_data
arguments: data_label: D3
data_type: f32

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