#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 cos(double);
double sin(double);
void mp_mul_rcsqu_nt_in(int n, double *a) {
  int i, i0, j, k;
  double ec, w1r, w1i, wkr, wki, wdr, wdi, ss;
  double xr, xi, yr, yi, ajr, aji, akr, aki;
  ec = 2 * ((double)1.570796326794896619231321691639751442098584) / n;
  wkr = 0;
  wki = 0;
  wdi = cos(ec);
  wdr = sin(ec);
  wdi *= wdr;
  wdr *= wdr;
  w1r = 1 - 2 * wdr;
  w1i = 2 * wdi;
  ss = 2 * w1i;
  i = n >> 1;
  xr = a[i];
  xi = a[i + 1];
  a[i] = xr * xr - xi * xi;
  a[i + 1] = 2 * xr * xi;
  for (;;) {
    i0 = i - 4 * 64;
    if (i0 < 2) {
      i0 = 2;
    }
    for (j = i - 2; j >= i0; j -= 2) {
      k = n - j;
      xr = wkr + ss * wdi;
      xi = wki + ss * (((double)0.5) - wdr);
      wkr = wdr;
      wki = wdi;
      wdr = xr;
      wdi = xi;
      xr = a[j];
      xi = a[j + 1];
      yr = a[k];
      yi = a[k + 1];
      ajr = xr * xr - xi * xi;
      aji = 2 * xr * xi;
      akr = yr * yr - yi * yi;
      aki = 2 * yr * yi;
      xr = ajr - akr;
      xi = aji + aki;
      yr = wkr * xr + wki * xi;
      yi = wkr * xi - wki * xr;
      a[j] = ajr - yr;
      a[j + 1] = aji - yi;
      a[k] = akr + yr;
      a[k + 1] = aki - yi;
    }
    if (i0 == 2) {
      break;
    }
    wkr = ((double)0.5) * sin(ec * i0);
    wki = ((double)0.5) * cos(ec * i0);
    wdr = ((double)0.5) - (wkr * w1r - wki * w1i);
    wdi = wkr * w1i + wki * w1r;
    wkr = ((double)0.5) - wkr;
    i = i0;
  }
}


