user: What is the c source code of the assembly code below:

```asm
<idwt_complete>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9d,-0x58(%rbp)
  mov    -0x54(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x34(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x54(%rbp),%esi
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <dyadup_1D_feed_odd@plt>
  mov    -0x34(%rbp),%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x54(%rbp),%esi
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <dyadup_1D_feed_odd@plt>
  mov    -0x34(%rbp),%edx
  mov    -0x58(%rbp),%eax
  add    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x58(%rbp),%r8d
  mov    -0x60(%rbp),%rdi
  mov    -0x30(%rbp),%ecx
  mov    -0x18(%rbp),%rdx
  mov    -0x34(%rbp),%esi
  mov    -0x28(%rbp),%rax
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <conv@plt>
  mov    -0x58(%rbp),%r8d
  mov    -0x68(%rbp),%rdi
  mov    -0x30(%rbp),%ecx
  mov    -0x10(%rbp),%rdx
  mov    -0x34(%rbp),%esi
  mov    -0x20(%rbp),%rax
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <conv@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L4
L19:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x38(%rbp)
L4:
  mov    -0x38(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L19
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%eax
  sub    0x18(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  D14(%rip),%xmm2
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D14(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%ecx
  mov    0x18(%rbp),%edx
  mov    -0x30(%rbp),%esi
  mov    -0x8(%rbp),%rax
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    0x10(%rbp),%rdx
  mov    %rax,%rdi
  call   <wkeep_1D_index@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D14
datatype: f64

tool: D14: 2

assistant: ```c
void idwt_complete(double *approx, double *detail, int sigInLength, double *lowRe, double *hiRe, int filterLen, double *sigOut, int sigOutLength) {
  int sigInLengthTemp, sigOutLengthTemp, count, ind;
  double *approxTemp, *detailTemp, *approxPre, *detailPre;
  double *sigOutPre;
  sigInLengthTemp = 2 * sigInLength - 1;
  approxTemp = malloc(sigInLengthTemp * sizeof(double));
  detailTemp = malloc(sigInLengthTemp * sizeof(double));
  dyadup_1D_feed_odd(approx, sigInLength, approxTemp, sigInLengthTemp);
  dyadup_1D_feed_odd(detail, sigInLength, detailTemp, sigInLengthTemp);
  sigOutLengthTemp = sigInLengthTemp + filterLen - 1;
  approxPre = malloc(sigOutLengthTemp * sizeof(double));
  detailPre = malloc(sigOutLengthTemp * sizeof(double));
  conv(approxTemp, sigInLengthTemp, approxPre, sigOutLengthTemp, lowRe, filterLen);
  conv(detailTemp, sigInLengthTemp, detailPre, sigOutLengthTemp, hiRe, filterLen);
  free(approxTemp);
  free(detailTemp);
  sigOutPre = malloc(sigOutLengthTemp * sizeof(double));
  for (count = 0; count < sigOutLengthTemp; count++)
    sigOutPre[count] = approxPre[count] + detailPre[count];
  free(approxPre);
  free(detailPre);
  ind = (int)(2 + (sigOutLengthTemp - sigOutLength) / 2.0);
  wkeep_1D_index(sigOutPre, sigOutLengthTemp, sigOut, sigOutLength, ind);
  free(sigOutPre);
  return;
}
```