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

```asm
<MRDWT>:
  endbr64
  push   %r15
  mov    %edx,%r15d
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0xf8,%rsp
  cmp    %esi,%edx
  cmovge %edx,%ebp
  mov    %esi,0xa4(%rsp)
  xor    %eax,%eax
  mov    $0x8,%esi
  mov    %r8d,(%rsp)
  lea    -0x1(%rbp,%r8,1),%r13d
  mov    %edx,0x68(%rsp)
  mov    %r13d,%edi
  mov    %r9d,0xe0(%rsp)
  call   <mxCalloc@plt>
  mov    $0x8,%esi
  mov    %r13d,%edi
  cltq
  mov    %rax,0x70(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  cltq
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  cltq
  mov    %rax,0x60(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  cltq
  mov    %rax,0x80(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  cltq
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  mov    (%rsp),%edi
  mov    $0x8,%esi
  cltq
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  mov    (%rsp),%edi
  mov    $0x8,%esi
  cltq
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <mxCalloc@plt>
  cmp    $0x1,%r15d
  mov    (%rsp),%r8d
  cltq
  mov    %rax,0x20(%rsp)
  je     L125
  lea    (%r14,%r14,1),%eax
  mov    %r14d,0x68(%rsp)
  mov    %eax,0xc8(%rsp)
  mov    %r15d,%eax
  imul   %r14d,%r15d
  mov    %eax,0xa4(%rsp)
  mov    %r15d,0xd0(%rsp)
L22:
  test   %r8d,%r8d
  jle    L40
  mov    0x28(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  movslq %r8d,%rax
  lea    0x0(,%rax,8),%rdx
  lea    (%r12,%rdx,1),%rsi
  lea    (%rdx,%rcx,1),%r9
  sub    %rcx,%r12
  mov    %rcx,%rdx
  sub    %rcx,%rdi
L124:
  movsd  -0x8(%rsi),%xmm0
  mov    0x20(%rsp),%rcx
  sub    $0x8,%rsi
  movsd  %xmm0,(%rdx)
  movsd  (%r12,%rdx,1),%xmm0
  movsd  %xmm0,(%rdi,%rdx,1)
  add    $0x8,%rdx
  cmp    %r9,%rdx
  jne    L124
  sub    $0x1,%rax
  movq   D7(%rip),%xmm1
  shr    %rax
  add    $0x1,%rax
  shl    $0x4,%rax
  add    %rcx,%rax
L33:
  movsd  (%rcx),%xmm0
  add    $0x10,%rcx
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rcx)
  cmp    %rax,%rcx
  jne    L33
L40:
  mov    0xa4(%rsp),%eax
  movslq 0xd0(%rsp),%rdx
  add    %eax,%eax
  mov    %eax,0xc4(%rsp)
  xor    %eax,%eax
  test   %rdx,%rdx
  jle    L144
L58:
  movsd  (%rbx,%rax,8),%xmm0
  mov    0x130(%rsp),%rsi
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L58
L144:
  mov    0xe0(%rsp),%eax
  test   %eax,%eax
  jle    L210
  mov    0xa4(%rsp),%eax
  mov    0x38(%rsp),%r11
  movl   $0x0,0xdc(%rsp)
  movl   $0x0,0xd8(%rsp)
  sub    0x60(%rsp),%r11
  movl   $0x1,0x9c(%rsp)
  lea    (%rax,%rax,2),%eax
  mov    %eax,0xe4(%rsp)
  movslq 0x68(%rsp),%rax
  movl   $0x1,0xcc(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x40(%rsp)
  mov    0xc4(%rsp),%eax
  mov    %eax,0xd4(%rsp)
  mov    0x88(%rsp),%rax
  sub    0x70(%rsp),%rax
  mov    %rax,0xe8(%rsp)
L158:
  mov    0xc8(%rsp),%esi
  mov    %esi,%eax
  mov    %esi,0x98(%rsp)
  shr    $0x1f,%eax
  add    %esi,%eax
  mov    0xd4(%rsp),%esi
  sar    %eax
  mov    %eax,0x6c(%rsp)
  mov    %eax,0xc8(%rsp)
  mov    %esi,%eax
  shr    $0x1f,%eax
  mov    %esi,0x48(%rsp)
  add    %esi,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    %eax,0x50(%rsp)
  mov    %eax,0xd4(%rsp)
  mov    0xa4(%rsp),%eax
  cltd
  idiv   %ecx
  cmpl   $0x1,0x68(%rsp)
  mov    %eax,0xa0(%rsp)
  je     L211
  mov    0xd8(%rsp),%eax
  mov    0xc4(%rsp),%ecx
  mov    %eax,0xa8(%rsp)
  add    %eax,%ecx
  mov    0x68(%rsp),%eax
  mov    %ecx,0xb0(%rsp)
  test   %eax,%eax
  jle    L150
L142:
  mov    0x68(%rsp),%esi
  mov    0xa8(%rsp),%eax
  mov    %r11,%r15
  movq   $0x0,0x30(%rsp)
  mov    0x138(%rsp),%rcx
  movslq 0x50(%rsp),%r13
  imul   %esi,%eax
  mov    0x70(%rsp),%rdi
  mov    0x60(%rsp),%r9
  shl    $0x3,%r13
  lea    (%rdi,%r13,1),%r14
  add    %r9,%r13
  cltq
  lea    (%rcx,%rax,8),%rax
  mov    0xa0(%rsp),%ecx
  mov    %rax,0x90(%rsp)
  mov    0x9c(%rsp),%eax
  mov    %eax,%ebx
  sub    %eax,%ecx
  imul   %esi,%ebx
  mov    %ecx,0x58(%rsp)
  movslq %ebx,%rbx
  shl    $0x3,%rbx
  nop
L161:
  mov    0xa0(%rsp),%eax
  test   %eax,%eax
  jle    L44
  mov    0x9c(%rsp),%r10d
  mov    0x30(%rsp),%rcx
  xor    %r11d,%r11d
  mov    0x130(%rsp),%rax
  mov    0x90(%rsp),%rbp
  neg    %r10d
  lea    (%rax,%rcx,8),%r12
  cs nopw 0x0(%rax,%rax,1)
L285:
  cmpl   $0x1,0x48(%rsp)
  jle    L64
  mov    0x130(%rsp),%rsi
  movslq %r11d,%rax
  add    0x30(%rsp),%rax
  lea    (%rsi,%rax,8),%rdx
  mov    %rdi,%rax
  nopw   0x0(%rax,%rax,1)
L218:
  movsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    %rbx,%rdx
  movsd  %xmm0,-0x8(%rax)
  cmp    %r14,%rax
  jne    L218
  mov    %r11d,0x1c(%rsp)
  sub    $0x8,%rsp
  xor    %eax,%eax
  mov    %r10d,0x18(%rsp)
  push   0x40(%rsp)
  mov    0x38(%rsp),%rdx
  mov    0x30(%rsp),%rcx
  mov    0x60(%rsp),%esi
  mov    %r9,0x18(%rsp)
  mov    %r8d,0x28(%rsp)
  mov    %rdi,0x10(%rsp)
  call   <fpconv@plt>
  pop    %rcx
  pop    %rsi
  xor    %edx,%edx
  mov    0x8(%rsp),%r9
  mov    0x10(%rsp),%r10d
  mov    0x1c(%rsp),%r11d
  mov    0x18(%rsp),%r8d
  mov    (%rsp),%rdi
  mov    %r9,%rax
  nopw   0x0(%rax,%rax,1)
L220:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%r12,%rdx,1)
  movsd  (%r15,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,0x0(%rbp,%rdx,1)
  add    %rbx,%rdx
  cmp    %r13,%rax
  jne    L220
L126:
  mov    0x40(%rsp),%rax
  add    $0x1,%r10d
  add    0x68(%rsp),%r11d
  add    %rax,%r12
  add    %rax,%rbp
  cmp    0x58(%rsp),%r10d
  jne    L285
L44:
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  addq   $0x8,0x90(%rsp)
  cmp    %eax,0x68(%rsp)
  jg     L161
  mov    %r15,%r11
L150:
  cmpl   $0x1,0x68(%rsp)
  jg     L141
L181:
  addl   $0x1,0xcc(%rsp)
  mov    0xe4(%rsp),%ecx
  mov    0xd0(%rsp),%esi
  add    %ecx,0xd8(%rsp)
  add    %esi,0xdc(%rsp)
  mov    0xcc(%rsp),%eax
  shll   0x9c(%rsp)
  cmp    %eax,0xe0(%rsp)
  jge    L158
L210:
  add    $0xf8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L64:
  mov    %r11d,0x1c(%rsp)
  sub    $0x8,%rsp
  xor    %eax,%eax
  mov    %r10d,0x18(%rsp)
  push   0x40(%rsp)
  mov    0x30(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  mov    0x60(%rsp),%esi
  mov    %r9,0x18(%rsp)
  mov    %r8d,0x28(%rsp)
  mov    %rdi,0x10(%rsp)
  call   <fpconv@plt>
  pop    %rax
  pop    %rdx
  mov    (%rsp),%rdi
  mov    0x18(%rsp),%r8d
  mov    0x8(%rsp),%r9
  mov    0x10(%rsp),%r10d
  mov    0x1c(%rsp),%r11d
  jmp    L126
L141:
  mov    0x68(%rsp),%eax
  mov    0x6c(%rsp),%edi
  mov    0xa4(%rsp),%ebx
  cltd
  idiv   %edi
  mov    %eax,0xb4(%rsp)
  test   %ebx,%ebx
  jle    L181
  mov    0x68(%rsp),%ecx
  mov    0xa8(%rsp),%esi
  movl   $0x0,0xa0(%rsp)
  movl   $0x0,0x90(%rsp)
  mov    0xe8(%rsp),%r10
  mov    %ecx,%eax
  imul   %esi,%eax
  add    %ebx,%esi
  imul   %ecx,%esi
  mov    %eax,0xa8(%rsp)
  movslq %edi,%rax
  mov    %esi,0xac(%rsp)
  mov    0xb0(%rsp),%esi
  shl    $0x3,%rax
  imul   %ecx,%esi
  movslq 0x9c(%rsp),%rcx
  mov    %rcx,0xb8(%rsp)
  lea    0x0(,%rcx,8),%r14
  mov    %esi,0xb0(%rsp)
  mov    %rcx,%rsi
  mov    0x70(%rsp),%rcx
  lea    (%rax,%rcx,1),%r13
  mov    0x60(%rsp),%rcx
  add    %rax,%rcx
  mov    0xb4(%rsp),%eax
  mov    %rcx,0x58(%rsp)
  mov    %esi,%ecx
  neg    %ecx
  sub    %esi,%eax
  mov    %ecx,0xc0(%rsp)
  mov    %eax,0x1c(%rsp)
L216:
  mov    0xb4(%rsp),%eax
  test   %eax,%eax
  jle    L137
  movslq 0xc0(%rsp),%rax
  movslq 0xa0(%rsp),%rdx
  mov    0x130(%rsp),%rsi
  movslq 0xa8(%rsp),%rcx
  mov    %eax,(%rsp)
  add    0xb8(%rsp),%rax
  add    %rax,%rdx
  add    %rcx,%rax
  movslq 0xb0(%rsp),%r12
  mov    %rcx,0x30(%rsp)
  lea    (%rsi,%rdx,8),%rbp
  mov    0x138(%rsp),%rsi
  mov    0x80(%rsp),%r15
  sub    0x60(%rsp),%r15
  lea    (%rsi,%rax,8),%rbx
  movslq 0xac(%rsp),%rsi
  mov    %rsi,%rax
  mov    %rsi,0x48(%rsp)
  sub    %rsi,%r12
  sub    %rcx,%rax
  shl    $0x3,%rax
  mov    %rax,0x50(%rsp)
  nopl   0x0(%rax)
L19:
  cmpl   $0x1,0x98(%rsp)
  jle    L178
  mov    0x70(%rsp),%rax
  xor    %edx,%edx
  nopl   (%rax)
L30:
  movsd  0x0(%rbp,%rdx,1),%xmm0
  movsd  %xmm0,(%rax)
  movsd  (%rbx,%rdx,1),%xmm0
  add    %r14,%rdx
  movsd  %xmm0,(%r10,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%r13
  jne    L30
  mov    %r10,0x10(%rsp)
  sub    $0x8,%rsp
  xor    %eax,%eax
  mov    %r11,0x10(%rsp)
  push   0x88(%rsp)
  mov    0x70(%rsp),%r9
  mov    0x30(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  mov    0x7c(%rsp),%esi
  mov    0x80(%rsp),%rdi
  mov    %r8d,0x28(%rsp)
  call   <fpconv@plt>
  pop    %rdi
  push   0x40(%rsp)
  xor    %eax,%eax
  mov    0x30(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  mov    0x7c(%rsp),%esi
  mov    0x98(%rsp),%rdi
  mov    0x88(%rsp),%r9
  mov    0x28(%rsp),%r8d
  call   <fpconv@plt>
  mov    0x60(%rsp),%rax
  pop    %r8
  mov    %rbp,%rcx
  pop    %r9
  mov    0x60(%rsp),%r8
  mov    0x78(%rsp),%rsi
  lea    (%rbx,%rax,1),%rdx
  mov    0x58(%rsp),%r9
  mov    %r8,%rax
  mov    0x8(%rsp),%r11
  mov    0x10(%rsp),%r10
  sub    %r8,%rsi
  mov    0x18(%rsp),%r8d
  mov    0x30(%rsp),%rdi
  sub    0x48(%rsp),%rdi
  nopw   0x0(%rax,%rax,1)
L154:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rcx)
  movsd  (%r15,%rax,1),%xmm0
  add    %r14,%rcx
  movsd  %xmm0,(%rdx,%rdi,8)
  movsd  (%rsi,%rax,1),%xmm0
  movsd  %xmm0,(%rdx)
  movsd  (%r11,%rax,1),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,(%rdx,%r12,8)
  add    %r14,%rdx
  cmp    %r9,%rax
  jne    L154
L223:
  addl   $0x1,(%rsp)
  add    $0x8,%rbp
  mov    (%rsp),%eax
  add    $0x8,%rbx
  cmp    %eax,0x1c(%rsp)
  jne    L19
L137:
  mov    0x68(%rsp),%eax
  addl   $0x1,0x90(%rsp)
  add    %eax,0xa0(%rsp)
  mov    0x90(%rsp),%esi
  add    %eax,0xa8(%rsp)
  add    %eax,0xac(%rsp)
  add    %eax,0xb0(%rsp)
  cmp    %esi,0xa4(%rsp)
  jne    L216
  jmp    L181
L178:
  mov    %r10,0x10(%rsp)
  sub    $0x8,%rsp
  xor    %eax,%eax
  mov    %r11,0x10(%rsp)
  push   0x88(%rsp)
  mov    0x70(%rsp),%r9
  mov    0x30(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  mov    0x7c(%rsp),%esi
  mov    0x80(%rsp),%rdi
  mov    %r8d,0x28(%rsp)
  call   <fpconv@plt>
  pop    %r10
  push   0x40(%rsp)
  xor    %eax,%eax
  mov    0x28(%rsp),%r8d
  mov    0x88(%rsp),%r9
  mov    0x30(%rsp),%rcx
  mov    0x38(%rsp),%rdx
  mov    0x7c(%rsp),%esi
  mov    0x98(%rsp),%rdi
  call   <fpconv@plt>
  pop    %r11
  pop    %rax
  mov    0x18(%rsp),%r8d
  mov    0x8(%rsp),%r11
  mov    0x10(%rsp),%r10
  jmp    L223
L211:
  mov    0xdc(%rsp),%eax
  mov    0xc4(%rsp),%ecx
  add    %eax,%ecx
  mov    %eax,0xa8(%rsp)
  mov    %ecx,0xb0(%rsp)
  jmp    L142
L125:
  mov    0xa4(%rsp),%eax
  movl   $0x2,0xc8(%rsp)
  mov    %eax,0xd0(%rsp)
  jmp    L22
```

