#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 */
double atan2(double, double);
double cos(double);
double sin(double);
double sqrt(double);
void do_ftuneven_complexinput(int NJD, double *t, double *input_real,
                              double *input_imag, double ft_sign,
                              double tt_zero, int Nfreq, double *freqvals,
                              double *FT_real, double *FT_imag,
                              double *FT_periodogram) {
  int ii_ww, ii_t;
  double magmean;
  double wrun, csum, ssum, wtau, sumr, sumi, scos2, ssin2, cval, sval;
  double ft_real, ft_imag, phi_this;
  for (ii_ww = 0; ii_ww < Nfreq; ii_ww++) {
    wrun = freqvals[ii_ww];
    if (wrun == 0.0) {
      FT_real[ii_ww] = 0.0;
      for (ii_t = 0; ii_t < NJD; ii_t++) {
        FT_real[ii_ww] += input_real[ii_t];
        FT_imag[ii_ww] += input_imag[ii_t];
      }
      FT_real[ii_ww] = FT_real[ii_ww] / sqrt(NJD);
      FT_imag[ii_ww] = FT_imag[ii_ww] / sqrt(NJD);
      FT_periodogram[ii_ww] =
          FT_real[ii_ww] * FT_real[ii_ww] + FT_imag[ii_ww] * FT_imag[ii_ww];
    } else {
      csum = 0.0;
      ssum = 0.0;
      for (ii_t = 0; ii_t < NJD; ii_t++) {
        csum += cos(2.0 * wrun * t[ii_t]);
        ssum += sin(2.0 * wrun * t[ii_t]);
      }
      wtau = 0.5 * atan2(ssum, csum);
      sumr = 0.0;
      sumi = 0.0;
      scos2 = 0.0;
      ssin2 = 0.0;
      for (ii_t = 0; ii_t < NJD; ii_t++) {
        cval = cos(wrun * t[ii_t] - wtau);
        sval = sin(wrun * t[ii_t] - wtau);
        sumr += input_real[ii_t] * cval - ft_sign * input_imag[ii_t] * sval;
        sumi += ft_sign * input_real[ii_t] * sval + input_imag[ii_t] * cval;
        scos2 += cval * cval;
        ssin2 += sval * sval;
      }
      if (ft_sign > 0) {
        sumr = sumr / sqrt(2.0);
        sumi = sumi / sqrt(2.0);
      }
      ft_real = sumr / (sqrt(2.0) * sqrt(scos2));
      ft_imag = sumi / (sqrt(2.0) * sqrt(ssin2));
      phi_this = wtau - wrun * tt_zero;
      FT_real[ii_ww] = ft_real * cos(phi_this) - ft_imag * sin(phi_this);
      FT_imag[ii_ww] = ft_imag * cos(phi_this) + ft_real * sin(phi_this);
      FT_periodogram[ii_ww] = (sumr * sumr / scos2) + (sumi * sumi / ssin2);
    }
  }
}


