#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_rcmul(int n, double *a, double *b) {
  int i, i0, j, k;
  double ec, w1r, w1i, wkr, wki, wdr, wdi, ss;
  double xr, xi, yr, yi, ajr, aji, akr, aki, bjr, bji, bkr, bki;
  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];
  yr = b[i];
  yi = b[i + 1];
  b[i] = xr * yr - xi * yi;
  b[i + 1] = xr * yi + xi * yr;
  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] - a[k];
      xi = a[j + 1] + a[k + 1];
      yr = wkr * xr - wki * xi;
      yi = wkr * xi + wki * xr;
      ajr = a[j] - yr;
      aji = a[j + 1] - yi;
      akr = a[k] + yr;
      aki = a[k + 1] - yi;
      a[j] = ajr;
      a[j + 1] = aji;
      a[k] = akr;
      a[k + 1] = aki;
      xr = b[j] - b[k];
      xi = b[j + 1] + b[k + 1];
      yr = wkr * xr - wki * xi;
      yi = wkr * xi + wki * xr;
      xr = b[j] - yr;
      xi = b[j + 1] - yi;
      yr = b[k] + yr;
      yi = b[k + 1] - yi;
      bjr = ajr * xr - aji * xi;
      bji = ajr * xi + aji * xr;
      bkr = akr * yr - aki * yi;
      bki = akr * yi + aki * yr;
      xr = bjr - bkr;
      xi = bji + bki;
      yr = wkr * xr + wki * xi;
      yi = wkr * xi - wki * xr;
      b[j] = bjr - yr;
      b[j + 1] = bji - yi;
      b[k] = bkr + yr;
      b[k + 1] = bki - 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_rcmul>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm1