tool_calls: name: unpack_data
arguments: data_label: D7
data_type: byte[8]

tool: {"D7": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
MRDWT(double *x, int m, int n, double *h, int lh, int L, double *yl, double *yh) {
  double *tmp;
  double *h0, *h1, *ydummyll, *ydummylh, *ydummyhl;
  double *ydummyhh, *xdummyl, *xdummyh;
  long i, j;
  int actual_L, actual_m, actual_n, c_o_a, ir, n_c, n_cb, n_c_o;
  int ic, n_r, n_rb, n_r_o, c_o_a_p2n, sample_f;
  xdummyl = (double *)mxCalloc(((m) > (n) ? (m) : (n)) + lh - 1, sizeof(double));
  xdummyh = (double *)mxCalloc(((m) > (n) ? (m) : (n)) + lh - 1, sizeof(double));
  ydummyll = (double *)mxCalloc(((m) > (n) ? (m) : (n)), sizeof(double));
  ydummylh = (double *)mxCalloc(((m) > (n) ? (m) : (n)), sizeof(double));
  ydummyhl = (double *)mxCalloc(((m) > (n) ? (m) : (n)), sizeof(double));
  ydummyhh = (double *)mxCalloc(((m) > (n) ? (m) : (n)), sizeof(double));
  h0 = (double *)mxCalloc(lh, sizeof(double));
  h1 = (double *)mxCalloc(lh, sizeof(double));
  if (n == 1) {
    n = m;
    m = 1;
  }
  for (i = 0; i < lh; i++) {
    h0[i] = h[lh - i - 1];
    h1[i] = h[i];
  }
  for (i = 0; i < lh; i += 2)
    h1[i] = -h1[i];
  actual_m = 2 * m;
  actual_n = 2 * n;
  for (i = 0; i < m * n; i++)
    yl[i] = x[i];
  sample_f = 1;
  for (actual_L = 1; actual_L <= L; actual_L++) {
    actual_m = actual_m / 2;
    actual_n = actual_n / 2;
    if (m == 1)
      c_o_a = n * (actual_L - 1);
    else
      c_o_a = 3 * n * (actual_L - 1);
    c_o_a_p2n = c_o_a + 2 * n;
    n_cb = n / actual_n;
    for (ir = 0; ir < m; ir++) {
      for (n_c = 0; n_c < n_cb; n_c++) {
        ic = -sample_f + n_c;
        for (i = 0; i < actual_n; i++) {
          ic = ic + sample_f;
          xdummyl[i] = (*(yl + (m * (ic) + ir)));
        }
        fpconv(xdummyl, actual_n, h0, h1, lh, ydummyll, ydummyhh);
        ic = -sample_f + n_c;
        for (i = 0; i < actual_n; i++) {
          ic = ic + sample_f;
          (*(yl + (m * (ic) + ir))) = ydummyll[i];
          (*(yh + (m * (c_o_a + ic) + ir))) = ydummyhh[i];
        }
      }
    }
    if (m > 1) {
      n_rb = m / actual_m;
      for (ic = 0; ic < n; ic++) {
        for (n_r = 0; n_r < n_rb; n_r++) {
          ir = -sample_f + n_r;
          for (i = 0; i < actual_m; i++) {
            ir = ir + sample_f;
            xdummyl[i] = (*(yl + (m * (ic) + ir)));
            xdummyh[i] = (*(yh + (m * (c_o_a + ic) + ir)));
          }
          fpconv(xdummyl, actual_m, h0, h1, lh, ydummyll, ydummylh);
          fpconv(xdummyh, actual_m, h0, h1, lh, ydummyhl, ydummyhh);
          ir = -sample_f + n_r;
          for (i = 0; i < actual_m; i++) {
            ir = ir + sample_f;
            (*(yl + (m * (ic) + ir))) = ydummyll[i];
            (*(yh + (m * (c_o_a + ic) + ir))) = ydummylh[i];
            (*(yh + (m * (c_o_a + n + ic) + ir))) = ydummyhl[i];
            (*(yh + (m * (c_o_a_p2n + ic) + ir))) = ydummyhh[i];
          }
        }
      }
    }
    sample_f = sample_f * 2;
  }
}
```