x86 assembly (clang, -O0):
<do_ftuneven_complexinput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    17d7 <do_ftuneven_complexinput+0x697>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12e8 <do_ftuneven_complexinput+0x1a8>
jp     12e8 <do_ftuneven_complexinput+0x1a8>
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1224 <do_ftuneven_complexinput+0xe4>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    11cc <do_ftuneven_complexinput+0x8c>
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
cvtsi2sdl -0x4(%rbp),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
cvtsi2sdl -0x4(%rbp),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    17c4 <do_ftuneven_complexinput+0x684>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    136b <do_ftuneven_complexinput+0x22b>
movsd  0xcf5(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
call   1050 <cos@plt>
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xccc(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
call   1040 <sin@plt>
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12ff <do_ftuneven_complexinput+0x1bf>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
call   1030 <atan2@plt>
movaps %xmm0,%xmm1
movsd  0xc7b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1544 <do_ftuneven_complexinput+0x404>
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0x28(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  -0xa0(%rbp),%xmm2
ff
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    13bb <do_ftuneven_complexinput+0x27b>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    15b2 <do_ftuneven_complexinput+0x472>
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xa9d(%rip),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xa6f(%rip),%xmm0
call   1060 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  0xa41(%rip),%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
call   1060 <sqrt@plt>
movsd  -0x128(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x120(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0x9ef(%rip),%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
call   1060 <sqrt@plt>
movsd  -0x118(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x110(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x70(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
call   1050 <cos@plt>
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
call   1040 <sin@plt>
movsd  -0x108(%rbp),%xmm1
ff
movsd  -0x100(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
call   1050 <cos@plt>
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
call   1040 <sin@plt>
movsd  -0xf0(%rbp),%xmm1
ff
movsd  -0xe8(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  -0x80(%rbp),%xmm1
mulsd  -0x80(%rbp),%xmm1
divsd  -0x90(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
mov    0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    17c9 <do_ftuneven_complexinput+0x689>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    117f <do_ftuneven_complexinput+0x3f>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_ftuneven_complexinput>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
movsd  %xmm1,0xa8(%rsp)
test   %r8d,%r8d
jle    179e <do_ftuneven_complexinput+0x65e>
mov    %r9,%r13
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r14
mov    %edi,%ebx
mov    0xf8(%rsp),%rcx
xorps  %xmm1,%xmm1
cvtsi2sd %edi,%xmm1
mov    0xf0(%rsp),%rdx
mov    %r8d,%eax
mov    %rax,0xb0(%rsp)
mov    %edi,%eax
lea    -0x1(%rax),%rsi
mov    %rsi,0x88(%rsp)
mov    %eax,%esi
and    $0xfffffffe,%esi
xor    %ebp,%ebp
xorpd  %xmm2,%xmm2
sqrtsd %xmm1,%xmm3
movsd  %xmm0,0x48(%rsp)
movsd  %xmm1,0x68(%rsp)
mov    %rax,0x50(%rsp)
mov    %rsi,0x60(%rsp)
movsd  %xmm3,0x58(%rsp)
mov    %r9,0x80(%rsp)
mov    %edi,0x44(%rsp)
jmp    1219 <do_ftuneven_complexinput+0xd9>
nopw   0x0(%rax,%rax,1)
divsd  %xmm0,%xmm4
movsd  %xmm4,(%rcx,%rbp,8)
movsd  (%rdx,%rbp,8),%xmm0
mulsd  %xmm4,%xmm4
mulsd  %xmm0,%xmm0
addsd  %xmm4,%xmm0
mov    0x100(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    0xb0(%rsp),%rbp
je     179e <do_ftuneven_complexinput+0x65e>
movsd  0x0(%r13,%rbp,8),%xmm0
ucomisd %xmm2,%xmm0
jne    12c0 <do_ftuneven_complexinput+0x180>
jp     12c0 <do_ftuneven_complexinput+0x180>
movq   $0x0,(%rdx,%rbp,8)
test   %ebx,%ebx
jle    14f0 <do_ftuneven_complexinput+0x3b0>
cmpq   $0x0,0x88(%rsp)
je     14f6 <do_ftuneven_complexinput+0x3b6>
xorpd  %xmm4,%xmm4
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
addsd  (%r12,%rax,8),%xmm4
movsd  %xmm4,(%rdx,%rbp,8)
movsd  (%r15,%rax,8),%xmm0
addsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rcx,%rbp,8)
movsd  0x8(%r12,%rax,8),%xmm0
addsd  (%rdx,%rbp,8),%xmm0
movsd  %xmm0,(%rdx,%rbp,8)
movsd  0x8(%r15,%rax,8),%xmm0
addsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rcx,%rbp,8)
add    $0x2,%rax
movsd  (%rdx,%rbp,8),%xmm4
cmp    %rax,%rsi
jne    1260 <do_ftuneven_complexinput+0x120>
testb  $0x1,0x50(%rsp)
jne    1503 <do_ftuneven_complexinput+0x3c3>
jmp    1523 <do_ftuneven_complexinput+0x3e3>
nopl   0x0(%rax,%rax,1)
test   %ebx,%ebx
movsd  %xmm0,0x28(%rsp)
jle    15c2 <do_ftuneven_complexinput+0x482>
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
cmpq   $0x0,0x88(%rsp)
movsd  %xmm1,0x10(%rsp)
xorpd  %xmm0,%xmm0
je     15f3 <do_ftuneven_complexinput+0x4b3>
movsd  %xmm0,(%rsp)
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
mov    %rsi,%rbx
xchg   %ax,%ax
movsd  %xmm0,0x30(%rsp)
movsd  (%r14,%r13,8),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  (%r14,%r13,8),%xmm0
mulsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
addsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%r14,%r13,8),%xmm0
mulsd  0x10(%rsp),%xmm0
call   1050 <cos@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%r14,%r13,8),%xmm0
mulsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x10(%rsp),%xmm1
addsd  0x30(%rsp),%xmm0
add    $0x2,%r13
cmp    %r13,%rbx
jne    1300 <do_ftuneven_complexinput+0x1c0>
testb  $0x1,0x50(%rsp)
je     13d0 <do_ftuneven_complexinput+0x290>
movsd  %xmm0,0x30(%rsp)
movsd  (%r14,%r13,8),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  (%r14,%r13,8),%xmm0
call   1040 <sin@plt>
movsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0x30(%rsp),%xmm0
movsd  (%rsp),%xmm1
call   1030 <atan2@plt>
mulsd  0xc1e(%rip),%xmm0
mov    0x44(%rsp),%ebx
test   %ebx,%ebx
movapd %xmm0,0x70(%rsp)
jle    160f <do_ftuneven_complexinput+0x4cf>
movapd %xmm0,%xmm1
movapd 0xc10(%rip),%xmm0
xorpd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
xorpd  %xmm2,%xmm2
mov    0x50(%rsp),%r13
xor    %ebx,%ebx
xorpd  %xmm0,%xmm0
nopl   0x0(%rax,%rax,1)
movapd %xmm2,0x10(%rsp)
movapd %xmm0,0x30(%rsp)
movsd  (%r14,%rbx,8),%xmm0
mulsd  0x28(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1050 <cos@plt>
movapd %xmm0,0x90(%rsp)
movsd  (%r14,%rbx,8),%xmm0
mulsd  0x28(%rsp),%xmm0
addsd  (%rsp),%xmm0
call   1040 <sin@plt>
movapd %xmm0,%xmm5
movsd  (%r12,%rbx,8),%xmm0
movsd  (%r15,%rbx,8),%xmm1
movapd %xmm1,%xmm2
xorpd  0xb93(%rip),%xmm2
movsd  0x48(%rsp),%xmm4
mulsd  %xmm4,%xmm2
movapd %xmm0,%xmm3
mulsd  %xmm4,%xmm3
movapd 0x90(%rsp),%xmm6
movapd %xmm6,%xmm4
unpcklpd %xmm5,%xmm4
unpcklpd %xmm2,%xmm1
movapd 0x10(%rsp),%xmm2
mulpd  %xmm4,%xmm1
unpcklpd %xmm0,%xmm3
unpcklpd %xmm6,%xmm5
mulpd  %xmm5,%xmm3
addpd  %xmm1,%xmm3
movapd 0x30(%rsp),%xmm1
addpd  %xmm3,%xmm2
mulpd  %xmm5,%xmm5
movapd %xmm5,%xmm0
addpd  %xmm1,%xmm0
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1420 <do_ftuneven_complexinput+0x2e0>
addpd  %xmm1,%xmm5
jmp    1617 <do_ftuneven_complexinput+0x4d7>
nopw   0x0(%rax,%rax,1)
xorpd  %xmm4,%xmm4
jmp    1523 <do_ftuneven_complexinput+0x3e3>
xorpd  %xmm4,%xmm4
xor    %eax,%eax
testb  $0x1,0x50(%rsp)
je     1523 <do_ftuneven_complexinput+0x3e3>
addsd  (%r12,%rax,8),%xmm4
movsd  %xmm4,(%rdx,%rbp,8)
movsd  (%r15,%rax,8),%xmm0
addsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rcx,%rbp,8)
movsd  (%rdx,%rbp,8),%xmm4
ucomisd %xmm2,%xmm1
movapd %xmm3,%xmm0
jae    1567 <do_ftuneven_complexinput+0x427>
movapd %xmm1,%xmm0
movsd  %xmm4,0x10(%rsp)
call   1060 <sqrt@plt>
movsd  0x10(%rsp),%xmm4
movsd  0x58(%rsp),%xmm3
xorpd  %xmm2,%xmm2
mov    0x60(%rsp),%rsi
mov    0xf0(%rsp),%rdx
movsd  0x68(%rsp),%xmm1
mov    0xf8(%rsp),%rcx
divsd  %xmm0,%xmm4
movsd  %xmm4,(%rdx,%rbp,8)
movsd  (%rcx,%rbp,8),%xmm4
ucomisd %xmm2,%xmm1
movapd %xmm3,%xmm0
jae    11e0 <do_ftuneven_complexinput+0xa0>
movapd %xmm1,%xmm0
movsd  %xmm4,0x10(%rsp)
call   1060 <sqrt@plt>
movsd  0x10(%rsp),%xmm4
movsd  0x58(%rsp),%xmm3
xorpd  %xmm2,%xmm2
mov    0x60(%rsp),%rsi
mov    0xf0(%rsp),%rdx
movsd  0x68(%rsp),%xmm1
mov    0xf8(%rsp),%rcx
jmp    11e0 <do_ftuneven_complexinput+0xa0>
xorpd  %xmm0,%xmm0
movapd %xmm0,0x70(%rsp)
xorpd  %xmm0,%xmm0
xorpd  %xmm1,%xmm1
call   1030 <atan2@plt>
xorpd  %xmm1,%xmm1
movsd  0x48(%rsp),%xmm0
xorpd  %xmm2,%xmm2
xorpd  %xmm5,%xmm5
ucomisd %xmm1,%xmm0
ja     162f <do_ftuneven_complexinput+0x4ef>
jmp    1637 <do_ftuneven_complexinput+0x4f7>
movsd  %xmm0,(%rsp)
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
testb  $0x1,0x50(%rsp)
jne    1386 <do_ftuneven_complexinput+0x246>
jmp    13d0 <do_ftuneven_complexinput+0x290>
xorpd  %xmm2,%xmm2
xorpd  %xmm5,%xmm5
mov    0x80(%rsp),%r13
movsd  0x48(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1637 <do_ftuneven_complexinput+0x4f7>
divpd  0x9e9(%rip),%xmm2
movapd %xmm5,%xmm0
unpckhpd %xmm5,%xmm0
ucomisd %xmm1,%xmm0
movapd %xmm2,0x10(%rsp)
movapd %xmm5,0x90(%rsp)
jb     165d <do_ftuneven_complexinput+0x51d>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
jmp    1673 <do_ftuneven_complexinput+0x533>
call   1060 <sqrt@plt>
movapd 0x90(%rsp),%xmm5
xorpd  %xmm1,%xmm1
movapd %xmm0,%xmm3
mulsd  0x98d(%rip),%xmm3
ucomisd %xmm1,%xmm5
jb     168a <do_ftuneven_complexinput+0x54a>
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
jmp    169d <do_ftuneven_complexinput+0x55d>
movapd %xmm5,%xmm0
movsd  %xmm3,(%rsp)
call   1060 <sqrt@plt>
movsd  (%rsp),%xmm3
movapd 0x10(%rsp),%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
divsd  %xmm3,%xmm2
movapd %xmm2,(%rsp)
mulsd  0x94c(%rip),%xmm0
movapd %xmm1,%xmm2
divsd  %xmm0,%xmm2
movapd %xmm2,0x30(%rsp)
movsd  0x28(%rsp),%xmm1
mulsd  0xa8(%rsp),%xmm1
movapd 0x70(%rsp),%xmm0
subsd  %xmm1,%xmm0
movapd %xmm0,0x70(%rsp)
call   1050 <cos@plt>
movsd  %xmm0,0x28(%rsp)
movapd 0x70(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
mov    0xf0(%rsp),%rbx
movsd  %xmm1,(%rbx,%rbp,8)
movaps 0x70(%rsp),%xmm0
call   1050 <cos@plt>
movsd  %xmm0,0x28(%rsp)
movapd 0x70(%rsp),%xmm0
call   1040 <sin@plt>
mov    %rbx,%rdx
mulsd  (%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
mulsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
mov    0xf8(%rsp),%rcx
movsd  %xmm1,(%rcx,%rbp,8)
movapd 0x10(%rsp),%xmm1
mulpd  %xmm1,%xmm1
divpd  0x90(%rsp),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  0x68(%rsp),%xmm1
mov    0x60(%rsp),%rsi
xorpd  %xmm2,%xmm2
movsd  0x58(%rsp),%xmm3
mov    0x44(%rsp),%ebx
jmp    11fa <do_ftuneven_complexinput+0xba>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @do_ftuneven_complexinput(i32 %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double %4, double %5, i32 %6, double* nocapture %7, double* nocapture %8, double* nocapture %9, double* nocapture writeonly %10) {
%12 = icmp sgt i32 %6, 0
br i1 %12, label %13, label %214
13: ; preds = %11
%14 = icmp sgt i32 %0, 0
%15 = fcmp ogt double %4, 0.000000e+00
%16 = sitofp i32 %0 to double
%17 = zext i32 %6 to i64
%18 = zext i32 %0 to i64
%19 = zext i32 %0 to i64
%20 = add nsw i64 %18, -1
%21 = and i64 %18, 1
%22 = icmp eq i64 %20, 0
%23 = and i64 %18, 4294967294
%24 = icmp eq i64 %21, 0
%25 = and i64 %18, 1
%26 = icmp eq i64 %20, 0
%27 = and i64 %18, 4294967294
%28 = icmp eq i64 %25, 0
br label %29
29: ; preds = %13, %209
%30 = phi i64 [ 0, %13 ], [ %212, %209 ]
%31 = getelementptr inbounds double, double* %7, i64 %30
%32 = load double, double* %31
%33 = fcmp oeq double %32, 0.000000e+00
br i1 %33, label %39, label %34
34: ; preds = %29
br i1 %14, label %37, label %35
35: ; preds = %34
%36 = tail call double @atan2(double 0.000000e+00, double 0.000000e+00)
br label %175
37: ; preds = %34
%38 = fmul double %32, 2.000000e+00
br i1 %22, label %118, label %91
39: ; preds = %29
%40 = getelementptr inbounds double, double* %8, i64 %30
store double 0.000000e+00, double* %40
br i1 %14, label %41, label %80
41: ; preds = %39
%42 = getelementptr inbounds double, double* %9, i64 %30
br i1 %26, label %67, label %43
43: ; preds = %41, %43
%44 = phi double [ %64, %43 ], [ 0.000000e+00, %41 ]
%45 = phi i64 [ %63, %43 ], [ 0, %41 ]
%46 = phi i64 [ %65, %43 ], [ 0, %41 ]
%47 = getelementptr inbounds double, double* %2, i64 %45
%48 = load double, double* %47
%49 = fadd double %48, %44
store double %49, double* %40
%50 = getelementptr inbounds double, double* %3, i64 %45
%51 = load double, double* %50
%52 = load double, double* %42
%53 = fadd double %51, %52
store double %53, double* %42
%54 = or i64 %45, 1
%55 = load double, double* %40
%56 = getelementptr inbounds double, double* %2, i64 %54
%57 = load double, double* %56
%58 = fadd double %57, %55
store double %58, double* %40
%59 = getelementptr inbounds double, double* %3, i64 %54
%60 = load double, double* %59
%61 = load double, double* %42
%62 = fadd double %60, %61
store double %62, double* %42
%63 = add nuw nsw i64 %45, 2
%64 = load double, double* %40
%65 = add i64 %46, 2
%66 = icmp eq i64 %65, %27
br i1 %66, label %67, label %43
67: ; preds = %43, %41
%68 = phi double [ undef, %41 ], [ %64, %43 ]
%69 = phi double [ 0.000000e+00, %41 ], [ %64, %43 ]
%70 = phi i64 [ 0, %41 ], [ %63, %43 ]
br i1 %28, label %80, label %71
71: ; preds = %67
%72 = getelementptr inbounds double, double* %2, i64 %70
%73 = load double, double* %72
%74 = fadd double %73, %69
store double %74, double* %40
%75 = getelementptr inbounds double, double* %3, i64 %70
%76 = load double, double* %75
%77 = load double, double* %42
%78 = fadd double %76, %77
store double %78, double* %42
%79 = load double, double* %40
br label %80
80: ; preds = %71, %67, %39
%81 = phi double [ 0.000000e+00, %39 ], [ %68, %67 ], [ %79, %71 ]
%82 = tail call double @sqrt(double %16)
%83 = fdiv double %81, %82
store double %83, double* %40
%84 = getelementptr inbounds double, double* %9, i64 %30
%85 = load double, double* %84
%86 = tail call double @sqrt(double %16)
%87 = fdiv double %85, %86
store double %87, double* %84
%88 = load double, double* %40
%89 = fmul double %87, %87
%90 = tail call double @llvm.fmuladd.f64(double %88, double %88, double %89)
br label %209
91: ; preds = %37, %91
%92 = phi i64 [ %115, %91 ], [ 0, %37 ]
%93 = phi double [ %110, %91 ], [ 0.000000e+00, %37 ]
%94 = phi double [ %114, %91 ], [ 0.000000e+00, %37 ]
%95 = phi i64 [ %116, %91 ], [ 0, %37 ]
%96 = getelementptr inbounds double, double* %1, i64 %92
%97 = load double, double* %96
%98 = fmul double %38, %97
%99 = tail call double @cos(double %98)
%100 = fadd double %93, %99
%101 = load double, double* %96
%102 = fmul double %38, %101
%103 = tail call double @sin(double %102)
%104 = fadd double %94, %103
%105 = or i64 %92, 1
%106 = getelementptr inbounds double, double* %1, i64 %105
%107 = load double, double* %106
%108 = fmul double %38, %107
%109 = tail call double @cos(double %108)
%110 = fadd double %100, %109
%111 = load double, double* %106
%112 = fmul double %38, %111
%113 = tail call double @sin(double %112)
%114 = fadd double %104, %113
%115 = add nuw nsw i64 %92, 2
%116 = add i64 %95, 2
%117 = icmp eq i64 %116, %23
br i1 %117, label %118, label %91
118: ; preds = %91, %37
%119 = phi double [ undef, %37 ], [ %110, %91 ]
%120 = phi double [ undef, %37 ], [ %114, %91 ]
%121 = phi i64 [ 0, %37 ], [ %115, %91 ]
%122 = phi double [ 0.000000e+00, %37 ], [ %110, %91 ]
%123 = phi double [ 0.000000e+00, %37 ], [ %114, %91 ]
br i1 %24, label %134, label %124
124: ; preds = %118
%125 = getelementptr inbounds double, double* %1, i64 %121
%126 = load double, double* %125
%127 = fmul double %38, %126
%128 = tail call double @cos(double %127)
%129 = fadd double %122, %128
%130 = load double, double* %125
%131 = fmul double %38, %130
%132 = tail call double @sin(double %131)
%133 = fadd double %123, %132
br label %134
134: ; preds = %118, %124
%135 = phi double [ %119, %118 ], [ %129, %124 ]
%136 = phi double [ %120, %118 ], [ %133, %124 ]
%137 = tail call double @atan2(double %136, double %135)
%138 = fmul double %137, 5.000000e-01
br i1 %14, label %139, label %175
139: ; preds = %134
%140 = fneg double %138
br label %141
141: ; preds = %139, %141
%142 = phi i64 [ 0, %139 ], [ %171, %141 ]
%143 = phi <2 x double> [ zeroinitializer, %139 ], [ %169, %141 ]
%144 = phi <2 x double> [ zeroinitializer, %139 ], [ %170, %141 ]
%145 = getelementptr inbounds double, double* %1, i64 %142
%146 = load double, double* %145
%147 = tail call double @llvm.fmuladd.f64(double %32, double %146, double %140)
%148 = tail call double @cos(double %147)
%149 = load double, double* %145
%150 = tail call double @llvm.fmuladd.f64(double %32, double %149, double %140)
%151 = tail call double @sin(double %150)
%152 = getelementptr inbounds double, double* %2, i64 %142
%153 = load double, double* %152
%154 = getelementptr inbounds double, double* %3, i64 %142
%155 = load double, double* %154
%156 = fneg double %155
%157 = fmul double %156, %4
%158 = fmul double %153, %4
%159 = insertelement <2 x double> poison, double %148, i64 0
%160 = insertelement <2 x double> %159, double %151, i64 1
%161 = insertelement <2 x double> poison, double %155, i64 0
%162 = insertelement <2 x double> %161, double %157, i64 1
%163 = fmul <2 x double> %160, %162
%164 = insertelement <2 x double> poison, double %158, i64 0
%165 = insertelement <2 x double> %164, double %153, i64 1
%166 = insertelement <2 x double> poison, double %151, i64 0
%167 = insertelement <2 x double> %166, double %148, i64 1
%168 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %165, <2 x double> %167, <2 x double> %163)
%169 = fadd <2 x double> %143, %168
%170 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %167, <2 x double> %167, <2 x double> %144)
%171 = add nuw nsw i64 %142, 1
%172 = icmp eq i64 %171, %19
br i1 %172, label %173, label %141
173: ; preds = %141
%174 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %167, <2 x double> %167, <2 x double> %144)
br label %175
175: ; preds = %173, %35, %134
%176 = phi double [ %138, %134 ], [ 0.000000e+00, %35 ], [ %138, %173 ]
%177 = phi <2 x double> [ zeroinitializer, %134 ], [ zeroinitializer, %35 ], [ %169, %173 ]
%178 = phi <2 x double> [ zeroinitializer, %134 ], [ zeroinitializer, %35 ], [ %174, %173 ]
%179 = fdiv <2 x double> %177, <double 0x3FF6A09E667F3BCD, double 0x3FF6A09E667F3BCD>
%180 = select i1 %15, <2 x double> %179, <2 x double> %177
%181 = extractelement <2 x double> %178, i64 1
%182 = tail call double @sqrt(double %181)
%183 = fmul double %182, 0x3FF6A09E667F3BCD
%184 = extractelement <2 x double> %180, i64 1
%185 = fdiv double %184, %183
%186 = extractelement <2 x double> %178, i64 0
%187 = tail call double @sqrt(double %186)
%188 = fmul double %187, 0x3FF6A09E667F3BCD
%189 = extractelement <2 x double> %180, i64 0
%190 = fdiv double %189, %188
%191 = fneg double %32
%192 = tail call double @llvm.fmuladd.f64(double %191, double %5, double %176)
%193 = tail call double @cos(double %192)
%194 = tail call double @sin(double %192)
%195 = fneg double %190
%196 = fmul double %194, %195
%197 = tail call double @llvm.fmuladd.f64(double %185, double %193, double %196)
%198 = getelementptr inbounds double, double* %8, i64 %30
store double %197, double* %198
%199 = tail call double @cos(double %192)
%200 = tail call double @sin(double %192)
%201 = fmul double %185, %200
%202 = tail call double @llvm.fmuladd.f64(double %190, double %199, double %201)
%203 = getelementptr inbounds double, double* %9, i64 %30
store double %202, double* %203
%204 = fmul <2 x double> %180, %180
%205 = fdiv <2 x double> %204, %178
%206 = shufflevector <2 x double> %205, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%207 = fadd <2 x double> %205, %206
%208 = extractelement <2 x double> %207, i64 0
br label %209
209: ; preds = %80, %175
%210 = phi double [ %90, %80 ], [ %208, %175 ]
%211 = getelementptr inbounds double, double* %10, i64 %30
store double %210, double* %211
%212 = add nuw nsw i64 %30, 1
%213 = icmp eq i64 %212, %17
br i1 %213, label %214, label %29
214: ; preds = %209, %11
ret void
}