user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Daub97Analysis1D>:
  endbr64
  lea    -0x2(%rdx),%ecx
  push   %rbp
  mov    %rdi,%rax
  mov    %edx,%r8d
  push   %rbx
  cmp    $0x1,%ecx
  jle    L15
  lea    -0x4(%rdx),%edx
  cmp    $0x3,%edx
  jbe    L142
  shr    $0x2,%edx
  movapd D128(%rip),%xmm2
  mov    %edx,%r9d
  lea    0x10(%rdi),%rdx
  lea    -0x1(%r9),%edi
  shl    $0x5,%rdi
  lea    0x30(%rax,%rdi,1),%rdi
  nopl   0x0(%rax,%rax,1)
L158:
  movupd (%rdx),%xmm0
  movupd -0x10(%rdx),%xmm1
  add    $0x20,%rdx
  movhpd -0x20(%rdx),%xmm1
  movhpd -0x10(%rdx),%xmm0
  addpd  %xmm1,%xmm0
  movupd -0x20(%rdx),%xmm1
  movlpd -0x28(%rdx),%xmm1
  mulpd  %xmm2,%xmm0
  addpd  %xmm1,%xmm0
  movlpd %xmm0,-0x28(%rdx)
  movhpd %xmm0,-0x18(%rdx)
  cmp    %rdx,%rdi
  jne    L158
  lea    0x1(,%r9,4),%edi
L137:
  movslq %edi,%rdx
  movsd  D128(%rip),%xmm2
  add    $0x2,%edi
  shl    $0x3,%rdx
  lea    (%rax,%rdx,1),%r9
  movsd  0x8(%rax,%rdx,1),%xmm0
  movsd  -0x8(%r9),%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  (%r9),%xmm1
  movsd  %xmm1,(%r9)
  cmp    %edi,%ecx
  jle    L15
  addsd  0x18(%rax,%rdx,1),%xmm0
  lea    0x10(%rax,%rdx,1),%rdi
  mulsd  %xmm2,%xmm0
  addsd  (%rdi),%xmm0
  movsd  %xmm0,(%rdi)
L15:
  movslq %r8d,%rdx
  movsd  D39(%rip),%xmm0
  shl    $0x3,%rdx
  lea    -0x10(%rax,%rdx,1),%r9
  lea    -0x8(%rax,%rdx,1),%rdi
  mulsd  (%r9),%xmm0
  addsd  (%rdi),%xmm0
  movsd  %xmm0,(%rdi)
  movsd  D122(%rip),%xmm0
  mulsd  0x8(%rax),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  cmp    $0x2,%r8d
  jle    L138
  lea    -0x3(%r8),%edx
  cmp    $0x3,%edx
  jbe    L289
  shr    $0x2,%edx
  movapd D32(%rip),%xmm2
  mov    %edx,%r11d
  lea    0x18(%rax),%rdx
  lea    -0x1(%r11),%r10d
  shl    $0x5,%r10
  lea    0x38(%rax,%r10,1),%r10
  nopl   0x0(%rax)
L1:
  movupd (%rdx),%xmm0
  movupd -0x10(%rdx),%xmm1
  add    $0x20,%rdx
  movhpd -0x20(%rdx),%xmm1
  movhpd -0x10(%rdx),%xmm0
  addpd  %xmm1,%xmm0
  movupd -0x20(%rdx),%xmm1
  movlpd -0x28(%rdx),%xmm1
  mulpd  %xmm2,%xmm0
  addpd  %xmm1,%xmm0
  movlpd %xmm0,-0x28(%rdx)
  movhpd %xmm0,-0x18(%rdx)
  cmp    %rdx,%r10
  jne    L1
  lea    0x2(,%r11,4),%r11d
