#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int const);
void daubechies4(double *a, const int n, const int isign) {
  const double C0 = 0.4829629131445341, C1 = 0.83651630373780772,
               C2 = 0.22414386804201339, C3 = -0.12940952255126034;
  int nh, i, j;
  double *dwt;
  if (n < 4)
    return;
  dwt = (double *)malloc(n * sizeof(double));
  nh = n >> 1;
  if (isign >= 0) {
    for (j = 0, i = 0; j < n - 3; j += 2) {
      dwt[i] = C0 * a[j] + C1 * a[j + 1] + C2 * a[j + 2] + C3 * a[j + 3];
      dwt[i + nh] = C3 * a[j] - C2 * a[j + 1] + C1 * a[j + 2] - C0 * a[j + 3];
      i++;
    }
    dwt[i] = C0 * a[n - 2] + C1 * a[n - 1] + C2 * a[0] + C3 * a[1];
    dwt[i + nh] = C3 * a[n - 2] - C2 * a[n - 1] + C1 * a[0] - C0 * a[1];
  } else {
    dwt[0] = C2 * a[nh - 1] + C1 * a[n - 1] + C0 * a[0] + C3 * a[nh];
    dwt[1] = C3 * a[nh - 1] - C0 * a[n - 1] + C1 * a[0] - C2 * a[nh];
    for (i = 0, j = 2; i < nh - 1; i++) {
      dwt[j++] =
          C2 * a[i] + C1 * a[i + nh] + C0 * a[i + 1] + C3 * a[i + nh + 1];
      dwt[j++] =
          C3 * a[i] - C0 * a[i + nh] + C1 * a[i + 1] - C2 * a[i + nh + 1];
    }
  }
  for (i = 0; i < n; i++)
    a[i] = dwt[i];
  free(dwt);
  return;
}


