void fft(int n, double *A_re, double *A_im, double *W_re, double *W_im) {
  double w_re, w_im, u_re, u_im, t_re, t_im;
  int m, g, b;
  int i, mt, k;
  for (m = n; m >= 2; m = m >> 1) {
    mt = m >> 1;
    for (g = 0, k = 0; g < n; g += m, k++) {
      w_re = W_re[k];
      w_im = W_im[k];
      for (b = g; b < (g + mt); b++) {
        t_re = w_re * A_re[b + mt] - w_im * A_im[b + mt];
        t_im = w_re * A_im[b + mt] + w_im * A_re[b + mt];
        u_re = A_re[b];
        u_im = A_im[b];
        A_re[b] = u_re + t_re;
        A_im[b] = u_im + t_im;
        A_re[b + mt] = u_re - t_re;
        A_im[b + mt] = u_im - t_im;
      }
    }
  }
}


x86 assembly (clang, -O0):
<fft>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x5c(%rbp)
cmpl   $0x2,-0x5c(%rbp)
jl     12d9 <fft+0x1d9>
mov    -0x5c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x6c(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x0,-0x70(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12c6 <fft+0x1c6>
mov    -0x20(%rbp),%rax
movslq -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x60(%rbp),%ecx
add    -0x6c(%rbp),%ecx
cmp    %ecx,%eax
jge    12aa <fft+0x1aa>
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x64(%rbp),%ecx
add    -0x6c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x64(%rbp),%ecx
add    -0x6c(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x64(%rbp),%ecx
add    -0x6c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x64(%rbp),%ecx
add    -0x6c(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x64(%rbp),%ecx
add    -0x6c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x64(%rbp),%ecx
add    -0x6c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1174 <fft+0x74>
jmp    12af <fft+0x1af>
mov    -0x5c(%rbp),%eax
add    -0x60(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    113e <fft+0x3e>
jmp    12cb <fft+0x1cb>
mov    -0x5c(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    111d <fft+0x1d>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fft>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,0x10(%rsp)
mov    %rcx,0x8(%rsp)
mov    %rdx,-0x38(%rsp)
mov    %rsi,-0x40(%rsp)
mov    %edi,-0x68(%rsp)
cmp    $0x2,%edi
jl     155f <fft+0x45f>
movapd 0xec8(%rip),%xmm8
mov    -0x68(%rsp),%eax
mov    %rax,-0x30(%rsp)
jmp    115b <fft+0x5b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpl   $0x4,-0x64(%rsp)
jb     155f <fft+0x45f>
mov    -0x30(%rsp),%r10
mov    %r10d,%eax
shr    %r10d
mov    %eax,-0x64(%rsp)
movslq %eax,%rcx
mov    -0x68(%rsp),%eax
cmp    %eax,%ecx
cmovg  %ecx,%eax
add    $0xffffffff,%eax
xor    %edx,%edx
div    %ecx
add    $0x1,%eax
mov    %rax,0x28(%rsp)
lea    0x1(%r10),%rax
mov    %rax,-0x8(%rsp)
mov    -0x38(%rsp),%r15
lea    (%r15,%r10,8),%rdx
mov    %rcx,-0x10(%rsp)
lea    0x0(,%rcx,8),%rax
mov    %rax,0x20(%rsp)
mov    -0x40(%rsp),%rsi
lea    (%rsi,%r10,8),%rbx
mov    $0x1,%r13d
mov    %rbx,%rdi
mov    %rdx,%r11
xor    %eax,%eax
mov    %rax,-0x18(%rsp)
mov    %r10,-0x30(%rsp)
xor    %r12d,%r12d
xor    %r8d,%r8d
jmp    1218 <fft+0x118>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0x10(%rsp),%rax
add    %rax,%r8
add    $0x1,%r12
add    %rax,%r10
mov    0x30(%rsp),%r13
add    %rax,%r13
sub    %rax,-0x18(%rsp)
mov    0x20(%rsp),%rax
add    %rax,%r11
add    %rax,%rdi
add    %rax,%rsi
add    %rax,%r15
cmp    0x28(%rsp),%r12
je     1150 <fft+0x50>
cmp    %r13,%r10
mov    %r13,0x30(%rsp)
cmovg  %r10,%r13
mov    -0x30(%rsp),%rax
lea    (%r8,%rax,1),%r14
lea    0x1(%r8),%rax
cmp    %rax,%r14
cmovg  %r14,%rax
cmpl   $0x2,-0x64(%rsp)
jb     11e0 <fft+0xe0>
mov    %r12,%rcx
imul   -0x10(%rsp),%rcx
mov    %r10,0x18(%rsp)
mov    %rax,%r10
sub    %rcx,%r10
mov    0x8(%rsp),%rbp
movsd  0x0(%rbp,%r12,8),%xmm1
mov    0x10(%rsp),%rbp
movsd  0x0(%rbp,%r12,8),%xmm11
movapd %xmm11,%xmm3
xorpd  %xmm8,%xmm3
mov    %r8,%r9
mov    %r10,-0x20(%rsp)
cmp    $0x2,%r10
mov    0x18(%rsp),%r10
jae    1320 <fft+0x220>
mov    -0x40(%rsp),%rax
lea    (%rax,%r9,8),%rcx
mov    -0x38(%rsp),%rax
lea    (%rax,%r9,8),%rax
xchg   %ax,%ax
movsd  (%rbx,%r9,8),%xmm0
movsd  (%rdx,%r9,8),%xmm2
movapd %xmm2,%xmm4
mulsd  %xmm3,%xmm4
movapd %xmm1,%xmm5
mulsd  %xmm0,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm11,%xmm0
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  (%rcx),%xmm0
movsd  (%rax),%xmm4
movapd %xmm0,%xmm6
addsd  %xmm5,%xmm6
movsd  %xmm6,(%rcx)
movapd %xmm2,%xmm6
addsd  %xmm4,%xmm6
movsd  %xmm6,(%rax)
subsd  %xmm5,%xmm0
movsd  %xmm0,(%rbx,%r9,8)
subsd  %xmm2,%xmm4
movsd  %xmm4,(%rdx,%r9,8)
add    $0x1,%r9
add    $0x8,%rcx
add    $0x8,%rax
cmp    %r14,%r9
jl     12a0 <fft+0x1a0>
jmp    11e0 <fft+0xe0>
nopw   0x0(%rax,%rax,1)
not    %rcx
add    %rcx,%rax
mov    -0x8(%rsp),%rcx
add    %r8,%rcx
mov    %rcx,-0x78(%rsp)
mov    -0x40(%rsp),%r9
lea    (%r9,%r8,8),%rcx
mov    %rcx,-0x60(%rsp)
lea    0x8(%rcx,%rax,8),%rcx
mov    %rcx,-0x58(%rsp)
mov    -0x38(%rsp),%rbp
lea    0x0(%rbp,%r8,8),%rcx
mov    %rcx,-0x70(%rsp)
mov    -0x70(%rsp),%rcx
lea    0x8(%rcx,%rax,8),%rcx
mov    %rcx,-0x48(%rsp)
lea    (%r9,%r14,8),%rcx
mov    %rcx,(%rsp)
mov    -0x78(%rsp),%rcx
lea    (%r9,%rcx,8),%r9
lea    (%r9,%rax,8),%rcx
mov    %rcx,-0x28(%rsp)
lea    0x0(%rbp,%r14,8),%rcx
mov    %rcx,-0x50(%rsp)
mov    -0x78(%rsp),%rcx
lea    0x0(%rbp,%rcx,8),%r9
lea    (%r9,%rax,8),%rax
mov    %rax,-0x78(%rsp)
mov    -0x60(%rsp),%rbp
cmp    -0x48(%rsp),%rbp
setb   -0x79(%rsp)
mov    -0x70(%rsp),%r9
mov    -0x58(%rsp),%rax
cmp    %rax,%r9
setb   -0x7a(%rsp)
mov    -0x28(%rsp),%rcx
cmp    %rcx,%rbp
setb   -0x7b(%rsp)
mov    (%rsp),%rbp
cmp    %rax,%rbp
setb   -0x7c(%rsp)
mov    -0x60(%rsp),%rax
cmp    -0x78(%rsp),%rax
setb   -0x60(%rsp)
mov    -0x58(%rsp),%rax
cmp    %rax,-0x50(%rsp)
setb   -0x58(%rsp)
cmp    %rcx,%r9
setb   -0x7d(%rsp)
mov    -0x48(%rsp),%rcx
cmp    %rcx,%rbp
setb   -0x7e(%rsp)
mov    -0x78(%rsp),%r9
cmp    %r9,-0x70(%rsp)
setb   -0x70(%rsp)
mov    -0x50(%rsp),%rax
cmp    %rcx,%rax
setb   -0x48(%rsp)
cmp    %r9,%rbp
setb   %bpl
cmp    -0x28(%rsp),%rax
setb   -0x50(%rsp)
mov    %r8,%r9
mov    -0x7a(%rsp),%al
test   %al,-0x79(%rsp)
jne    128c <fft+0x18c>
mov    %r8,%r9
mov    -0x7c(%rsp),%al
and    %al,-0x7b(%rsp)
jne    128c <fft+0x18c>
mov    %r8,%r9
mov    -0x60(%rsp),%al
and    -0x58(%rsp),%al
jne    128c <fft+0x18c>
mov    %r8,%r9
mov    -0x7e(%rsp),%cl
and    %cl,-0x7d(%rsp)
jne    128c <fft+0x18c>
mov    %r8,%r9
mov    -0x48(%rsp),%cl
and    %cl,-0x70(%rsp)
jne    128c <fft+0x18c>
mov    %r8,%r9
and    -0x50(%rsp),%bpl
jne    128c <fft+0x18c>
add    -0x18(%rsp),%r13
and    $0xfffffffffffffffe,%r13
mov    -0x20(%rsp),%rcx
and    $0xfffffffffffffffe,%rcx
lea    (%r8,%rcx,1),%r9
movapd %xmm3,%xmm9
unpcklpd %xmm3,%xmm9
movapd %xmm1,%xmm6
unpcklpd %xmm1,%xmm6
movapd %xmm11,%xmm10
unpcklpd %xmm11,%xmm10
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd (%rdi,%rax,8),%xmm7
movupd (%r11,%rax,8),%xmm0
movapd %xmm0,%xmm4
mulpd  %xmm9,%xmm4
movapd %xmm6,%xmm5
mulpd  %xmm7,%xmm5
addpd  %xmm4,%xmm5
mulpd  %xmm10,%xmm7
mulpd  %xmm6,%xmm0
addpd  %xmm7,%xmm0
movupd (%rsi,%rax,8),%xmm2
movupd (%r15,%rax,8),%xmm7
movapd %xmm2,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,(%rsi,%rax,8)
movapd %xmm0,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm4,(%r15,%rax,8)
subpd  %xmm5,%xmm2
movupd %xmm2,(%rdi,%rax,8)
subpd  %xmm0,%xmm7
movupd %xmm7,(%r11,%rax,8)
add    $0x2,%rax
cmp    %rax,%r13
jne    14e0 <fft+0x3e0>
cmp    %rcx,-0x20(%rsp)
je     11e0 <fft+0xe0>
jmp    128c <fft+0x18c>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fft(i32 %0, double* %1, double* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
store i32 %0, i32* %6
store double* %1, double** %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
%23 = load i32, i32* %6
store i32 %23, i32* %17
br label %24
24: ; preds = %143, %5
%25 = load i32, i32* %17
%26 = icmp sge i32 %25, 2
br i1 %26, label %27, label %146
27: ; preds = %24
%28 = load i32, i32* %17
%29 = ashr i32 %28, 1
store i32 %29, i32* %21
store i32 0, i32* %18
store i32 0, i32* %22
br label %30
30: ; preds = %136, %27
%31 = load i32, i32* %18
%32 = load i32, i32* %6
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %142
34: ; preds = %30
%35 = load double*, double** %9
%36 = load i32, i32* %22
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
%39 = load double, double* %38
store double %39, double* %11
%40 = load double*, double** %10
%41 = load i32, i32* %22
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
%44 = load double, double* %43
store double %44, double* %12
%45 = load i32, i32* %18
store i32 %45, i32* %19
br label %46
46: ; preds = %132, %34
%47 = load i32, i32* %19
%48 = load i32, i32* %18
%49 = load i32, i32* %21
%50 = add nsw i32 %48, %49
%51 = icmp slt i32 %47, %50
br i1 %51, label %52, label %135
52: ; preds = %46
%53 = load double, double* %11
%54 = load double*, double** %7
%55 = load i32, i32* %19
%56 = load i32, i32* %21
%57 = add nsw i32 %55, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %54, i64 %58
%60 = load double, double* %59
%61 = load double, double* %12
%62 = load double*, double** %8
%63 = load i32, i32* %19
%64 = load i32, i32* %21
%65 = add nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %62, i64 %66
%68 = load double, double* %67
%69 = fmul double %61, %68
%70 = fneg double %69
%71 = call double @llvm.fmuladd.f64(double %53, double %60, double %70)
store double %71, double* %15
%72 = load double, double* %11
%73 = load double*, double** %8
%74 = load i32, i32* %19
%75 = load i32, i32* %21
%76 = add nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %73, i64 %77
%79 = load double, double* %78
%80 = load double, double* %12
%81 = load double*, double** %7
%82 = load i32, i32* %19
%83 = load i32, i32* %21
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %81, i64 %85
%87 = load double, double* %86
%88 = fmul double %80, %87
%89 = call double @llvm.fmuladd.f64(double %72, double %79, double %88)
store double %89, double* %16
%90 = load double*, double** %7
%91 = load i32, i32* %19
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
store double %94, double* %13
%95 = load double*, double** %8
%96 = load i32, i32* %19
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
%99 = load double, double* %98
store double %99, double* %14
%100 = load double, double* %13
%101 = load double, double* %15
%102 = fadd double %100, %101
%103 = load double*, double** %7
%104 = load i32, i32* %19
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %103, i64 %105
store double %102, double* %106
%107 = load double, double* %14
%108 = load double, double* %16
%109 = fadd double %107, %108
%110 = load double*, double** %8
%111 = load i32, i32* %19
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, double* %110, i64 %112
store double %109, double* %113
%114 = load double, double* %13
%115 = load double, double* %15
%116 = fsub double %114, %115
%117 = load double*, double** %7
%118 = load i32, i32* %19
%119 = load i32, i32* %21
%120 = add nsw i32 %118, %119
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %117, i64 %121
store double %116, double* %122
%123 = load double, double* %14
%124 = load double, double* %16
%125 = fsub double %123, %124
%126 = load double*, double** %8
%127 = load i32, i32* %19
%128 = load i32, i32* %21
%129 = add nsw i32 %127, %128
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %126, i64 %130
store double %125, double* %131
br label %132
132: ; preds = %52
%133 = load i32, i32* %19
%134 = add nsw i32 %133, 1
store i32 %134, i32* %19
br label %46
135: ; preds = %46
br label %136
136: ; preds = %135
%137 = load i32, i32* %17
%138 = load i32, i32* %18
%139 = add nsw i32 %138, %137
store i32 %139, i32* %18
%140 = load i32, i32* %22
%141 = add nsw i32 %140, 1
store i32 %141, i32* %22
br label %30
142: ; preds = %30
br label %143
143: ; preds = %142
%144 = load i32, i32* %17
%145 = ashr i32 %144, 1
store i32 %145, i32* %17
br label %24
146: ; preds = %24
ret void
}

LLVM IR (-O2):
define void @fft(i32 %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4) {
%6 = icmp sgt i32 %0, 1
br i1 %6, label %9, label %148
7: ; preds = %144
%8 = icmp ugt i32 %10, 3
br i1 %8, label %9, label %148
9: ; preds = %5, %7
%10 = phi i32 [ %11, %7 ], [ %0, %5 ]
%11 = lshr i32 %10, 1
%12 = sext i32 %10 to i64
%13 = zext i32 %11 to i64
%14 = call i32 @llvm.smax.i32(i32 %10, i32 %0)
%15 = add i32 %14, -1
%16 = icmp ult i32 %10, 2
%17 = udiv i32 %15, %10
%18 = add i32 %17, 1
%19 = zext i32 %18 to i64
%20 = add nuw nsw i64 %13, 1
br label %21
21: ; preds = %9, %144
%22 = phi i64 [ 0, %9 ], [ %146, %144 ]
%23 = phi i64 [ 0, %9 ], [ %145, %144 ]
%24 = add i64 %23, %13
%25 = add i64 %23, 1
%26 = call i64 @llvm.smax.i64(i64 %24, i64 %25)
%27 = mul i64 %22, %12
%28 = sub i64 %26, %27
%29 = getelementptr double, double* %1, i64 %23
%30 = add i64 %23, 1
%31 = getelementptr double, double* %1, i64 %30
%32 = add i64 %23, %13
%33 = call i64 @llvm.smax.i64(i64 %32, i64 %30)
%34 = mul i64 %22, %12
%35 = xor i64 %34, -1
%36 = add i64 %33, %35
%37 = getelementptr double, double* %31, i64 %36
%38 = getelementptr double, double* %2, i64 %23
%39 = getelementptr double, double* %2, i64 %30
%40 = getelementptr double, double* %39, i64 %36
%41 = getelementptr double, double* %1, i64 %32
%42 = add i64 %20, %23
%43 = getelementptr double, double* %1, i64 %42
%44 = getelementptr double, double* %43, i64 %36
%45 = getelementptr double, double* %2, i64 %32
%46 = getelementptr double, double* %2, i64 %42
%47 = getelementptr double, double* %46, i64 %36
%48 = getelementptr inbounds double, double* %3, i64 %22
%49 = load double, double* %48
%50 = getelementptr inbounds double, double* %4, i64 %22
%51 = load double, double* %50
%52 = add nsw i64 %23, %13
br i1 %16, label %144, label %53
53: ; preds = %21
%54 = fneg double %51
%55 = icmp ult i64 %28, 2
br i1 %55, label %121, label %56
56: ; preds = %53
%57 = icmp ult double* %29, %40
%58 = icmp ult double* %38, %37
%59 = and i1 %57, %58
%60 = icmp ult double* %29, %44
%61 = icmp ult double* %41, %37
%62 = and i1 %60, %61
%63 = or i1 %59, %62
%64 = icmp ult double* %29, %47
%65 = icmp ult double* %45, %37
%66 = and i1 %64, %65
%67 = or i1 %63, %66
%68 = icmp ult double* %38, %44
%69 = icmp ult double* %41, %40
%70 = and i1 %68, %69
%71 = or i1 %67, %70
%72 = icmp ult double* %38, %47
%73 = icmp ult double* %45, %40
%74 = and i1 %72, %73
%75 = or i1 %71, %74
%76 = icmp ult double* %41, %47
%77 = icmp ult double* %45, %44
%78 = and i1 %76, %77
%79 = or i1 %75, %78
br i1 %79, label %121, label %80
80: ; preds = %56
%81 = and i64 %28, -2
%82 = add i64 %23, %81
%83 = insertelement <2 x double> poison, double %54, i64 0
%84 = shufflevector <2 x double> %83, <2 x double> poison, <2 x i32> zeroinitializer
%85 = insertelement <2 x double> poison, double %49, i64 0
%86 = shufflevector <2 x double> %85, <2 x double> poison, <2 x i32> zeroinitializer
%87 = insertelement <2 x double> poison, double %51, i64 0
%88 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> zeroinitializer
br label %89
89: ; preds = %89, %80
%90 = phi i64 [ 0, %80 ], [ %117, %89 ]
%91 = add i64 %23, %90
%92 = add nsw i64 %91, %13
%93 = getelementptr inbounds double, double* %1, i64 %92
%94 = bitcast double* %93 to <2 x double>*
%95 = load <2 x double>, <2 x double>* %94
%96 = getelementptr inbounds double, double* %2, i64 %92
%97 = bitcast double* %96 to <2 x double>*
%98 = load <2 x double>, <2 x double>* %97
%99 = fmul <2 x double> %98, %84
%100 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %86, <2 x double> %95, <2 x double> %99)
%101 = fmul <2 x double> %88, %95
%102 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %86, <2 x double> %98, <2 x double> %101)
%103 = getelementptr inbounds double, double* %1, i64 %91
%104 = bitcast double* %103 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = getelementptr inbounds double, double* %2, i64 %91
%107 = bitcast double* %106 to <2 x double>*
%108 = load <2 x double>, <2 x double>* %107
%109 = fadd <2 x double> %105, %100
%110 = bitcast double* %103 to <2 x double>*
store <2 x double> %109, <2 x double>* %110
%111 = fadd <2 x double> %102, %108
%112 = bitcast double* %106 to <2 x double>*
store <2 x double> %111, <2 x double>* %112
%113 = fsub <2 x double> %105, %100
%114 = bitcast double* %93 to <2 x double>*
store <2 x double> %113, <2 x double>* %114
%115 = fsub <2 x double> %108, %102
%116 = bitcast double* %96 to <2 x double>*
store <2 x double> %115, <2 x double>* %116
%117 = add nuw i64 %90, 2
%118 = icmp eq i64 %117, %81
br i1 %118, label %119, label %89
119: ; preds = %89
%120 = icmp eq i64 %28, %81
br i1 %120, label %144, label %121
121: ; preds = %56, %53, %119
%122 = phi i64 [ %23, %56 ], [ %23, %53 ], [ %82, %119 ]
br label %123
123: ; preds = %121, %123
%124 = phi i64 [ %142, %123 ], [ %122, %121 ]
%125 = add nsw i64 %124, %13
%126 = getelementptr inbounds double, double* %1, i64 %125
%127 = load double, double* %126
%128 = getelementptr inbounds double, double* %2, i64 %125
%129 = load double, double* %128
%130 = fmul double %129, %54
%131 = tail call double @llvm.fmuladd.f64(double %49, double %127, double %130)
%132 = fmul double %51, %127
%133 = tail call double @llvm.fmuladd.f64(double %49, double %129, double %132)
%134 = getelementptr inbounds double, double* %1, i64 %124
%135 = load double, double* %134
%136 = getelementptr inbounds double, double* %2, i64 %124
%137 = load double, double* %136
%138 = fadd double %135, %131
store double %138, double* %134
%139 = fadd double %133, %137
store double %139, double* %136
%140 = fsub double %135, %131
store double %140, double* %126
%141 = fsub double %137, %133
store double %141, double* %128
%142 = add nsw i64 %124, 1
%143 = icmp slt i64 %142, %52
br i1 %143, label %123, label %144
144: ; preds = %123, %119, %21
%145 = add i64 %23, %12
%146 = add nuw nsw i64 %22, 1
%147 = icmp eq i64 %146, %19
br i1 %147, label %7, label %21
148: ; preds = %7, %5
ret void
}