L89:
  movslq %r11d,%rdx
  lea    0x2(%r11),%ebx
  shl    $0x3,%rdx
  lea    (%rax,%rdx,1),%r10
  cmp    %ebx,%ecx
  jle    L9
  cmp    %r11d,%r8d
  jle    L9
  movsd  0x8(%rax,%rdx,1),%xmm0
  movsd  -0x8(%r10),%xmm1
  lea    0x6(%r11),%ebx
  movsd  D32(%rip),%xmm2
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  (%r10),%xmm1
  movsd  %xmm1,(%r10)
  movsd  0x18(%rax,%rdx,1),%xmm1
  lea    0x10(%rax,%rdx,1),%r10
  addsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  (%r10),%xmm0
  movsd  %xmm0,(%r10)
  lea    0x4(%r11),%r10d
  cmp    %ebx,%ecx
  jg     L177
L37:
  movslq %r10d,%rdx
  add    $0x2,%r10d
  shl    $0x3,%rdx
  lea    0x8(%rax,%rdx,1),%rbx
  movsd  -0x8(%rax,%rdx,1),%xmm0
  lea    (%rax,%rdx,1),%r11
  addsd  (%rbx),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  (%r11),%xmm0
  movsd  %xmm0,(%r11)
  cmp    %r10d,%r8d
  jle    L138
  movsd  0x18(%rax,%rdx,1),%xmm0
  addsd  (%rbx),%xmm0
  lea    0x10(%rax,%rdx,1),%r10
  mulsd  %xmm2,%xmm0
  addsd  (%r10),%xmm0
  movsd  %xmm0,(%r10)
L138:
  cmp    $0x1,%ecx
  jle    L99
  lea    -0x4(%r8),%edx
  cmp    $0x3,%edx
  jbe    L372
  shr    $0x2,%edx
  movapd D53(%rip),%xmm2
  mov    %edx,%r11d
  lea    0x10(%rax),%rdx
  lea    -0x1(%r11),%r10d
  shl    $0x5,%r10
  lea    0x30(%rax,%r10,1),%r10
  nopw   0x0(%rax,%rax,1)
L156:
  movupd (%rdx),%xmm0
  movupd -0x10(%rdx),%xmm1
  add    $0x20,%rdx
  movhpd -0x20(%rdx),%xmm1
  movhpd -0x10(%rdx),%xmm0
  addpd  %xmm1,%xmm0
  movupd -0x20(%rdx),%xmm1
  movlpd -0x28(%rdx),%xmm1
  mulpd  %xmm2,%xmm0
  addpd  %xmm1,%xmm0
  movlpd %xmm0,-0x28(%rdx)
  movhpd %xmm0,-0x18(%rdx)
  cmp    %r10,%rdx
  jne    L156
  lea    0x1(,%r11,4),%r10d
L162:
  movslq %r10d,%rdx
  movsd  D53(%rip),%xmm2
  add    $0x2,%r10d
  shl    $0x3,%rdx
  lea    (%rax,%rdx,1),%r11
  movsd  0x8(%rax,%rdx,1),%xmm0
  movsd  -0x8(%r11),%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  (%r11),%xmm1
  movsd  %xmm1,(%r11)
  cmp    %r10d,%ecx
  jle    L99
  addsd  0x18(%rax,%rdx,1),%xmm0
  lea    0x10(%rax,%rdx,1),%r10
  mulsd  %xmm2,%xmm0
  addsd  (%r10),%xmm0
  movsd  %xmm0,(%r10)
L99:
  movsd  D104(%rip),%xmm0
  mulsd  (%r9),%xmm0
  mov    %r8d,%r9d
  addsd  (%rdi),%xmm0
  movsd  D175(%rip),%xmm2
  sar    %r9d
  movsd  %xmm0,(%rdi)
  movsd  D74(%rip),%xmm0
  movsd  0x8(%rax),%xmm1
  movslq %r9d,%rdi
  mulsd  %xmm1,%xmm0
  addsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  cmp    $0x2,%r8d
  jle    L91
  lea    -0x3(%r8),%edx
  cmp    $0x3,%edx
  jbe    L119
  shr    $0x2,%edx
  movapd D22(%rip),%xmm4
  movapd D175(%rip),%xmm3
  mov    %edx,%r11d
  lea    0x18(%rax),%rdx
  lea    -0x1(%r11),%r10d
  shl    $0x5,%r10
  lea    0x38(%rax,%r10,1),%r10
  nopl   0x0(%rax,%rax,1)