x86 assembly (clang, -O0):
<daubechies4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movsd  0xede(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xeb4(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe9f(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    1175 <daubechies4+0x55>
jmp    16d3 <daubechies4+0x5b3>
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x10(%rbp)
jl     1412 <daubechies4+0x2f2>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    12fd <daubechies4+0x1dd>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xe34(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xe2f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xdfd(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xdd3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xda4(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd78(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xd66(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd5c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x3c(%rbp)
jmp    11a9 <daubechies4+0x89>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xcec(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xce7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xcbf(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xc9e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xc6a(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xc3e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xc36(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xc35(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    168f <daubechies4+0x56f>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xbd7(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xbc2(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xbba(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xb85(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xb66(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xb2a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xb22(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xb15(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movl   $0x0,-0x38(%rbp)
movl   $0x2,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    168a <daubechies4+0x56a>
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xab3(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xa9e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xa8c(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xa4f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x3c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x3c(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xa26(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0x9ea(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0x9d8(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
add    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0x9c3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x3c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x3c(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    152a <daubechies4+0x40a>
jmp    168f <daubechies4+0x56f>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    16ca <daubechies4+0x5aa>
mov    -0x48(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1696 <daubechies4+0x576>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<daubechies4>:
cmp    $0x4,%esi
jge    1126 <daubechies4+0x6>
ret
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebp
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0x0(,%r14,8),%edi
call   1040 <malloc@plt>
mov    %r14d,%edx
shr    %edx
test   %ebp,%ebp
js     129a <daubechies4+0x17a>
mov    %edx,%esi
lea    -0x4(%r14),%edi
shr    %edi
lea    0x1(%rdi),%ecx
lea    (%rax,%rsi,8),%rsi
lea    0x8(,%rdi,8),%rdi
xor    %ebp,%ebp
movsd  0xe93(%rip),%xmm0
movsd  0xe9b(%rip),%xmm2
movsd  0xe8b(%rip),%xmm3
movsd  0xe93(%rip),%xmm1
movsd  0xe9b(%rip),%xmm4
movsd  0xe8b(%rip),%xmm5
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x8(%rbx,%rbp,2),%xmm6
mulsd  %xmm0,%xmm6
movsd  (%rbx,%rbp,2),%xmm7
mulsd  %xmm2,%xmm7
addsd  %xmm6,%xmm7
movsd  0x10(%rbx,%rbp,2),%xmm6
mulsd  %xmm3,%xmm6
addsd  %xmm7,%xmm6
movsd  0x18(%rbx,%rbp,2),%xmm7
mulsd  %xmm1,%xmm7
addsd  %xmm6,%xmm7
movsd  %xmm7,(%rax,%rbp,1)
movsd  0x8(%rbx,%rbp,2),%xmm6
mulsd  %xmm4,%xmm6
movsd  (%rbx,%rbp,2),%xmm7
mulsd  %xmm1,%xmm7
addsd  %xmm6,%xmm7
movsd  0x10(%rbx,%rbp,2),%xmm6
mulsd  %xmm0,%xmm6
addsd  %xmm7,%xmm6
movsd  0x18(%rbx,%rbp,2),%xmm7
mulsd  %xmm5,%xmm7
addsd  %xmm6,%xmm7
movsd  %xmm7,(%rsi,%rbp,1)
add    $0x8,%rbp
cmp    %rbp,%rdi
jne    11a0 <daubechies4+0x80>
lea    -0x2(%r14),%esi
movsd  (%rbx,%rsi,8),%xmm2
lea    -0x1(%r14),%edi
movsd  (%rbx,%rdi,8),%xmm3
mulsd  %xmm0,%xmm3
mulsd  0xdd9(%rip),%xmm2
addsd  %xmm3,%xmm2
movsd  (%rbx),%xmm3
mulsd  0xdc1(%rip),%xmm3
addsd  %xmm2,%xmm3
movsd  0x8(%rbx),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
mov    %ecx,%ebp
movsd  %xmm2,(%rax,%rbp,8)
movsd  (%rbx,%rdi,8),%xmm2
mulsd  0xdbc(%rip),%xmm2
mulsd  (%rbx,%rsi,8),%xmm1
mulsd  (%rbx),%xmm0
addsd  %xmm2,%xmm1
movsd  0x8(%rbx),%xmm2
mulsd  0xd9a(%rip),%xmm2
addsd  %xmm1,%xmm0
addsd  %xmm0,%xmm2
add    %ecx,%edx
movsd  %xmm2,(%rax,%rdx,8)
jmp    153e <daubechies4+0x41e>
lea    -0x1(%rdx),%r9d
movsd  (%rbx,%r9,8),%xmm1
lea    -0x1(%r14),%ecx
movsd  0xd50(%rip),%xmm0
movsd  (%rbx,%rcx,8),%xmm2
mulsd  0xd4b(%rip),%xmm1
mulsd  %xmm0,%xmm2
movsd  (%rbx),%xmm3
mulsd  0xd43(%rip),%xmm3
addsd  %xmm2,%xmm1
addsd  %xmm1,%xmm3
mov    %edx,%r8d
movsd  0xd38(%rip),%xmm1
movsd  (%rbx,%r8,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rax)
movsd  (%rbx,%rcx,8),%xmm2
mulsd  0xd21(%rip),%xmm2
movsd  (%rbx,%r9,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  (%rbx),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  (%rbx,%r8,8),%xmm3
mulsd  0xd01(%rip),%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,0x8(%rax)
mov    $0x2,%edx
cmp    $0x2,%r9d
jae    1342 <daubechies4+0x222>
xor    %edi,%edi
jmp    1485 <daubechies4+0x365>
lea    0x10(%rax),%rbp
mov    %r9,%rcx
shl    $0x4,%rcx
lea    (%rcx,%rax,1),%rsi
add    $0x10,%rsi
lea    (%rbx,%r8,8),%r10
lea    (%r8,%r9,1),%rdi
lea    (%rbx,%rdi,8),%rdi
add    $0x8,%rdi
lea    (%rbx,%r9,8),%rcx
add    $0x8,%rcx
cmp    %rdi,%rbp
setb   %r11b
cmp    %rsi,%r10
setb   %r10b
cmp    %rcx,%rbp
setb   %cl
cmp    %rbx,%rsi
seta   %sil
xor    %edi,%edi
test   %r10b,%r11b
jne    1485 <daubechies4+0x365>
and    %sil,%cl
jne    1485 <daubechies4+0x365>
mov    %r9d,%edi
and    $0xfffffffe,%edi
lea    (%r9,%r9,1),%rdx
or     $0x2,%rdx
lea    0x8(%rbx),%rsi
movapd 0xc79(%rip),%xmm12
movapd 0xc80(%rip),%xmm8
movapd 0xc87(%rip),%xmm9
movapd 0xc8e(%rip),%xmm13
movapd 0xc95(%rip),%xmm10
movapd 0xc9c(%rip),%xmm11
mov    %rdi,%rcx
nopw   0x0(%rax,%rax,1)
movupd -0x8(%rsi,%r8,8),%xmm6
movupd (%rsi,%r8,8),%xmm3
movapd %xmm6,%xmm4
mulpd  %xmm12,%xmm4
movupd -0x8(%rsi),%xmm5
movupd (%rsi),%xmm2
movapd %xmm5,%xmm7
mulpd  %xmm8,%xmm7
addpd  %xmm4,%xmm7
movapd %xmm2,%xmm4
mulpd  %xmm9,%xmm4
addpd  %xmm7,%xmm4
movapd %xmm3,%xmm7
mulpd  %xmm13,%xmm7
addpd  %xmm4,%xmm7
mulpd  %xmm10,%xmm6
mulpd  %xmm13,%xmm5
addpd  %xmm6,%xmm5
mulpd  %xmm12,%xmm2
addpd  %xmm5,%xmm2
mulpd  %xmm11,%xmm3
addpd  %xmm2,%xmm3
movapd %xmm7,%xmm2
unpcklpd %xmm3,%xmm2
movhlps %xmm7,%xmm3
movups %xmm3,0x10(%rbp)
movupd %xmm2,0x0(%rbp)
add    $0x10,%rsi
add    $0x20,%rbp
add    $0xfffffffffffffffe,%rcx
jne    13f0 <daubechies4+0x2d0>
cmp    %r9,%rdi
je     153e <daubechies4+0x41e>
lea    (%rbx,%r8,8),%rsi
add    $0x8,%rsi
movsd  0xb73(%rip),%xmm2
movsd  0xb73(%rip),%xmm3
movsd  0xb7b(%rip),%xmm4
movsd  0xb7b(%rip),%xmm5
nopl   (%rax)
movsd  -0x8(%rsi,%rdi,8),%xmm6
mulsd  %xmm0,%xmm6
movsd  (%rbx,%rdi,8),%xmm7
mulsd  %xmm2,%xmm7
addsd  %xmm6,%xmm7
movsd  0x8(%rbx,%rdi,8),%xmm6
mulsd  %xmm3,%xmm6
addsd  %xmm7,%xmm6
movsd  (%rsi,%rdi,8),%xmm7
mulsd  %xmm1,%xmm7
addsd  %xmm6,%xmm7
movsd  %xmm7,(%rax,%rdx,8)
movsd  -0x8(%rsi,%rdi,8),%xmm6
mulsd  %xmm4,%xmm6
movsd  (%rbx,%rdi,8),%xmm7
mulsd  %xmm1,%xmm7
addsd  %xmm6,%xmm7
movsd  0x8(%rbx,%rdi,8),%xmm6
mulsd  %xmm0,%xmm6
addsd  %xmm7,%xmm6
movsd  (%rsi,%rdi,8),%xmm7
lea    0x1(%rdi),%rcx
lea    0x0(,%rdx,8),%rdi
mulsd  %xmm5,%xmm7
addsd  %xmm6,%xmm7
add    $0x2,%rdx
or     $0x8,%rdi
movsd  %xmm7,(%rax,%rdi,1)
mov    %rcx,%rdi
cmp    %rcx,%r9
jne    14b0 <daubechies4+0x390>
test   %r14d,%r14d
jle    16b9 <daubechies4+0x599>
mov    %r14d,%ecx
cmp    $0x4,%r14d
jb     1566 <daubechies4+0x446>
lea    (%rax,%rcx,8),%rdx
cmp    %rbx,%rdx
jbe    15dc <daubechies4+0x4bc>
lea    (%rbx,%rcx,8),%rdx
cmp    %rdx,%rax
jae    15dc <daubechies4+0x4bc>
xor    %edx,%edx
mov    %rdx,%rsi
not    %rsi
add    %rcx,%rsi
mov    %rcx,%rdi
and    $0x3,%rdi
je     1594 <daubechies4+0x474>
nopw   0x0(%rax,%rax,1)
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdx,8)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1580 <daubechies4+0x460>
cmp    $0x3,%rsi
jb     16b9 <daubechies4+0x599>
xchg   %ax,%ax
movsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rbx,%rdx,8)
movsd  0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rdx,8)
movsd  0x10(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rdx,8)
movsd  0x18(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%rcx
jne    15a0 <daubechies4+0x480>
jmp    16b9 <daubechies4+0x599>
mov    %ecx,%edx
and    $0xfffffffc,%edx
lea    -0x4(%rdx),%rsi
mov    %rsi,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%r8d
and    $0x3,%r8d
cmp    $0xc,%rsi
jae    1601 <daubechies4+0x4e1>
xor    %ebp,%ebp
jmp    166c <daubechies4+0x54c>
and    $0xfffffffffffffffc,%rdi
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movups (%rax,%rbp,8),%xmm0
movups 0x10(%rax,%rbp,8),%xmm1
movups %xmm0,(%rbx,%rbp,8)
movups %xmm1,0x10(%rbx,%rbp,8)
movups 0x20(%rax,%rbp,8),%xmm0
movups 0x30(%rax,%rbp,8),%xmm1
movups %xmm0,0x20(%rbx,%rbp,8)
movups %xmm1,0x30(%rbx,%rbp,8)
movups 0x40(%rax,%rbp,8),%xmm0
movups 0x50(%rax,%rbp,8),%xmm1
movups %xmm0,0x40(%rbx,%rbp,8)
movups %xmm1,0x50(%rbx,%rbp,8)
movupd 0x60(%rax,%rbp,8),%xmm0
movupd 0x70(%rax,%rbp,8),%xmm1
movupd %xmm0,0x60(%rbx,%rbp,8)
movupd %xmm1,0x70(%rbx,%rbp,8)
add    $0x10,%rbp
add    $0xfffffffffffffffc,%rdi
jne    1610 <daubechies4+0x4f0>
test   %r8,%r8
je     16b0 <daubechies4+0x590>
lea    (%rbx,%rbp,8),%rdi
add    $0x10,%rdi
lea    (%rax,%rbp,8),%rbp
add    $0x10,%rbp
shl    $0x5,%r8
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movupd -0x10(%rbp,%rsi,1),%xmm0
movupd 0x0(%rbp,%rsi,1),%xmm1
movupd %xmm0,-0x10(%rdi,%rsi,1)
movupd %xmm1,(%rdi,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r8
jne    1690 <daubechies4+0x570>
cmp    %rcx,%rdx
jne    1568 <daubechies4+0x448>
mov    %rax,%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @daubechies4(double* %0, i32 %1, i32 %2) {
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double*
store double* %0, double** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store double 0x3FDEE8DD4748BF14, double* %7
store double 0x3FEAC4BDD6E3FD6F, double* %8
store double 0x3FCCB0BF0B6B7109, double* %9
store double 0xBFC0907DC193068F, double* %10
%15 = load i32, i32* %5
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %18
17: ; preds = %3
br label %318
18: ; preds = %3
%19 = load i32, i32* %5
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 8
%22 = trunc i64 %21 to i32
%23 = call i64 @malloc(i32 %22)
%24 = inttoptr i64 %23 to double*
store double* %24, double** %14
%25 = load i32, i32* %5
%26 = ashr i32 %25, 1
store i32 %26, i32* %11
%27 = load i32, i32* %6
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %162
29: ; preds = %18
store i32 0, i32* %13
store i32 0, i32* %12
br label %30
30: ; preds = %103, %29
%31 = load i32, i32* %13
%32 = load i32, i32* %5
%33 = sub nsw i32 %32, 3
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %106
35: ; preds = %30
%36 = load double*, double** %4
%37 = load i32, i32* %13
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
%40 = load double, double* %39
%41 = load double*, double** %4
%42 = load i32, i32* %13
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %41, i64 %44
%46 = load double, double* %45
%47 = fmul double 0x3FEAC4BDD6E3FD6F, %46
%48 = call double @llvm.fmuladd.f64(double 0x3FDEE8DD4748BF14, double %40, double %47)
%49 = load double*, double** %4
%50 = load i32, i32* %13
%51 = add nsw i32 %50, 2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, double* %49, i64 %52
%54 = load double, double* %53
%55 = call double @llvm.fmuladd.f64(double 0x3FCCB0BF0B6B7109, double %54, double %48)
%56 = load double*, double** %4
%57 = load i32, i32* %13
%58 = add nsw i32 %57, 3
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, double* %56, i64 %59
%61 = load double, double* %60
%62 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %61, double %55)
%63 = load double*, double** %14
%64 = load i32, i32* %12
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
store double %62, double* %66
%67 = load double*, double** %4
%68 = load i32, i32* %13
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %67, i64 %69
%71 = load double, double* %70
%72 = load double*, double** %4
%73 = load i32, i32* %13
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %72, i64 %75
%77 = load double, double* %76
%78 = fmul double 0x3FCCB0BF0B6B7109, %77
%79 = fneg double %78
%80 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %71, double %79)
%81 = load double*, double** %4
%82 = load i32, i32* %13
%83 = add nsw i32 %82, 2
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %81, i64 %84
%86 = load double, double* %85
%87 = call double @llvm.fmuladd.f64(double 0x3FEAC4BDD6E3FD6F, double %86, double %80)
%88 = load double*, double** %4
%89 = load i32, i32* %13
%90 = add nsw i32 %89, 3
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %88, i64 %91
%93 = load double, double* %92
%94 = call double @llvm.fmuladd.f64(double 0xBFDEE8DD4748BF14, double %93, double %87)
%95 = load double*, double** %14
%96 = load i32, i32* %12
%97 = load i32, i32* %11
%98 = add nsw i32 %96, %97
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %95, i64 %99
store double %94, double* %100
%101 = load i32, i32* %12
%102 = add nsw i32 %101, 1
store i32 %102, i32* %12
br label %103
103: ; preds = %35
%104 = load i32, i32* %13
%105 = add nsw i32 %104, 2
store i32 %105, i32* %13
br label %30
106: ; preds = %30
%107 = load double*, double** %4
%108 = load i32, i32* %5
%109 = sub nsw i32 %108, 2
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, double* %107, i64 %110
%112 = load double, double* %111
%113 = load double*, double** %4
%114 = load i32, i32* %5
%115 = sub nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %113, i64 %116
%118 = load double, double* %117
%119 = fmul double 0x3FEAC4BDD6E3FD6F, %118
%120 = call double @llvm.fmuladd.f64(double 0x3FDEE8DD4748BF14, double %112, double %119)
%121 = load double*, double** %4
%122 = getelementptr inbounds double, double* %121, i64 0
%123 = load double, double* %122
%124 = call double @llvm.fmuladd.f64(double 0x3FCCB0BF0B6B7109, double %123, double %120)
%125 = load double*, double** %4
%126 = getelementptr inbounds double, double* %125, i64 1
%127 = load double, double* %126
%128 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %127, double %124)
%129 = load double*, double** %14
%130 = load i32, i32* %12
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, double* %129, i64 %131
store double %128, double* %132
%133 = load double*, double** %4
%134 = load i32, i32* %5
%135 = sub nsw i32 %134, 2
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %133, i64 %136
%138 = load double, double* %137
%139 = load double*, double** %4
%140 = load i32, i32* %5
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, double* %139, i64 %142
%144 = load double, double* %143
%145 = fmul double 0x3FCCB0BF0B6B7109, %144
%146 = fneg double %145
%147 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %138, double %146)
%148 = load double*, double** %4
%149 = getelementptr inbounds double, double* %148, i64 0
%150 = load double, double* %149
%151 = call double @llvm.fmuladd.f64(double 0x3FEAC4BDD6E3FD6F, double %150, double %147)
%152 = load double*, double** %4
%153 = getelementptr inbounds double, double* %152, i64 1
%154 = load double, double* %153
%155 = call double @llvm.fmuladd.f64(double 0xBFDEE8DD4748BF14, double %154, double %151)
%156 = load double*, double** %14
%157 = load i32, i32* %12
%158 = load i32, i32* %11
%159 = add nsw i32 %157, %158
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, double* %156, i64 %160
store double %155, double* %161
br label %297
162: ; preds = %18
%163 = load double*, double** %4
%164 = load i32, i32* %11
%165 = sub nsw i32 %164, 1
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, double* %163, i64 %166
%168 = load double, double* %167
%169 = load double*, double** %4
%170 = load i32, i32* %5
%171 = sub nsw i32 %170, 1
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %169, i64 %172
%174 = load double, double* %173
%175 = fmul double 0x3FEAC4BDD6E3FD6F, %174
%176 = call double @llvm.fmuladd.f64(double 0x3FCCB0BF0B6B7109, double %168, double %175)
%177 = load double*, double** %4
%178 = getelementptr inbounds double, double* %177, i64 0
%179 = load double, double* %178
%180 = call double @llvm.fmuladd.f64(double 0x3FDEE8DD4748BF14, double %179, double %176)
%181 = load double*, double** %4
%182 = load i32, i32* %11
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %181, i64 %183
%185 = load double, double* %184
%186 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %185, double %180)
%187 = load double*, double** %14
%188 = getelementptr inbounds double, double* %187, i64 0
store double %186, double* %188
%189 = load double*, double** %4
%190 = load i32, i32* %11
%191 = sub nsw i32 %190, 1
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, double* %189, i64 %192
%194 = load double, double* %193
%195 = load double*, double** %4
%196 = load i32, i32* %5
%197 = sub nsw i32 %196, 1
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, double* %195, i64 %198
%200 = load double, double* %199
%201 = fmul double 0x3FDEE8DD4748BF14, %200
%202 = fneg double %201
%203 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %194, double %202)
%204 = load double*, double** %4
%205 = getelementptr inbounds double, double* %204, i64 0
%206 = load double, double* %205
%207 = call double @llvm.fmuladd.f64(double 0x3FEAC4BDD6E3FD6F, double %206, double %203)
%208 = load double*, double** %4
%209 = load i32, i32* %11
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, double* %208, i64 %210
%212 = load double, double* %211
%213 = call double @llvm.fmuladd.f64(double 0xBFCCB0BF0B6B7109, double %212, double %207)
%214 = load double*, double** %14
%215 = getelementptr inbounds double, double* %214, i64 1
store double %213, double* %215
store i32 0, i32* %12
store i32 2, i32* %13
br label %216
216: ; preds = %293, %162
%217 = load i32, i32* %12
%218 = load i32, i32* %11
%219 = sub nsw i32 %218, 1
%220 = icmp slt i32 %217, %219
br i1 %220, label %221, label %296
221: ; preds = %216
%222 = load double*, double** %4
%223 = load i32, i32* %12
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds double, double* %222, i64 %224
%226 = load double, double* %225
%227 = load double*, double** %4
%228 = load i32, i32* %12
%229 = load i32, i32* %11
%230 = add nsw i32 %228, %229
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds double, double* %227, i64 %231
%233 = load double, double* %232
%234 = fmul double 0x3FEAC4BDD6E3FD6F, %233
%235 = call double @llvm.fmuladd.f64(double 0x3FCCB0BF0B6B7109, double %226, double %234)
%236 = load double*, double** %4
%237 = load i32, i32* %12
%238 = add nsw i32 %237, 1
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds double, double* %236, i64 %239
%241 = load double, double* %240
%242 = call double @llvm.fmuladd.f64(double 0x3FDEE8DD4748BF14, double %241, double %235)
%243 = load double*, double** %4
%244 = load i32, i32* %12
%245 = load i32, i32* %11
%246 = add nsw i32 %244, %245
%247 = add nsw i32 %246, 1
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds double, double* %243, i64 %248
%250 = load double, double* %249
%251 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %250, double %242)
%252 = load double*, double** %14
%253 = load i32, i32* %13
%254 = add nsw i32 %253, 1
store i32 %254, i32* %13
%255 = sext i32 %253 to i64
%256 = getelementptr inbounds double, double* %252, i64 %255
store double %251, double* %256
%257 = load double*, double** %4
%258 = load i32, i32* %12
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds double, double* %257, i64 %259
%261 = load double, double* %260
%262 = load double*, double** %4
%263 = load i32, i32* %12
%264 = load i32, i32* %11
%265 = add nsw i32 %263, %264
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds double, double* %262, i64 %266
%268 = load double, double* %267
%269 = fmul double 0x3FDEE8DD4748BF14, %268
%270 = fneg double %269
%271 = call double @llvm.fmuladd.f64(double 0xBFC0907DC193068F, double %261, double %270)
%272 = load double*, double** %4
%273 = load i32, i32* %12
%274 = add nsw i32 %273, 1
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds double, double* %272, i64 %275
%277 = load double, double* %276
%278 = call double @llvm.fmuladd.f64(double 0x3FEAC4BDD6E3FD6F, double %277, double %271)
%279 = load double*, double** %4
%280 = load i32, i32* %12
%281 = load i32, i32* %11
%282 = add nsw i32 %280, %281
%283 = add nsw i32 %282, 1
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, double* %279, i64 %284
%286 = load double, double* %285
%287 = call double @llvm.fmuladd.f64(double 0xBFCCB0BF0B6B7109, double %286, double %278)
%288 = load double*, double** %14
%289 = load i32, i32* %13
%290 = add nsw i32 %289, 1
store i32 %290, i32* %13
%291 = sext i32 %289 to i64
%292 = getelementptr inbounds double, double* %288, i64 %291
store double %287, double* %292
br label %293
293: ; preds = %221
%294 = load i32, i32* %12
%295 = add nsw i32 %294, 1
store i32 %295, i32* %12
br label %216
296: ; preds = %216
br label %297
297: ; preds = %296, %106
store i32 0, i32* %12
br label %298
298: ; preds = %312, %297
%299 = load i32, i32* %12
%300 = load i32, i32* %5
%301 = icmp slt i32 %299, %300
br i1 %301, label %302, label %315
302: ; preds = %298
%303 = load double*, double** %14
%304 = load i32, i32* %12
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds double, double* %303, i64 %305
%307 = load double, double* %306
%308 = load double*, double** %4
%309 = load i32, i32* %12
%310 = sext i32 %309 to i64
%311 = getelementptr inbounds double, double* %308, i64 %310
store double %307, double* %311
br label %312
312: ; preds = %302
%313 = load i32, i32* %12
%314 = add nsw i32 %313, 1
store i32 %314, i32* %12
br label %298
315: ; preds = %298
%316 = load double*, double** %14
%317 = call i32 @free(double* %316)
br label %318
318: ; preds = %315, %17
ret void
}

LLVM IR (-O2):
define void @daubechies4(double* nocapture %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %1, 4
br i1 %4, label %335, label %5
5: ; preds = %3
%6 = shl i32 %1, 3
%7 = tail call i64 @malloc(i32 %6)
%8 = inttoptr i64 %7 to double*
%9 = inttoptr i64 %7 to i8*
%10 = lshr i32 %1, 1
%11 = icmp sgt i32 %2, -1
br i1 %11, label %12, label %78
12: ; preds = %5
%13 = zext i32 %10 to i64
%14 = add nsw i32 %1, -4
%15 = lshr i32 %14, 1
%16 = add nuw nsw i32 %15, 1
%17 = zext i32 %16 to i64
br label %18
18: ; preds = %12, %18
%19 = phi i64 [ 0, %12 ], [ %28, %18 ]
%20 = phi i64 [ 0, %12 ], [ %47, %18 ]
%21 = getelementptr inbounds double, double* %0, i64 %19
%22 = load double, double* %21
%23 = or i64 %19, 1
%24 = getelementptr inbounds double, double* %0, i64 %23
%25 = load double, double* %24
%26 = fmul double %25, 0x3FEAC4BDD6E3FD6F
%27 = tail call double @llvm.fmuladd.f64(double %22, double 0x3FDEE8DD4748BF14, double %26)
%28 = add nuw nsw i64 %19, 2
%29 = getelementptr inbounds double, double* %0, i64 %28
%30 = load double, double* %29
%31 = tail call double @llvm.fmuladd.f64(double %30, double 0x3FCCB0BF0B6B7109, double %27)
%32 = add nuw nsw i64 %19, 3
%33 = getelementptr inbounds double, double* %0, i64 %32
%34 = load double, double* %33
%35 = tail call double @llvm.fmuladd.f64(double %34, double 0xBFC0907DC193068F, double %31)
%36 = getelementptr inbounds double, double* %8, i64 %20
store double %35, double* %36
%37 = load double, double* %21
%38 = load double, double* %24
%39 = fmul double %38, 0xBFCCB0BF0B6B7109
%40 = tail call double @llvm.fmuladd.f64(double %37, double 0xBFC0907DC193068F, double %39)
%41 = load double, double* %29
%42 = tail call double @llvm.fmuladd.f64(double %41, double 0x3FEAC4BDD6E3FD6F, double %40)
%43 = load double, double* %33
%44 = tail call double @llvm.fmuladd.f64(double %43, double 0xBFDEE8DD4748BF14, double %42)
%45 = add nuw nsw i64 %20, %13
%46 = getelementptr inbounds double, double* %8, i64 %45
store double %44, double* %46
%47 = add nuw nsw i64 %20, 1
%48 = icmp eq i64 %47, %17
br i1 %48, label %49, label %18
49: ; preds = %18
%50 = add nsw i32 %1, -2
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds double, double* %0, i64 %51
%53 = load double, double* %52
%54 = add nsw i32 %1, -1
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds double, double* %0, i64 %55
%57 = load double, double* %56
%58 = fmul double %57, 0x3FEAC4BDD6E3FD6F
%59 = tail call double @llvm.fmuladd.f64(double %53, double 0x3FDEE8DD4748BF14, double %58)
%60 = load double, double* %0
%61 = tail call double @llvm.fmuladd.f64(double %60, double 0x3FCCB0BF0B6B7109, double %59)
%62 = getelementptr inbounds double, double* %0, i64 1
%63 = load double, double* %62
%64 = tail call double @llvm.fmuladd.f64(double %63, double 0xBFC0907DC193068F, double %61)
%65 = zext i32 %16 to i64
%66 = getelementptr inbounds double, double* %8, i64 %65
store double %64, double* %66
%67 = load double, double* %52
%68 = load double, double* %56
%69 = fmul double %68, 0xBFCCB0BF0B6B7109
%70 = tail call double @llvm.fmuladd.f64(double %67, double 0xBFC0907DC193068F, double %69)
%71 = load double, double* %0
%72 = tail call double @llvm.fmuladd.f64(double %71, double 0x3FEAC4BDD6E3FD6F, double %70)
%73 = load double, double* %62
%74 = tail call double @llvm.fmuladd.f64(double %73, double 0xBFDEE8DD4748BF14, double %72)
%75 = add nuw nsw i32 %16, %10
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds double, double* %8, i64 %76
store double %74, double* %77
br label %205
78: ; preds = %5
%79 = add nsw i32 %10, -1
%80 = zext i32 %79 to i64
%81 = getelementptr inbounds double, double* %0, i64 %80
%82 = load double, double* %81
%83 = add nsw i32 %1, -1
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds double, double* %0, i64 %84
%86 = load double, double* %85
%87 = fmul double %86, 0x3FEAC4BDD6E3FD6F
%88 = tail call double @llvm.fmuladd.f64(double %82, double 0x3FCCB0BF0B6B7109, double %87)
%89 = load double, double* %0
%90 = tail call double @llvm.fmuladd.f64(double %89, double 0x3FDEE8DD4748BF14, double %88)
%91 = zext i32 %10 to i64
%92 = getelementptr inbounds double, double* %0, i64 %91
%93 = load double, double* %92
%94 = tail call double @llvm.fmuladd.f64(double %93, double 0xBFC0907DC193068F, double %90)
store double %94, double* %8
%95 = load double, double* %81
%96 = load double, double* %85
%97 = fmul double %96, 0xBFDEE8DD4748BF14
%98 = tail call double @llvm.fmuladd.f64(double %95, double 0xBFC0907DC193068F, double %97)
%99 = load double, double* %0
%100 = tail call double @llvm.fmuladd.f64(double %99, double 0x3FEAC4BDD6E3FD6F, double %98)
%101 = load double, double* %92
%102 = tail call double @llvm.fmuladd.f64(double %101, double 0xBFCCB0BF0B6B7109, double %100)
%103 = getelementptr inbounds double, double* %8, i64 1
store double %102, double* %103
%104 = zext i32 %79 to i64
%105 = icmp ult i32 %79, 2
br i1 %105, label %171, label %106
106: ; preds = %78
%107 = getelementptr double, double* %8, i64 2
%108 = shl nuw nsw i64 %104, 1
%109 = add nuw nsw i64 %108, 2
%110 = getelementptr double, double* %8, i64 %109
%111 = getelementptr double, double* %0, i64 %91
%112 = add nuw nsw i64 %91, %104
%113 = add nuw nsw i64 %112, 1
%114 = getelementptr double, double* %0, i64 %113
%115 = add nuw nsw i64 %104, 1
%116 = getelementptr double, double* %0, i64 %115
%117 = icmp ult double* %107, %114
%118 = icmp ult double* %111, %110
%119 = and i1 %117, %118
%120 = icmp ult double* %107, %116
%121 = icmp ugt double* %110, %0
%122 = and i1 %120, %121
%123 = or i1 %119, %122
br i1 %123, label %171, label %124
124: ; preds = %106
%125 = and i64 %104, 4294967294
%126 = shl nuw nsw i64 %104, 1
%127 = or i64 %126, 2
%128 = getelementptr inbounds double, double* %8, i64 -1
br label %129
129: ; preds = %129, %124
%130 = phi i64 [ 0, %124 ], [ %167, %129 ]
%131 = shl i64 %130, 1
%132 = getelementptr inbounds double, double* %0, i64 %130
%133 = bitcast double* %132 to <2 x double>*
%134 = load <2 x double>, <2 x double>* %133
%135 = add nuw nsw i64 %130, %91
%136 = getelementptr inbounds double, double* %0, i64 %135
%137 = bitcast double* %136 to <2 x double>*
%138 = load <2 x double>, <2 x double>* %137
%139 = fmul <2 x double> %138, <double 0x3FEAC4BDD6E3FD6F, double 0x3FEAC4BDD6E3FD6F>
%140 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %134, <2 x double> <double 0x3FCCB0BF0B6B7109, double 0x3FCCB0BF0B6B7109>, <2 x double> %139)
%141 = or i64 %130, 1
%142 = getelementptr inbounds double, double* %0, i64 %141
%143 = bitcast double* %142 to <2 x double>*
%144 = load <2 x double>, <2 x double>* %143
%145 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %144, <2 x double> <double 0x3FDEE8DD4748BF14, double 0x3FDEE8DD4748BF14>, <2 x double> %140)
%146 = add nuw nsw i64 %135, 1
%147 = getelementptr inbounds double, double* %0, i64 %146
%148 = bitcast double* %147 to <2 x double>*
%149 = load <2 x double>, <2 x double>* %148
%150 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %149, <2 x double> <double 0xBFC0907DC193068F, double 0xBFC0907DC193068F>, <2 x double> %145)
%151 = or i64 %131, 3
%152 = bitcast double* %132 to <2 x double>*
%153 = load <2 x double>, <2 x double>* %152
%154 = bitcast double* %136 to <2 x double>*
%155 = load <2 x double>, <2 x double>* %154
%156 = fmul <2 x double> %155, <double 0xBFDEE8DD4748BF14, double 0xBFDEE8DD4748BF14>
%157 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %153, <2 x double> <double 0xBFC0907DC193068F, double 0xBFC0907DC193068F>, <2 x double> %156)
%158 = bitcast double* %142 to <2 x double>*
%159 = load <2 x double>, <2 x double>* %158
%160 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %159, <2 x double> <double 0x3FEAC4BDD6E3FD6F, double 0x3FEAC4BDD6E3FD6F>, <2 x double> %157)
%161 = bitcast double* %147 to <2 x double>*
%162 = load <2 x double>, <2 x double>* %161
%163 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %162, <2 x double> <double 0xBFCCB0BF0B6B7109, double 0xBFCCB0BF0B6B7109>, <2 x double> %160)
%164 = getelementptr inbounds double, double* %128, i64 %151
%165 = bitcast double* %164 to <4 x double>*
%166 = shufflevector <2 x double> %150, <2 x double> %163, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %166, <4 x double>* %165
%167 = add nuw i64 %130, 2
%168 = icmp eq i64 %167, %125
br i1 %168, label %169, label %129
169: ; preds = %129
%170 = icmp eq i64 %125, %104
br i1 %170, label %205, label %171
171: ; preds = %106, %78, %169
%172 = phi i64 [ 2, %106 ], [ 2, %78 ], [ %127, %169 ]
%173 = phi i64 [ 0, %106 ], [ 0, %78 ], [ %125, %169 ]
br label %174
174: ; preds = %171, %174
%175 = phi i64 [ %202, %174 ], [ %172, %171 ]
%176 = phi i64 [ %184, %174 ], [ %173, %171 ]
%177 = getelementptr inbounds double, double* %0, i64 %176
%178 = load double, double* %177
%179 = add nuw nsw i64 %176, %91
%180 = getelementptr inbounds double, double* %0, i64 %179
%181 = load double, double* %180
%182 = fmul double %181, 0x3FEAC4BDD6E3FD6F
%183 = tail call double @llvm.fmuladd.f64(double %178, double 0x3FCCB0BF0B6B7109, double %182)
%184 = add nuw nsw i64 %176, 1
%185 = getelementptr inbounds double, double* %0, i64 %184
%186 = load double, double* %185
%187 = tail call double @llvm.fmuladd.f64(double %186, double 0x3FDEE8DD4748BF14, double %183)
%188 = add nuw nsw i64 %179, 1
%189 = getelementptr inbounds double, double* %0, i64 %188
%190 = load double, double* %189
%191 = tail call double @llvm.fmuladd.f64(double %190, double 0xBFC0907DC193068F, double %187)
%192 = or i64 %175, 1
%193 = getelementptr inbounds double, double* %8, i64 %175
store double %191, double* %193
%194 = load double, double* %177
%195 = load double, double* %180
%196 = fmul double %195, 0xBFDEE8DD4748BF14
%197 = tail call double @llvm.fmuladd.f64(double %194, double 0xBFC0907DC193068F, double %196)
%198 = load double, double* %185
%199 = tail call double @llvm.fmuladd.f64(double %198, double 0x3FEAC4BDD6E3FD6F, double %197)
%200 = load double, double* %189
%201 = tail call double @llvm.fmuladd.f64(double %200, double 0xBFCCB0BF0B6B7109, double %199)
%202 = add nuw nsw i64 %175, 2
%203 = getelementptr inbounds double, double* %8, i64 %192
store double %201, double* %203
%204 = icmp eq i64 %184, %104
br i1 %204, label %205, label %174
205: ; preds = %174, %169, %49
%206 = icmp sgt i32 %1, 0
br i1 %206, label %207, label %333
207: ; preds = %205
%208 = zext i32 %1 to i64
%209 = icmp ult i32 %1, 4
br i1 %209, label %296, label %210
210: ; preds = %207
%211 = getelementptr double, double* %0, i64 %208
%212 = bitcast double* %211 to i8*
%213 = getelementptr double, double* %8, i64 %208
%214 = icmp ugt double* %213, %0
%215 = icmp ult i8* %9, %212
%216 = and i1 %214, %215
br i1 %216, label %296, label %217
217: ; preds = %210
%218 = and i64 %208, 4294967292
%219 = add nsw i64 %218, -4
%220 = lshr exact i64 %219, 2
%221 = add nuw nsw i64 %220, 1
%222 = and i64 %221, 3
%223 = icmp ult i64 %219, 12
br i1 %223, label %275, label %224
224: ; preds = %217
%225 = and i64 %221, 9223372036854775804
br label %226
226: ; preds = %226, %224
%227 = phi i64 [ 0, %224 ], [ %272, %226 ]
%228 = phi i64 [ 0, %224 ], [ %273, %226 ]
%229 = getelementptr inbounds double, double* %8, i64 %227
%230 = bitcast double* %229 to <2 x double>*
%231 = load <2 x double>, <2 x double>* %230
%232 = getelementptr inbounds double, double* %229, i64 2
%233 = bitcast double* %232 to <2 x double>*
%234 = load <2 x double>, <2 x double>* %233
%235 = getelementptr inbounds double, double* %0, i64 %227
%236 = bitcast double* %235 to <2 x double>*
store <2 x double> %231, <2 x double>* %236
%237 = getelementptr inbounds double, double* %235, i64 2
%238 = bitcast double* %237 to <2 x double>*
store <2 x double> %234, <2 x double>* %238
%239 = or i64 %227, 4
%240 = getelementptr inbounds double, double* %8, i64 %239
%241 = bitcast double* %240 to <2 x double>*
%242 = load <2 x double>, <2 x double>* %241
%243 = getelementptr inbounds double, double* %240, i64 2
%244 = bitcast double* %243 to <2 x double>*
%245 = load <2 x double>, <2 x double>* %244
%246 = getelementptr inbounds double, double* %0, i64 %239
%247 = bitcast double* %246 to <2 x double>*
store <2 x double> %242, <2 x double>* %247
%248 = getelementptr inbounds double, double* %246, i64 2
%249 = bitcast double* %248 to <2 x double>*
store <2 x double> %245, <2 x double>* %249
%250 = or i64 %227, 8
%251 = getelementptr inbounds double, double* %8, i64 %250
%252 = bitcast double* %251 to <2 x double>*
%253 = load <2 x double>, <2 x double>* %252
%254 = getelementptr inbounds double, double* %251, i64 2
%255 = bitcast double* %254 to <2 x double>*
%256 = load <2 x double>, <2 x double>* %255
%257 = getelementptr inbounds double, double* %0, i64 %250
%258 = bitcast double* %257 to <2 x double>*
store <2 x double> %253, <2 x double>* %258
%259 = getelementptr inbounds double, double* %257, i64 2
%260 = bitcast double* %259 to <2 x double>*
store <2 x double> %256, <2 x double>* %260
%261 = or i64 %227, 12
%262 = getelementptr inbounds double, double* %8, i64 %261
%263 = bitcast double* %262 to <2 x double>*
%264 = load <2 x double>, <2 x double>* %263
%265 = getelementptr inbounds double, double* %262, i64 2
%266 = bitcast double* %265 to <2 x double>*
%267 = load <2 x double>, <2 x double>* %266
%268 = getelementptr inbounds double, double* %0, i64 %261
%269 = bitcast double* %268 to <2 x double>*
store <2 x double> %264, <2 x double>* %269
%270 = getelementptr inbounds double, double* %268, i64 2
%271 = bitcast double* %270 to <2 x double>*
store <2 x double> %267, <2 x double>* %271
%272 = add nuw i64 %227, 16
%273 = add nuw i64 %228, 4
%274 = icmp eq i64 %273, %225
br i1 %274, label %275, label %226
275: ; preds = %226, %217
%276 = phi i64 [ 0, %217 ], [ %272, %226 ]
%277 = icmp eq i64 %222, 0
br i1 %277, label %294, label %278
278: ; preds = %275, %278
%279 = phi i64 [ %291, %278 ], [ %276, %275 ]
%280 = phi i64 [ %292, %278 ], [ 0, %275 ]
%281 = getelementptr inbounds double, double* %8, i64 %279
%282 = bitcast double* %281 to <2 x double>*
%283 = load <2 x double>, <2 x double>* %282
%284 = getelementptr inbounds double, double* %281, i64 2
%285 = bitcast double* %284 to <2 x double>*
%286 = load <2 x double>, <2 x double>* %285
%287 = getelementptr inbounds double, double* %0, i64 %279
%288 = bitcast double* %287 to <2 x double>*
store <2 x double> %283, <2 x double>* %288
%289 = getelementptr inbounds double, double* %287, i64 2
%290 = bitcast double* %289 to <2 x double>*
store <2 x double> %286, <2 x double>* %290
%291 = add nuw i64 %279, 4
%292 = add i64 %280, 1
%293 = icmp eq i64 %292, %222
br i1 %293, label %294, label %278
294: ; preds = %278, %275
%295 = icmp eq i64 %218, %208
br i1 %295, label %333, label %296
296: ; preds = %210, %207, %294
%297 = phi i64 [ 0, %210 ], [ 0, %207 ], [ %218, %294 ]
%298 = xor i64 %297, -1
%299 = add nsw i64 %298, %208
%300 = and i64 %208, 3
%301 = icmp eq i64 %300, 0
br i1 %301, label %311, label %302
302: ; preds = %296, %302
%303 = phi i64 [ %308, %302 ], [ %297, %296 ]
%304 = phi i64 [ %309, %302 ], [ 0, %296 ]
%305 = getelementptr inbounds double, double* %8, i64 %303
%306 = load double, double* %305
%307 = getelementptr inbounds double, double* %0, i64 %303
store double %306, double* %307
%308 = add nuw nsw i64 %303, 1
%309 = add i64 %304, 1
%310 = icmp eq i64 %309, %300
br i1 %310, label %311, label %302
311: ; preds = %302, %296
%312 = phi i64 [ %297, %296 ], [ %308, %302 ]
%313 = icmp ult i64 %299, 3
br i1 %313, label %333, label %314
314: ; preds = %311, %314
%315 = phi i64 [ %331, %314 ], [ %312, %311 ]
%316 = getelementptr inbounds double, double* %8, i64 %315
%317 = load double, double* %316
%318 = getelementptr inbounds double, double* %0, i64 %315
store double %317, double* %318
%319 = add nuw nsw i64 %315, 1
%320 = getelementptr inbounds double, double* %8, i64 %319
%321 = load double, double* %320
%322 = getelementptr inbounds double, double* %0, i64 %319
store double %321, double* %322
%323 = add nuw nsw i64 %315, 2
%324 = getelementptr inbounds double, double* %8, i64 %323
%325 = load double, double* %324
%326 = getelementptr inbounds double, double* %0, i64 %323
store double %325, double* %326
%327 = add nuw nsw i64 %315, 3
%328 = getelementptr inbounds double, double* %8, i64 %327
%329 = load double, double* %328
%330 = getelementptr inbounds double, double* %0, i64 %327
store double %329, double* %330
%331 = add nuw nsw i64 %315, 4
%332 = icmp eq i64 %331, %208
br i1 %332, label %333, label %314
333: ; preds = %311, %314, %294, %205
%334 = tail call i32 @free(double* %8)
br label %335
335: ; preds = %3, %333
ret void
}