movsd  0xecd(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <sin@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm1
addsd  %xmm1,%xmm1
movsd  0xe5f(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe46(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe34(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x70(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x78(%rbp),%xmm1
mulsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
sub    $0x100,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    12c4 <mp_mul_rcmul+0x1a4>
movl   $0x2,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jl     17bf <mp_mul_rcmul+0x69f>
mov    -0x4(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  0xd08(%rip),%xmm2
subsd  -0x58(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x78(%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  -0x48(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x78(%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  -0x48(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x70(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x78(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x78(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
subsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x70(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
addsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x50(%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  -0xb0(%rbp),%xmm0
ff
subsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
subsd  -0x88(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc0(%rbp),%xmm0
ff
addsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xc8(%rbp),%xmm0
ff
subsd  -0x88(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x24(%rbp)
jmp    12cd <mp_mul_rcmul+0x1ad>
cmpl   $0x2,-0x20(%rbp)
jne    17ce <mp_mul_rcmul+0x6ae>
jmp    189e <mp_mul_rcmul+0x77e>
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movsd  0x82c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  0x805(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x7c1(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x78f(%rip),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    12a8 <mp_mul_rcmul+0x188>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mp_mul_rcmul>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %edi,%ebp
cvtsi2sd %edi,%xmm1
movsd  0xec2(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
call   1040 <cos@plt>
movapd %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <sin@plt>
movapd 0x10(%rsp),%xmm14
mulsd  %xmm0,%xmm14
mulsd  %xmm0,%xmm0
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  0xe8a(%rip),%xmm2
subsd  %xmm1,%xmm2
movsd  %xmm2,0x38(%rsp)
movapd %xmm14,%xmm1
addsd  %xmm14,%xmm1
movsd  %xmm1,0x30(%rsp)
movapd %xmm1,%xmm15
addsd  %xmm1,%xmm15
mov    %ebp,%eax
sar    %eax
movslq %eax,%rcx
movupd (%r14,%rcx,8),%xmm1
movsd  (%rbx,%rcx,8),%xmm2
movsd  0x8(%rbx,%rcx,8),%xmm3
movapd 0xe5e(%rip),%xmm4
xorpd  %xmm3,%xmm4
unpcklpd %xmm3,%xmm4
unpcklpd %xmm2,%xmm2
mulpd  %xmm1,%xmm2
shufpd $0x1,%xmm1,%xmm1
mulpd  %xmm4,%xmm1
addpd  %xmm1,%xmm2
movupd %xmm2,(%r14,%rcx,8)
movslq %ebp,%r15
add    $0x2,%r15
xorpd  %xmm1,%xmm1
movapd 0xe28(%rip),%xmm7
xorpd  %xmm4,%xmm4
movsd  %xmm15,0x28(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x103,%eax
mov    $0x102,%ecx
cmovge %eax,%ecx
lea    -0x100(%rcx),%ebp
add    $0xffffff02,%ecx
cmp    %ecx,%eax
jl     1408 <mp_mul_rcmul+0x2e8>
cltq
mov    %ebp,%ecx
mov    %r15,%rdx
sub    %rax,%rdx
add    $0xfffffffffffffffe,%rax
nop
movapd %xmm15,%xmm8
mulsd  %xmm14,%xmm8
addsd  %xmm4,%xmm8
movsd  0xdb8(%rip),%xmm9
subsd  %xmm0,%xmm9
mulsd  %xmm15,%xmm9
addsd  %xmm1,%xmm9
movupd (%rbx,%rax,8),%xmm1
movupd (%rbx,%rdx,8),%xmm6
movapd %xmm1,%xmm2
subpd  %xmm6,%xmm2
movapd %xmm1,%xmm5
addpd  %xmm6,%xmm5
movapd %xmm5,%xmm3
movsd  %xmm2,%xmm3
movapd %xmm14,%xmm10
xorpd  %xmm7,%xmm10
shufpd $0x1,%xmm14,%xmm5
movapd %xmm10,%xmm4
unpcklpd %xmm2,%xmm4
mulpd  %xmm5,%xmm4
movapd %xmm0,%xmm11
unpcklpd %xmm0,%xmm11
mulpd  %xmm11,%xmm3
addpd  %xmm4,%xmm3
subpd  %xmm3,%xmm1
movapd %xmm6,%xmm5
addpd  %xmm3,%xmm5
subpd  %xmm3,%xmm6
movapd %xmm6,%xmm2
movsd  %xmm5,%xmm2
movupd %xmm1,(%rbx,%rax,8)
movupd %xmm2,(%rbx,%rdx,8)
movupd (%r14,%rax,8),%xmm12
movupd (%r14,%rdx,8),%xmm13
movapd %xmm12,%xmm4
subpd  %xmm13,%xmm4
movapd %xmm12,%xmm7
addpd  %xmm13,%xmm7
movapd %xmm7,%xmm3
movsd  %xmm4,%xmm3
movapd %xmm10,%xmm2
unpcklpd %xmm4,%xmm2
shufpd $0x1,%xmm14,%xmm7
mulpd  %xmm7,%xmm2
movapd 0xd02(%rip),%xmm7
movapd %xmm1,%xmm4
unpckhpd %xmm1,%xmm4
mulpd  %xmm11,%xmm3
addpd  %xmm2,%xmm3
subpd  %xmm3,%xmm12
movapd %xmm13,%xmm2
addpd  %xmm3,%xmm2
subpd  %xmm3,%xmm13
xorpd  %xmm7,%xmm4
movapd %xmm12,%xmm3
unpckhpd %xmm1,%xmm3
unpcklpd %xmm12,%xmm4
mulpd  %xmm3,%xmm4
unpcklpd %xmm1,%xmm1
mulpd  %xmm12,%xmm1
addpd  %xmm4,%xmm1
movapd %xmm13,%xmm3
movsd  %xmm2,%xmm3
unpckhpd %xmm6,%xmm13
unpckhpd %xmm6,%xmm6
xorpd  %xmm7,%xmm6
unpcklpd %xmm2,%xmm6
mulpd  %xmm13,%xmm6
unpcklpd %xmm5,%xmm5
mulpd  %xmm3,%xmm5
addpd  %xmm6,%xmm5
movapd %xmm1,%xmm2
subpd  %xmm5,%xmm2
movapd %xmm1,%xmm3
addpd  %xmm5,%xmm3
movapd %xmm3,%xmm4
movsd  %xmm2,%xmm4
movapd %xmm14,%xmm6
unpcklpd %xmm2,%xmm6
shufpd $0x1,%xmm10,%xmm3
mulpd  %xmm6,%xmm3
mulpd  %xmm11,%xmm4
addpd  %xmm3,%xmm4
subpd  %xmm4,%xmm1
movupd %xmm1,(%r14,%rax,8)
movapd %xmm5,%xmm1
addpd  %xmm4,%xmm1
subpd  %xmm4,%xmm5
movsd  %xmm1,%xmm5
movupd %xmm5,(%r14,%rdx,8)
movapd %xmm0,%xmm4
movapd %xmm14,%xmm1
add    $0xfffffffffffffffe,%rax
add    $0x2,%rdx
movapd %xmm8,%xmm0
movapd %xmm9,%xmm14
cmp    %rcx,%rax
jge    1240 <mp_mul_rcmul+0x120>
cmp    $0x2,%ebp
je     14af <mp_mul_rcmul+0x38f>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
call   1030 <sin@plt>
mulsd  0xbdf(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
movsd  0x40(%rsp),%xmm0
call   1040 <cos@plt>
movapd 0xbd6(%rip),%xmm7
movsd  0xbbe(%rip),%xmm4
movsd  0x28(%rsp),%xmm15
movapd 0x10(%rsp),%xmm14
movapd %xmm0,%xmm1
mulsd  %xmm4,%xmm1
movsd  0x30(%rsp),%xmm5
movapd %xmm5,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm14,%xmm2
movsd  0x38(%rsp),%xmm3
mulsd  %xmm3,%xmm2
subsd  %xmm0,%xmm2
movapd %xmm4,%xmm0
subsd  %xmm2,%xmm0
movapd %xmm3,%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm14,%xmm4
mulsd  %xmm5,%xmm14
addsd  %xmm2,%xmm14
mov    %ebp,%eax
jmp    1210 <mp_mul_rcmul+0xf0>
add    $0x48,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

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