L200:
  movupd (%rdx),%xmm0
  movupd -0x10(%rdx),%xmm1
  add    $0x20,%rdx
  movhpd -0x20(%rdx),%xmm1
  movhpd -0x10(%rdx),%xmm0
  addpd  %xmm1,%xmm0
  movupd -0x20(%rdx),%xmm1
  movlpd -0x28(%rdx),%xmm1
  mulpd  %xmm4,%xmm0
  addpd  %xmm1,%xmm0
  mulpd  %xmm3,%xmm0
  movlpd %xmm0,-0x28(%rdx)
  movhpd %xmm0,-0x18(%rdx)
  cmp    %rdx,%r10
  jne    L200
  lea    0x2(,%r11,4),%r10d
L33:
  movslq %r10d,%rdx
  lea    0x2(%r10),%ebx
  shl    $0x3,%rdx
  lea    (%rax,%rdx,1),%r11
  cmp    %ecx,%ebx
  jge    L168
  cmp    %r10d,%r8d
  jle    L168
  movsd  0x8(%rax,%rdx,1),%xmm0
  movsd  -0x8(%r11),%xmm1
  lea    0x6(%r10),%ebx
  movsd  D22(%rip),%xmm3
  addsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm1
  addsd  (%r11),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm1,(%r11)
  movsd  0x18(%rax,%rdx,1),%xmm1
  lea    0x10(%rax,%rdx,1),%r11
  addsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  (%r11),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r11)
  lea    0x4(%r10),%r11d
  cmp    %ebx,%ecx
  jg     L185
L374:
  movslq %r11d,%r10
  shl    $0x3,%r10
  lea    0x8(%rax,%r10,1),%rbx
  movsd  -0x8(%rax,%r10,1),%xmm0
  lea    (%rax,%r10,1),%rdx
  addsd  (%rbx),%xmm0
  mulsd  %xmm3,%xmm0
  addsd  (%rdx),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  lea    0x2(%r11),%edx
  cmp    %edx,%r8d
  jle    L62
  movsd  0x18(%rax,%r10,1),%xmm0
  addsd  (%rbx),%xmm0
  lea    0x10(%rax,%r10,1),%rdx
  mulsd  %xmm3,%xmm0
  addsd  (%rdx),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
L62:
  shr    %ecx
  mov    $0x1,%edx
  add    $0x1,%ecx
  cmp    $0x1,%r8d
  cmovle %edx,%ecx
  cmp    $0x5,%r8d
  jle    L230
  sub    $0x1,%ecx
  movapd D142(%rip),%xmm1
  lea    0x8(%rax),%rdx
  mov    %ecx,%r10d
  shr    %r10d
  sub    $0x1,%r10d
  shl    $0x5,%r10
  lea    0x28(%rax,%r10,1),%r10
  nopl   0x0(%rax)
L255:
  movupd (%rdx),%xmm0
  add    $0x20,%rdx
  movhpd -0x10(%rdx),%xmm0
  divpd  %xmm1,%xmm0
  movlpd %xmm0,-0x20(%rdx)
  movhpd %xmm0,-0x10(%rdx)
  cmp    %r10,%rdx
  jne    L255
  and    $0xfffffffe,%ecx
  lea    0x1(%rcx,%rcx,1),%edx
L81:
  movslq %edx,%rcx
  movsd  D142(%rip),%xmm1
  add    $0x2,%edx
  shl    $0x3,%rcx
  lea    (%rax,%rcx,1),%r10
  movsd  (%r10),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r10)
  cmp    %edx,%r8d
  jle    L103
  lea    0x10(%rax,%rcx,1),%rdx
  movsd  (%rdx),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
