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

```asm
<iswt_conv_step>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  cvtsi2sd %edx,%xmm0
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %r9,%rbx
  sub    $0x78,%rsp
  mulsd  D18(%rip),%xmm0
  mov    0xb0(%rsp),%r9
  mov    %rdi,(%rsp)
  mov    %r8d,0x34(%rsp)
  mov    %r9,0x38(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %rcx,0x48(%rsp)
  cvttsd2si %xmm0,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    %edx,0x30(%rsp)
  call   <floor@plt>
  lea    0x0(,%rax,8),%r15d
  mov    %eax,%ebp
  mov    %rax,0x8(%rsp)
  mov    %r15d,%edi
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,%r13
  call   <malloc@plt>
  mov    %r15d,%edi
  mov    %rax,%r14
  call   <malloc@plt>
  mov    0x30(%rsp),%esi
  mov    (%rsp),%rdi
  mov    %ebp,%ecx
  mov    %r12,%rdx
  mov    %rax,%r15
  call   <dyaddown_1D_keep_odd@plt>
  mov    0x30(%rsp),%esi
  mov    (%rsp),%rdi
  mov    %ebp,%ecx
  mov    %r14,%rdx
  call   <dyaddown_1D_keep_even@plt>
  mov    0x10(%rsp),%r11
  mov    0x30(%rsp),%esi
  mov    %ebp,%ecx
  mov    %r13,%rdx
  mov    %r11,%rdi
  mov    %r11,(%rsp)
  call   <dyaddown_1D_keep_odd@plt>
  mov    0x30(%rsp),%esi
  mov    (%rsp),%rdi
  mov    %ebp,%ecx
  mov    %r15,%rdx
  call   <dyaddown_1D_keep_even@plt>
  mov    0x8(%rsp),%r8
  mov    %r8d,%ebp
  lea    (%r8,%r8,1),%eax
  mov    %r8,0x10(%rsp)
  shl    $0x4,%ebp
  mov    %eax,(%rsp)
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,0x8(%rsp)
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %ebp,0x28(%rsp)
  mov    %rax,0x18(%rsp)
  call   <malloc@plt>
  mov    0x28(%rsp),%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    0x10(%rsp),%r8
  mov    0x8(%rsp),%r10
  mov    %rax,0x20(%rsp)
  mov    0x38(%rsp),%r9
  test   %r8d,%r8d
  jle    L174
  lea    -0x1(%r8),%eax
  mov    0x18(%rsp),%rcx
  mov    0x20(%rsp),%rsi
  lea    0x8(,%rax,8),%rdx
  xor    %eax,%eax
  nopl   0x0(%rax)
L93:
  movsd  (%r12,%rax,1),%xmm0
  movsd  %xmm0,(%r10,%rax,2)
  movsd  0x0(%r13,%rax,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,2)
  movq   $0x0,0x8(%r10,%rax,2)
  movq   $0x0,0x8(%rbp,%rax,2)
  movq   $0x0,(%rcx,%rax,2)
  movq   $0x0,(%rsi,%rax,2)
  movsd  (%r14,%rax,1),%xmm0
  movsd  %xmm0,0x8(%rcx,%rax,2)
  movsd  (%r15,%rax,1),%xmm0
  movsd  %xmm0,0x8(%rsi,%rax,2)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L93
L174:
  mov    %r12,%rdi
  mov    %r9,0x10(%rsp)
  mov    %r10,0x8(%rsp)
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0xc0(%rsp),%eax
  lea    0x64(%rsp),%rsi
  lea    -0x1(%rax),%edi
  call   <swt_exp2@plt>
  mov    0x8(%rsp),%r10
  mov    0x10(%rsp),%r9
  cmpl   $0x1,0xc0(%rsp)
  je     L24
  mov    0x64(%rsp),%eax
  mov    %eax,0xc0(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x38(%rsp)
  mov    0xc0(%rsp),%eax
  imul   0xb8(%rsp),%eax
  mov    %eax,0x8(%rsp)
L53:
  movslq 0x8(%rsp),%rax
  mov    %r9,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  lea    0x0(,%rax,8),%r12d
  mov    %rax,%r15
  mov    %rax,0x40(%rsp)
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %r12d,%edi
  mov    %rax,0x10(%rsp)
  call   <malloc@plt>
  test   %r15d,%r15d
  mov    0x50(%rsp),%r10
  mov    0x58(%rsp),%r9
  mov    %rax,%r14
  jle    L158
  mov    0x40(%rsp),%rax
  mov    0x10(%rsp),%rsi
  lea    0x0(,%rax,8),%r12
  lea    (%r14,%r12,1),%rax
  cmp    %rax,%rsi
  jae    L106
  lea    (%rsi,%r12,1),%rax
  cmp    %rax,%r14
  jb     L156
L106:
  mov    0x10(%rsp),%rdi
  mov    %r12,%rdx
  xor    %esi,%esi
  mov    %r9,0x58(%rsp)
  mov    %r10,0x50(%rsp)
  call   <memset@plt>
  mov    %r12,%rdx
  xor    %esi,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  mov    0x50(%rsp),%r10
  mov    0x58(%rsp),%r9
L158:
  mov    0xb8(%rsp),%eax
  test   %eax,%eax
  jle    L63
  movslq 0xc0(%rsp),%rcx
  movslq 0xb8(%rsp),%rsi
  xor    %edx,%edx
  xor    %eax,%eax
  mov    0x10(%rsp),%rdi
  shl    $0x3,%rcx
  nopl   (%rax)
L94:
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%rdi,%rdx,1)
  movsd  (%r9,%rax,8),%xmm0
  add    $0x1,%rax
  movsd  %xmm0,(%r14,%rdx,1)
  add    %rcx,%rdx
  cmp    %rax,%rsi
  jne    L94
L63:
  mov    0x28(%rsp),%r13d
  mov    %r10,0x50(%rsp)
  mov    %r13d,%edi
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,%rbx
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,%r15
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    0x50(%rsp),%r10
  mov    (%rsp),%ecx
  mov    %rbx,%rdx
  mov    0x8(%rsp),%r9d
  mov    0x10(%rsp),%r8
  mov    %rax,%r13
  mov    %r10,%rdi
  mov    %ecx,%esi
  mov    %r10,0x28(%rsp)
  call   <i_conv@plt>
  mov    (%rsp),%ecx
  mov    0x8(%rsp),%r9d
  mov    %r14,%r8
  mov    %r15,%rdx
  mov    %rbp,%rdi
  mov    %ecx,%esi
  call   <i_conv@plt>
  movslq (%rsp),%r11
  xor    %eax,%eax
  mov    0x28(%rsp),%r10
  test   %r11d,%r11d
  jle    L30
L188:
  movsd  (%rbx,%rax,8),%xmm0
  addsd  (%r15,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r11
  jne    L188
  mov    %r10,%rdi
  mov    %r11,0x28(%rsp)
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    (%rsp),%ebp
  mov    0x8(%rsp),%r9d
  mov    %rbx,%rdx
  mov    0x10(%rsp),%r8
  mov    0x18(%rsp),%rdi
  mov    %ebp,%ecx
  mov    %ebp,%esi
  call   <i_conv@plt>
  mov    0x8(%rsp),%r9d
  mov    %r14,%r8
  mov    %ebp,%ecx
  mov    0x20(%rsp),%rdi
  mov    %r15,%rdx
  mov    %ebp,%esi
  call   <i_conv@plt>
  mov    0x28(%rsp),%r11
  xor    %eax,%eax
  nopl   (%rax)
L84:
  movsd  (%rbx,%rax,8),%xmm0
  addsd  (%r15,%rax,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r11
  jne    L84
L133:
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  mov    0x30(%rsp),%ecx
  sub    0x8(%rsp),%ecx
  sub    0x38(%rsp),%ecx
  lea    -0x1(%rcx),%esi
  cmp    0x34(%rsp),%esi
  jge    L153
  mov    0x48(%rsp),%rbx
  movslq %ecx,%rdx
  mov    0x34(%rsp),%edi
  movslq %esi,%rax
  neg    %rdx
  lea    (%rbx,%rdx,8),%rdx
  nopl   0x0(%rax)
L168:
  movsd  (%r12,%rax,8),%xmm0
  addsd  0x0(%r13,%rax,8),%xmm0
  mulsd  D18(%rip),%xmm0
  movsd  %xmm0,0x8(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%edi
  jg     L168
L153:
  test   %esi,%esi
  jle    L97
  mov    0x48(%rsp),%rbx
  movslq 0x38(%rsp),%rax
  lea    -0x2(%rcx),%esi
  add    0x40(%rsp),%rax
  lea    (%rbx,%rax,8),%rcx
  xor    %eax,%eax
  nop
L32:
  movsd  (%r12,%rax,8),%xmm0
  addsd  0x0(%r13,%rax,8),%xmm0
  mov    %rax,%rdx
  mulsd  D18(%rip),%xmm0
  movsd  %xmm0,0x8(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rsi,%rdx
  jne    L32
L97:
  mov    %r12,%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L24:
  mov    0xb8(%rsp),%eax
  movl   $0x0,0x38(%rsp)
  mov    %eax,0x8(%rsp)
  jmp    L53
L156:
  mov    0x40(%rsp),%rdx
  mov    0x10(%rsp),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax)
L39:
  movq   $0x0,(%rcx,%rax,8)
  movq   $0x0,(%r14,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L39
  jmp    L158
  cs nopw 0x0(%rax,%rax,1)
L30:
  mov    %r10,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    (%rsp),%ebp
  mov    0x8(%rsp),%r9d
  mov    %rbx,%rdx
  mov    0x10(%rsp),%r8
  mov    0x18(%rsp),%rdi
  mov    %ebp,%ecx
  mov    %ebp,%esi
  call   <i_conv@plt>
  mov    0x8(%rsp),%r9d
  mov    %r14,%r8
  mov    %ebp,%ecx
  mov    0x20(%rsp),%rdi
  mov    %r15,%rdx
  mov    %ebp,%esi
  call   <i_conv@plt>
  jmp    L133
L92:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D18
data_type: byte[8]

tool: {"D18": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

assistant: ```c
void iswt_conv_step(double *approx, double *detail, int sigInLength, double *sigOut, int sigOutLength, double *filterLow, double *filterHi, int filterLength, int level) {
  int length1, length2, count, twt, mu, su, startpoint;
  double *approxTempOdd, *detailTempOdd;
  double *approxTempEven, *detailTempEven;
  double *approxOutOdd, *detailOutOdd;
  double *approxOutEven, *detailOutEven;
  double *approxT, *detailT;
  double *sigOdd, *sigEven;
  double *filterLowTemp, *filterHiTemp;
  length1 = (int)floor(sigInLength / 2.0);
  approxTempOdd = malloc(length1 * sizeof(double));
  detailTempOdd = malloc(length1 * sizeof(double));
  approxTempEven = malloc(length1 * sizeof(double));
  detailTempEven = malloc(length1 * sizeof(double));
  dyaddown_1D_keep_odd(approx, sigInLength, approxTempOdd, length1);
  dyaddown_1D_keep_even(approx, sigInLength, approxTempEven, length1);
  dyaddown_1D_keep_odd(detail, sigInLength, detailTempOdd, length1);
  dyaddown_1D_keep_even(detail, sigInLength, detailTempEven, length1);
  length2 = 2 * length1;
  approxOutOdd = malloc(length2 * sizeof(double));
  approxOutEven = malloc(length2 * sizeof(double));
  detailOutOdd = malloc(length2 * sizeof(double));
  detailOutEven = malloc(length2 * sizeof(double));
  for (count = 0; count < length1; count++) {
    approxOutOdd[2 * count] = approxTempOdd[count];
    detailOutOdd[2 * count] = detailTempOdd[count];
    approxOutOdd[2 * count + 1] = 0;
    detailOutOdd[2 * count + 1] = 0;
    approxOutEven[2 * count] = 0;
    detailOutEven[2 * count] = 0;
    approxOutEven[2 * count + 1] = approxTempEven[count];
    detailOutEven[2 * count + 1] = detailTempEven[count];
  }
  free(approxTempOdd);
  free(detailTempOdd);
  free(approxTempEven);
  free(detailTempEven);
  swt_exp2(level - 1, &twt);
  if (level == 1) {
    mu = 1;
    su = 0;
  } else {
    mu = twt;
    su = twt - 1;
  }
  filterLowTemp = malloc(mu * filterLength * sizeof(double));
  filterHiTemp = malloc(mu * filterLength * sizeof(double));
  for (count = 0; count < mu * filterLength; count++) {
    filterLowTemp[count] = 0;
    filterHiTemp[count] = 0;
  }
  for (count = 0; count < filterLength; count++) {
    filterLowTemp[mu * count] = filterLow[count];
    filterHiTemp[mu * count] = filterHi[count];
  }
  approxT = malloc(length2 * sizeof(double));
  detailT = malloc(length2 * sizeof(double));
  sigOdd = malloc(length2 * sizeof(double));
  sigEven = malloc(length2 * sizeof(double));
  i_conv(approxOutOdd, length2, approxT, length2, filterLowTemp, mu * filterLength);
  i_conv(detailOutOdd, length2, detailT, length2, filterHiTemp, mu * filterLength);
  for (count = 0; count < length2; count++)
    sigOdd[count] = approxT[count] + detailT[count];
  free(approxOutOdd);
  free(detailOutOdd);
  i_conv(approxOutEven, length2, approxT, length2, filterLowTemp, mu * filterLength);
  i_conv(detailOutEven, length2, detailT, length2, filterHiTemp, mu * filterLength);
  for (count = 0; count < length2; count++)
    sigEven[count] = approxT[count] + detailT[count];
  free(approxOutEven);
  free(detailOutEven);
  free(approxT);
  free(detailT);
  free(filterLowTemp);
  free(filterHiTemp);
  startpoint = sigInLength - filterLength * mu - su - 1;
  for (count = (startpoint); count < sigOutLength; count++)
    sigOut[count - startpoint] = (sigOdd[count] + sigEven[count]) / 2.0;
  for (count = 0; count < startpoint; count++)
    sigOut[count + 1 + filterLength * mu + su] = (sigOdd[count] + sigEven[count]) / 2.0;
  free(sigOdd);
  free(sigEven);
  return;
}
```