x86 assembly (clang, -O0):
<mp_mul_rcsqu_nt_in>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm1
movsd  0xed1(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm1
addsd  %xmm1,%xmm1
movsd  0xe63(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe4a(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe38(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  0xdb4(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
sub    $0x100,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    1284 <mp_mul_rcsqu_nt_in+0x164>
movl   $0x2,-0x18(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     1509 <mp_mul_rcsqu_nt_in+0x3e9>
mov    -0x4(%rbp),%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  0xd48(%rip),%xmm2
subsd  -0x50(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xc61(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  -0x80(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xc0c(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x68(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
subsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x90(%rbp),%xmm0
ff
subsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x98(%rbp),%xmm0
ff
addsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
subsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x1c(%rbp)
jmp    128d <mp_mul_rcsqu_nt_in+0x16d>
cmpl   $0x2,-0x18(%rbp)
jne    1518 <mp_mul_rcsqu_nt_in+0x3f8>
jmp    15e8 <mp_mul_rcsqu_nt_in+0x4c8>
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  0xae2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xabb(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xa77(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xa45(%rip),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1268 <mp_mul_rcsqu_nt_in+0x148>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mp_mul_rcsqu_nt_in>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
cvtsi2sd %edi,%xmm1
movsd  0xec5(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
call   1040 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <sin@plt>
movsd  0x8(%rsp),%xmm7
mulsd  %xmm0,%xmm7
mulsd  %xmm0,%xmm0
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe8f(%rip),%xmm2
subsd  %xmm1,%xmm2
movsd  %xmm2,0x28(%rsp)
movapd %xmm7,%xmm1
addsd  %xmm7,%xmm1
movsd  %xmm1,0x20(%rsp)
movapd %xmm1,%xmm12
addsd  %xmm1,%xmm12
movslq %ebp,%rax
sar    %ebp
movslq %ebp,%rcx
movsd  (%rbx,%rcx,8),%xmm1
movsd  0x8(%rbx,%rcx,8),%xmm2
movapd %xmm1,%xmm3
addsd  %xmm1,%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm2
mulsd  %xmm3,%xmm3
subsd  %xmm2,%xmm3
movsd  %xmm3,(%rbx,%rcx,8)
movsd  %xmm1,0x8(%rbx,%rcx,8)
lea    0x18(%rbx,%rax,8),%r14
xorpd  %xmm8,%xmm8
movsd  0xe2c(%rip),%xmm13
xorpd  %xmm4,%xmm4
movsd  %xmm12,0x18(%rsp)
nop
cmp    $0x103,%ebp
mov    $0x102,%eax
cmovge %ebp,%eax
lea    -0x100(%rax),%r15d
add    $0xffffff02,%eax
cmp    %eax,%ebp
jl     1310 <mp_mul_rcsqu_nt_in+0x1f0>
movslq %ebp,%rsi
lea    -0x2(%rsi),%rax
mov    %r15d,%ecx
shl    $0x3,%rsi
mov    %r14,%rdx
sub    %rsi,%rdx
cs nopw 0x0(%rax,%rax,1)
movapd %xmm12,%xmm9
mulsd  %xmm7,%xmm9
addsd  %xmm4,%xmm9
movapd %xmm13,%xmm10
subsd  %xmm0,%xmm10
mulsd  %xmm12,%xmm10
addsd  %xmm8,%xmm10
movsd  (%rbx,%rax,8),%xmm6
movsd  0x8(%rbx,%rax,8),%xmm1
movsd  -0x8(%rdx),%xmm5
movsd  (%rdx),%xmm3
movapd %xmm6,%xmm2
addsd  %xmm6,%xmm6
mulsd  %xmm1,%xmm6
mulsd  %xmm1,%xmm1
mulsd  %xmm2,%xmm2
subsd  %xmm1,%xmm2
movapd %xmm5,%xmm11
addsd  %xmm5,%xmm5
mulsd  %xmm3,%xmm5
mulsd  %xmm3,%xmm3
mulsd  %xmm11,%xmm11
subsd  %xmm3,%xmm11
movapd %xmm2,%xmm1
subsd  %xmm11,%xmm1
movapd %xmm6,%xmm4
addsd  %xmm5,%xmm4
movapd %xmm0,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm7,%xmm1
movapd %xmm7,%xmm8
mulsd  %xmm4,%xmm7
addsd  %xmm7,%xmm3
mulsd  %xmm0,%xmm4
subsd  %xmm1,%xmm4
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rbx,%rax,8)
subsd  %xmm4,%xmm6
movsd  %xmm6,0x8(%rbx,%rax,8)
addsd  %xmm11,%xmm3
movsd  %xmm3,-0x8(%rdx)
subsd  %xmm4,%xmm5
movsd  %xmm5,(%rdx)
add    $0xfffffffffffffffe,%rax
add    $0x10,%rdx
movapd %xmm0,%xmm4
movapd %xmm9,%xmm0
movapd %xmm10,%xmm7
cmp    %rcx,%rax
jge    1230 <mp_mul_rcsqu_nt_in+0x110>
cmp    $0x2,%r15d
je     13b8 <mp_mul_rcsqu_nt_in+0x298>
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
call   1030 <sin@plt>
mulsd  0xcd5(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
call   1040 <cos@plt>
movsd  0xcbb(%rip),%xmm13
movsd  0x18(%rsp),%xmm12
movsd  0x8(%rsp),%xmm7
movapd %xmm0,%xmm8
mulsd  %xmm13,%xmm8
movsd  0x20(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm8,%xmm0
movapd %xmm7,%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  %xmm2,%xmm1
subsd  %xmm0,%xmm1
movapd %xmm13,%xmm0
subsd  %xmm1,%xmm0
movapd %xmm2,%xmm1
mulsd  %xmm8,%xmm1
movapd %xmm13,%xmm4
subsd  %xmm7,%xmm4
mulsd  %xmm3,%xmm7
addsd  %xmm1,%xmm7
mov    %r15d,%ebp
jmp    11f0 <mp_mul_rcsqu_nt_in+0xd0>
add    $0x38,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @mp_mul_rcsqu_nt_in(i32 %0, double* %1) {
%3 = alloca i32
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%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 double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
store i32 %0, i32* %3
store double* %1, double** %4
%25 = load i32, i32* %3
%26 = sitofp i32 %25 to double
%27 = fdiv double 0x400921FB54442D18, %26
store double %27, double* %9
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %13
%28 = load double, double* %9
%29 = call double @cos(double %28)
store double %29, double* %15
%30 = load double, double* %9
%31 = call double @sin(double %30)
store double %31, double* %14
%32 = load double, double* %14
%33 = load double, double* %15
%34 = fmul double %33, %32
store double %34, double* %15
%35 = load double, double* %14
%36 = load double, double* %14
%37 = fmul double %36, %35
store double %37, double* %14
%38 = load double, double* %14
%39 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %38, double 1.000000e+00)
store double %39, double* %10
%40 = load double, double* %15
%41 = fmul double 2.000000e+00, %40
store double %41, double* %11
%42 = load double, double* %11
%43 = fmul double 2.000000e+00, %42
store double %43, double* %16
%44 = load i32, i32* %3
%45 = ashr i32 %44, 1
store i32 %45, i32* %5
%46 = load double*, double** %4
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %46, i64 %48
%50 = load double, double* %49
store double %50, double* %17
%51 = load double*, double** %4
%52 = load i32, i32* %5
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %51, i64 %54
%56 = load double, double* %55
store double %56, double* %18
%57 = load double, double* %17
%58 = load double, double* %17
%59 = load double, double* %18
%60 = load double, double* %18
%61 = fmul double %59, %60
%62 = fneg double %61
%63 = call double @llvm.fmuladd.f64(double %57, double %58, double %62)
%64 = load double*, double** %4
%65 = load i32, i32* %5
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
store double %63, double* %67
%68 = load double, double* %17
%69 = fmul double 2.000000e+00, %68
%70 = load double, double* %18
%71 = fmul double %69, %70
%72 = load double*, double** %4
%73 = load i32, i32* %5
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %72, i64 %75
store double %71, double* %76
br label %77
77: ; preds = %207, %2
%78 = load i32, i32* %5
%79 = sub nsw i32 %78, 256
store i32 %79, i32* %6
%80 = load i32, i32* %6
%81 = icmp slt i32 %80, 2
br i1 %81, label %82, label %83
82: ; preds = %77
store i32 2, i32* %6
br label %83
83: ; preds = %82, %77
%84 = load i32, i32* %5
%85 = sub nsw i32 %84, 2
store i32 %85, i32* %7
br label %86
86: ; preds = %200, %83
%87 = load i32, i32* %7
%88 = load i32, i32* %6
%89 = icmp sge i32 %87, %88
br i1 %89, label %90, label %203
90: ; preds = %86
%91 = load i32, i32* %3
%92 = load i32, i32* %7
%93 = sub nsw i32 %91, %92
store i32 %93, i32* %8
%94 = load double, double* %12
%95 = load double, double* %16
%96 = load double, double* %15
%97 = call double @llvm.fmuladd.f64(double %95, double %96, double %94)
store double %97, double* %17
%98 = load double, double* %13
%99 = load double, double* %16
%100 = load double, double* %14
%101 = fsub double 5.000000e-01, %100
%102 = call double @llvm.fmuladd.f64(double %99, double %101, double %98)
store double %102, double* %18
%103 = load double, double* %14
store double %103, double* %12
%104 = load double, double* %15
store double %104, double* %13
%105 = load double, double* %17
store double %105, double* %14
%106 = load double, double* %18
store double %106, double* %15
%107 = load double*, double** %4
%108 = load i32, i32* %7
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %107, i64 %109
%111 = load double, double* %110
store double %111, double* %17
%112 = load double*, double** %4
%113 = load i32, i32* %7
%114 = add nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %112, i64 %115
%117 = load double, double* %116
store double %117, double* %18
%118 = load double*, double** %4
%119 = load i32, i32* %8
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
%122 = load double, double* %121
store double %122, double* %19
%123 = load double*, double** %4
%124 = load i32, i32* %8
%125 = add nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %123, i64 %126
%128 = load double, double* %127
store double %128, double* %20
%129 = load double, double* %17
%130 = load double, double* %17
%131 = load double, double* %18
%132 = load double, double* %18
%133 = fmul double %131, %132
%134 = fneg double %133
%135 = call double @llvm.fmuladd.f64(double %129, double %130, double %134)
store double %135, double* %21
%136 = load double, double* %17
%137 = fmul double 2.000000e+00, %136
%138 = load double, double* %18
%139 = fmul double %137, %138
store double %139, double* %22
%140 = load double, double* %19
%141 = load double, double* %19
%142 = load double, double* %20
%143 = load double, double* %20
%144 = fmul double %142, %143
%145 = fneg double %144
%146 = call double @llvm.fmuladd.f64(double %140, double %141, double %145)
store double %146, double* %23
%147 = load double, double* %19
%148 = fmul double 2.000000e+00, %147
%149 = load double, double* %20
%150 = fmul double %148, %149
store double %150, double* %24
%151 = load double, double* %21
%152 = load double, double* %23
%153 = fsub double %151, %152
store double %153, double* %17
%154 = load double, double* %22
%155 = load double, double* %24
%156 = fadd double %154, %155
store double %156, double* %18
%157 = load double, double* %12
%158 = load double, double* %17
%159 = load double, double* %13
%160 = load double, double* %18
%161 = fmul double %159, %160
%162 = call double @llvm.fmuladd.f64(double %157, double %158, double %161)
store double %162, double* %19
%163 = load double, double* %12
%164 = load double, double* %18
%165 = load double, double* %13
%166 = load double, double* %17
%167 = fmul double %165, %166
%168 = fneg double %167
%169 = call double @llvm.fmuladd.f64(double %163, double %164, double %168)
store double %169, double* %20
%170 = load double, double* %21
%171 = load double, double* %19
%172 = fsub double %170, %171
%173 = load double*, double** %4
%174 = load i32, i32* %7
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %173, i64 %175
store double %172, double* %176
%177 = load double, double* %22
%178 = load double, double* %20
%179 = fsub double %177, %178
%180 = load double*, double** %4
%181 = load i32, i32* %7
%182 = add nsw i32 %181, 1
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %180, i64 %183
store double %179, double* %184
%185 = load double, double* %23
%186 = load double, double* %19
%187 = fadd double %185, %186
%188 = load double*, double** %4
%189 = load i32, i32* %8
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, double* %188, i64 %190
store double %187, double* %191
%192 = load double, double* %24
%193 = load double, double* %20
%194 = fsub double %192, %193
%195 = load double*, double** %4
%196 = load i32, i32* %8
%197 = add nsw i32 %196, 1
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, double* %195, i64 %198
store double %194, double* %199
br label %200
200: ; preds = %90
%201 = load i32, i32* %7
%202 = sub nsw i32 %201, 2
store i32 %202, i32* %7
br label %86
203: ; preds = %86
%204 = load i32, i32* %6
%205 = icmp eq i32 %204, 2
br i1 %205, label %206, label %207
206: ; preds = %203
br label %237
207: ; preds = %203
%208 = load double, double* %9
%209 = load i32, i32* %6
%210 = sitofp i32 %209 to double
%211 = fmul double %208, %210
%212 = call double @sin(double %211)
%213 = fmul double 5.000000e-01, %212
store double %213, double* %12
%214 = load double, double* %9
%215 = load i32, i32* %6
%216 = sitofp i32 %215 to double
%217 = fmul double %214, %216
%218 = call double @cos(double %217)
%219 = fmul double 5.000000e-01, %218
store double %219, double* %13
%220 = load double, double* %12
%221 = load double, double* %10
%222 = load double, double* %13
%223 = load double, double* %11
%224 = fmul double %222, %223
%225 = fneg double %224
%226 = call double @llvm.fmuladd.f64(double %220, double %221, double %225)
%227 = fsub double 5.000000e-01, %226
store double %227, double* %14
%228 = load double, double* %12
%229 = load double, double* %11
%230 = load double, double* %13
%231 = load double, double* %10
%232 = fmul double %230, %231
%233 = call double @llvm.fmuladd.f64(double %228, double %229, double %232)
store double %233, double* %15
%234 = load double, double* %12
%235 = fsub double 5.000000e-01, %234
store double %235, double* %12
%236 = load i32, i32* %6
store i32 %236, i32* %5
br label %77
237: ; preds = %206
ret void
}

LLVM IR (-O2):
define void @mp_mul_rcsqu_nt_in(i32 %0, double* nocapture %1) {
%3 = sitofp i32 %0 to double
%4 = fdiv double 0x400921FB54442D18, %3
%5 = tail call double @cos(double %4)
%6 = tail call double @sin(double %4)
%7 = fmul double %5, %6
%8 = fmul double %6, %6
%9 = tail call double @llvm.fmuladd.f64(double %8, double -2.000000e+00, double 1.000000e+00)
%10 = fmul double %7, 2.000000e+00
%11 = fmul double %10, 2.000000e+00
%12 = ashr i32 %0, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds double, double* %1, i64 %13
%15 = load double, double* %14
%16 = add nsw i32 %12, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, double* %1, i64 %17
%19 = load double, double* %18
%20 = fneg double %19
%21 = fmul double %19, %20
%22 = tail call double @llvm.fmuladd.f64(double %15, double %15, double %21)
store double %22, double* %14
%23 = fmul double %15, 2.000000e+00
%24 = fmul double %23, %19
store double %24, double* %18
%25 = sext i32 %0 to i64
br label %26
26: ; preds = %88, %2
%27 = phi double [ %7, %2 ], [ %100, %88 ]
%28 = phi double [ %8, %2 ], [ %98, %88 ]
%29 = phi double [ 0.000000e+00, %2 ], [ %94, %88 ]
%30 = phi double [ 0.000000e+00, %2 ], [ %101, %88 ]
%31 = phi i32 [ %12, %2 ], [ %34, %88 ]
%32 = icmp sgt i32 %31, 258
%33 = select i1 %32, i32 %31, i32 258
%34 = add nsw i32 %33, -256
%35 = add nsw i32 %33, -254
%36 = icmp slt i32 %31, %35
br i1 %36, label %86, label %37
37: ; preds = %26
%38 = sext i32 %31 to i64
%39 = add nsw i64 %38, -2
%40 = zext i32 %34 to i64
br label %41
41: ; preds = %37, %41
%42 = phi i64 [ %38, %37 ], [ %48, %41 ]
%43 = phi i64 [ %39, %37 ], [ %84, %41 ]
%44 = phi double [ %30, %37 ], [ %46, %41 ]
%45 = phi double [ %29, %37 ], [ %47, %41 ]
%46 = phi double [ %28, %37 ], [ %50, %41 ]
%47 = phi double [ %27, %37 ], [ %52, %41 ]
%48 = add nsw i64 %42, -2
%49 = sub nsw i64 %25, %43
%50 = tail call double @llvm.fmuladd.f64(double %11, double %47, double %44)
%51 = fsub double 5.000000e-01, %46
%52 = tail call double @llvm.fmuladd.f64(double %11, double %51, double %45)
%53 = getelementptr inbounds double, double* %1, i64 %43
%54 = load double, double* %53
%55 = add nsw i64 %42, -1
%56 = getelementptr inbounds double, double* %1, i64 %55
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %1, i64 %49
%59 = load double, double* %58
%60 = add nsw i64 %49, 1
%61 = getelementptr inbounds double, double* %1, i64 %60
%62 = load double, double* %61
%63 = fneg double %57
%64 = fmul double %57, %63
%65 = tail call double @llvm.fmuladd.f64(double %54, double %54, double %64)
%66 = fmul double %54, 2.000000e+00
%67 = fmul double %66, %57
%68 = fneg double %62
%69 = fmul double %62, %68
%70 = tail call double @llvm.fmuladd.f64(double %59, double %59, double %69)
%71 = fmul double %59, 2.000000e+00
%72 = fmul double %71, %62
%73 = fsub double %65, %70
%74 = fadd double %67, %72
%75 = fmul double %47, %74
%76 = tail call double @llvm.fmuladd.f64(double %46, double %73, double %75)
%77 = fneg double %47
%78 = fmul double %73, %77
%79 = tail call double @llvm.fmuladd.f64(double %46, double %74, double %78)
%80 = fsub double %65, %76
store double %80, double* %53
%81 = fsub double %67, %79
store double %81, double* %56
%82 = fadd double %70, %76
store double %82, double* %58
%83 = fsub double %72, %79
store double %83, double* %61
%84 = add nsw i64 %43, -2
%85 = icmp slt i64 %84, %40
br i1 %85, label %86, label %41
86: ; preds = %41, %26
%87 = icmp eq i32 %34, 2
br i1 %87, label %102, label %88
88: ; preds = %86
%89 = sitofp i32 %34 to double
%90 = fmul double %4, %89
%91 = tail call double @sin(double %90)
%92 = fmul double %91, 5.000000e-01
%93 = tail call double @cos(double %90)
%94 = fmul double %93, 5.000000e-01
%95 = fneg double %94
%96 = fmul double %10, %95
%97 = tail call double @llvm.fmuladd.f64(double %92, double %9, double %96)
%98 = fsub double 5.000000e-01, %97
%99 = fmul double %9, %94
%100 = tail call double @llvm.fmuladd.f64(double %92, double %10, double %99)
%101 = fsub double 5.000000e-01, %92
br label %26
102: ; preds = %86
ret void
}