L103:
  mov    %r9d,%edx
  mov    $0x10,%r8d
  lea    0x0(,%rdi,8),%rbx
  mov    %rdx,%rcx
  shl    $0x4,%rcx
  test   %r9d,%r9d
  cmovle %r8,%rcx
  shl    $0x3,%rdx
  test   %r9d,%r9d
  lea    (%rsi,%rbx,1),%r8
  lea    (%rax,%rcx,1),%r11
  mov    $0x8,%ecx
  cmovle %rcx,%rdx
  lea    (%rsi,%rdx,1),%rcx
  cmp    %rcx,%rax
  setae  %r10b
  cmp    %r11,%rsi
  setae  %cl
  or     %ecx,%r10d
  cmp    $0x2,%r9d
  setg   %cl
  cmp    $0x8,%rbx
  setne  %bpl
  and    %ebp,%ecx
  test   %cl,%r10b
  je     L105
  add    %rbx,%rdx
  add    %rsi,%rdx
  cmp    %rdx,%rax
  setae  %dl
  cmp    %r11,%r8
  setae  %cl
  or     %cl,%dl
  je     L105
  test   %r9d,%r9d
  mov    $0x1,%edx
  cmovle %edx,%r9d
  xor    %edx,%edx
  mov    %r9d,%ecx
  shr    %ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax,%rax,1)
L336:
  movupd (%rax,%rdx,2),%xmm0
  movupd 0x10(%rax,%rdx,2),%xmm1
  movapd %xmm0,%xmm2
  unpckhpd %xmm1,%xmm0
  unpcklpd %xmm1,%xmm2
  movups %xmm2,(%rsi,%rdx,1)
  movups %xmm0,(%r8,%rdx,1)
  add    $0x10,%rdx
  cmp    %rcx,%rdx
  jne    L336
  mov    %r9d,%edx
  and    $0xfffffffe,%edx
  and    $0x1,%r9d
  je     L209
  lea    (%rdx,%rdx,1),%ecx
  movslq %edx,%rdx
  movslq %ecx,%rcx
  movsd  (%rax,%rcx,8),%xmm0
  movsd  %xmm0,(%rsi,%rdx,8)
  movsd  0x8(%rax,%rcx,8),%xmm0
  add    %rdi,%rdx
  movsd  %xmm0,(%rsi,%rdx,8)
L209:
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L105:
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L197:
  movsd  (%rax),%xmm0
  add    $0x10,%rax
  movsd  %xmm0,(%rsi,%rdx,8)
  movsd  -0x8(%rax),%xmm0
  movsd  %xmm0,(%r8,%rdx,8)
  add    $0x1,%rdx
  cmp    %edx,%r9d
  jg     L197
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L91:
  je     L194
  test   %r9d,%r9d
  jg     L103
  pop    %rbx
  pop    %rbp
  ret
L372:
  mov    $0x1,%r10d
  jmp    L162
L168:
  movsd  D22(%rip),%xmm3
  mov    %r10d,%r11d
  jmp    L374
L230:
  mov    $0x1,%edx
  jmp    L81
L142:
  mov    $0x1,%edi
  jmp    L137
L289:
  mov    $0x2,%r11d
  jmp    L89
L9:
  movsd  D32(%rip),%xmm2
  mov    %r11d,%r10d
  jmp    L37
L119:
  mov    $0x2,%r10d
  jmp    L33
L194:
  divsd  D142(%rip),%xmm1
  movsd  %xmm1,0x8(%rax)
  jmp    L103
L185:
  movsd  0x28(%rax,%rdx,1),%xmm4
  lea    0x20(%rax,%rdx,1),%r11
  addsd  %xmm4,%xmm1
  movapd %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  (%r11),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r11)
  addsd  0x38(%rax,%rdx,1),%xmm4
  lea    0x30(%rax,%rdx,1),%r11
  movapd %xmm4,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  (%r11),%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%r11)
  lea    0x8(%r10),%r11d
  jmp    L374
L177:
  movsd  0x28(%rax,%rdx,1),%xmm3
  lea    0x20(%rax,%rdx,1),%r10
  addsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  (%r10),%xmm0
  movsd  %xmm0,(%r10)
  addsd  0x38(%rax,%rdx,1),%xmm3
  lea    0x30(%rax,%rdx,1),%r10
  movapd %xmm3,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  (%r10),%xmm0
  movsd  %xmm0,(%r10)
  lea    0x8(%r11),%r10d
  jmp    L37
```

tool_calls: name: disassemble_data
arguments: tag: D128
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D39
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D122
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D32
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D53
type_guessed: f64[2]
name: disassemble_data
arguments: tag: D104
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D175
type_guessed: f64[2]
name: disassemble_data
arguments: tag: D74
type_guessed: byte[8]
name: disassemble_data
arguments: tag: D22
type_guessed: f64[2]
name: disassemble_data
arguments: tag: D142
type_guessed: byte[16]

tool: {"D128": [0x30,0xc1,0x3b,0x2b,0xe9,0x60,0xf9,0xbf,0x30,0xc1,0x3b,0x2b,0xe9,0x60,0xf9,0xbf]}

tool: {"D39": [0x30,0xc1,0x3b,0x2b,0xe9,0x60,0x09,0xc0]}

tool: {"D122": [0x5e,0x29,0xa7,0x2c,0x04,0x20,0xbb,0xbf]}

tool: {"D32": [0x5e,0x29,0xa7,0x2c,0x04,0x20,0xab,0xbf,0x5e,0x29,0xa7,0x2c,0x04,0x20,0xab,0xbf]}

tool: {"D53": [0.88293362717904,0.88293362717904]}

tool: {"D104": [0x6a,0xb9,0xa8,0x05,0xfe,0x40,0xfc,0x3f]}

tool: {"D175": [1.14960430535816,1.14960430535816]}

tool: {"D74": [0x80,0x53,0x01,0x0d,0x62,0x62,0xec,0x3f]}

tool: {"D22": [0.44350482244527,0.44350482244527]}

tool: {"D142": [0x5f,0xaa,0xed,0x7b,0xc7,0x64,0xf2,0xbf,0x5f,0xaa,0xed,0x7b,0xc7,0x64,0xf2,0xbf]}

assistant: ```c
void Daub97Analysis1D(double *signal_in, double *signal_out, int signal_length) {
  double *even, *odd;
  int i, half;
  for (i = 1; i < signal_length - 2; i += 2)
    signal_in[i] += -1.58615986717275 * (signal_in[i - 1] + signal_in[i + 1]);
  signal_in[signal_length - 1] += 2 * -1.58615986717275 * signal_in[signal_length - 2];
  signal_in[0] += 2 * -0.05297864003258 * signal_in[1];
  for (i = 2; i < signal_length; i += 2)
    signal_in[i] += -0.05297864003258 * (signal_in[i + 1] + signal_in[i - 1]);
  for (i = 1; i < signal_length - 2; i += 2)
    signal_in[i] += 0.88293362717904 * (signal_in[i - 1] + signal_in[i + 1]);
  signal_in[signal_length - 1] += 2 * 0.88293362717904 * signal_in[signal_length - 2];
  signal_in[0] = 1.14960430535816 * (signal_in[0] + 2 * 0.44350482244527 * signal_in[1]);
  for (i = 2; i < signal_length; i += 2)
    signal_in[i] = 1.14960430535816 * (signal_in[i] + 0.44350482244527 * (signal_in[i + 1] + signal_in[i - 1]));
  for (i = 1; i < signal_length; i += 2)
    signal_in[i] /= (-1.14960430535816);
  half = signal_length >> 1;
  even = signal_out;
  odd = signal_out + half;
  for (i = 0; i < half; i++) {
    even[i] = signal_in[i << 1];
    odd[i] = signal_in[(i << 1) + 1];
  }
}
```