#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 exp(double);
double gaux(double, int);
double pow(double, double);
void gint2_nai_S_cD(double *a, double a_a, double *b, double b_a, double *c,
                    double *out) {
  double ab_a, d_0, d_1, d_2, nai_000_010_0, nai_000_010_1, p_0, p_1, p_2, u_0,
      u_1, u_2, usq;
  ab_a = a_a + b_a;
  p_0 = (a[0] * a_a + b[0] * b_a) / ab_a;
  p_1 = (a[1] * a_a + b[1] * b_a) / ab_a;
  p_2 = (a[2] * a_a + b[2] * b_a) / ab_a;
  d_0 = a[0] - b[0];
  d_1 = a[1] - b[1];
  d_2 = a[2] - b[2];
  u_0 = p_0 - c[0];
  u_1 = p_1 - c[1];
  u_2 = p_2 - c[2];
  usq = ab_a * (u_0 * u_0 + u_1 * u_1 + u_2 * u_2);
  p_0 = p_0 - b[0];
  p_1 = p_1 - b[1];
  p_2 = p_2 - b[2];
  d_0 = exp(-a_a * b_a * (d_0 * d_0 + d_1 * d_1 + d_2 * d_2) / ab_a) / ab_a;
  d_1 = 6.28318530717959 * d_0 * gaux(usq, 0);
  d_2 = 6.28318530717959 * d_0 * gaux(usq, 1);
  usq = 6.28318530717959 * d_0 * gaux(usq, 2);
  ab_a = (0.5 * d_1 - 0.5 * d_2) / ab_a;
  d_0 = pow(a_a, 0.75) * pow(b_a, 1.75);
  out[0] =
      1.17305816955079 * d_0 *
      (ab_a + p_0 * (d_1 * p_0 - d_2 * u_0) - u_0 * (d_2 * p_0 - u_0 * usq));
  nai_000_010_0 = d_1 * p_1 - d_2 * u_1;
  nai_000_010_1 = d_2 * p_1 - u_1 * usq;
  out[1] = 2.03179634989571 * d_0 * (nai_000_010_0 * p_0 - nai_000_010_1 * u_0);
  d_1 = d_1 * p_2 - d_2 * u_2;
  d_2 = d_2 * p_2 - u_2 * usq;
  out[2] = 2.03179634989571 * d_0 * (d_1 * p_0 - d_2 * u_0);
  out[3] = 1.17305816955079 * d_0 *
           (ab_a + nai_000_010_0 * p_1 - nai_000_010_1 * u_1);
  out[4] = 2.03179634989571 * d_0 * (d_1 * p_1 - d_2 * u_1);
  out[5] = 1.17305816955079 * d_0 * (ab_a + d_1 * p_2 - d_2 * u_2);
}


x86 assembly (clang, -O0):
<gint2_nai_S_cD>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x10(%rbp),%xmm2
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mov    -0x28(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm3
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm3
ff
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x18(%rbp),%rax
subsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x50(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
call   1040 <exp@plt>
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xcc9(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
xor    %edi,%edi
call   1030 <gaux@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xc91(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mov    $0x1,%edi
call   1030 <gaux@plt>
movaps %xmm0,%xmm1
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xc56(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mov    $0x2,%edi
call   1030 <gaux@plt>
movaps %xmm0,%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  0xc0b(%rip),%xmm1
mulsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xbe7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xbc0(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  0xb9e(%rip),%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xb6d(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm5
movsd  -0x50(%rbp),%xmm4
mulsd  -0x80(%rbp),%xmm4
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x80(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm3
movsd  -0x68(%rbp),%xmm5
movsd  -0x80(%rbp),%xmm4
mulsd  -0x98(%rbp),%xmm4
ff
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%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
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xa44(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm3
movsd  -0x60(%rbp),%xmm2
mulsd  -0x80(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x48(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0x97e(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
mulsd  -0x80(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  0x929(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x60(%rbp),%xmm1
movsd  -0x88(%rbp),%xmm3
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  0x8d4(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
mulsd  -0x88(%rbp),%xmm2
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  0x87c(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x50(%rbp),%xmm1
movsd  -0x90(%rbp),%xmm3
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x28(%rax)
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint2_nai_S_cD>:
push   %rbx
sub    $0xd0,%rsp
mov    %rcx,%rbx
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
movapd %xmm2,%xmm11
movupd (%rdi),%xmm10
movupd (%rsi),%xmm2
movapd %xmm1,%xmm4
unpcklpd %xmm1,%xmm4
mulpd  %xmm2,%xmm4
movapd %xmm0,%xmm3
movapd %xmm0,%xmm6
unpcklpd %xmm0,%xmm3
mulpd  %xmm10,%xmm3
addpd  %xmm4,%xmm3
movapd %xmm11,%xmm0
unpcklpd %xmm11,%xmm0
divpd  %xmm0,%xmm3
movsd  0x10(%rdi),%xmm0
movsd  0x10(%rsi),%xmm8
movapd %xmm8,%xmm4
mulsd  %xmm1,%xmm4
movapd %xmm1,%xmm7
movapd %xmm1,0x60(%rsp)
movapd %xmm0,%xmm5
mulsd  %xmm6,%xmm5
movapd %xmm6,0x50(%rsp)
addsd  %xmm4,%xmm5
divsd  %xmm11,%xmm5
movapd %xmm5,%xmm9
subpd  %xmm2,%xmm10
subsd  %xmm8,%xmm0
movsd  (%rdx),%xmm4
movapd %xmm3,%xmm5
subsd  %xmm4,%xmm5
movapd %xmm5,0x70(%rsp)
movapd %xmm2,%xmm4
movhpd 0x8(%rdx),%xmm4
movapd %xmm3,%xmm1
subpd  %xmm4,%xmm1
movapd %xmm1,0x80(%rsp)
movapd %xmm1,%xmm4
unpckhpd %xmm1,%xmm4
movapd %xmm4,0xa0(%rsp)
mulsd  %xmm4,%xmm4
mulsd  %xmm5,%xmm5
addsd  %xmm4,%xmm5
shufpd $0x1,%xmm9,%xmm3
movsd  0x10(%rdx),%xmm4
shufpd $0x1,%xmm4,%xmm2
subpd  %xmm2,%xmm3
movapd %xmm3,0x90(%rsp)
movapd %xmm3,%xmm1
unpckhpd %xmm3,%xmm1
movapd %xmm1,0xc0(%rsp)
mulsd  %xmm1,%xmm1
addsd  %xmm5,%xmm1
movapd %xmm11,0x20(%rsp)
mulsd  %xmm11,%xmm1
movapd %xmm1,0x10(%rsp)
subsd  %xmm8,%xmm9
movapd %xmm9,0xb0(%rsp)
movapd %xmm6,%xmm2
xorpd  0xd90(%rip),%xmm2
mulsd  %xmm7,%xmm2
movapd %xmm10,%xmm3
mulpd  %xmm10,%xmm3
unpckhpd %xmm3,%xmm3
mulsd  %xmm10,%xmm10
addsd  %xmm3,%xmm10
mulsd  %xmm0,%xmm0
addsd  %xmm10,%xmm0
mulsd  %xmm2,%xmm0
divsd  %xmm11,%xmm0
call   1040 <exp@plt>
divsd  0x20(%rsp),%xmm0
mulsd  0xd6f(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x10(%rsp),%xmm0
xor    %edi,%edi
call   1030 <gaux@plt>
mulsd  0x8(%rsp),%xmm0
movapd %xmm0,0x40(%rsp)
movapd 0x10(%rsp),%xmm0
mov    $0x1,%edi
call   1030 <gaux@plt>
mulsd  0x8(%rsp),%xmm0
movapd %xmm0,0x30(%rsp)
movapd 0x10(%rsp),%xmm0
mov    $0x2,%edi
call   1030 <gaux@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xd18(%rip),%xmm0
mulsd  0x30(%rsp),%xmm0
movsd  0xd12(%rip),%xmm1
mulsd  0x40(%rsp),%xmm1
addsd  %xmm0,%xmm1
divsd  0x20(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xcfc(%rip),%xmm1
movaps 0x50(%rsp),%xmm0
call   1050 <pow@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0xcec(%rip),%xmm1
movapd 0x60(%rsp),%xmm0
call   1050 <pow@plt>
mulsd  0x20(%rsp),%xmm0
movapd 0x70(%rsp),%xmm2
movapd %xmm2,%xmm1
movapd 0x30(%rsp),%xmm10
mulsd  %xmm10,%xmm1
movapd 0x40(%rsp),%xmm12
movapd %xmm12,%xmm3
movapd 0x80(%rsp),%xmm8
mulsd  %xmm8,%xmm3
subsd  %xmm1,%xmm3
movsd  0x8(%rsp),%xmm9
movapd %xmm9,%xmm1
mulsd  %xmm2,%xmm1
movapd %xmm2,%xmm11
movapd %xmm10,%xmm4
mulsd  %xmm8,%xmm4
subsd  %xmm1,%xmm4
movapd 0xa0(%rsp),%xmm6
movapd %xmm6,%xmm2
mulsd  %xmm10,%xmm2
movapd %xmm12,%xmm1
movapd 0x90(%rsp),%xmm7
mulsd  %xmm7,%xmm1
subsd  %xmm2,%xmm1
movapd %xmm9,%xmm5
movapd %xmm9,%xmm14
mulsd  %xmm6,%xmm5
movapd %xmm6,%xmm9
movapd %xmm10,%xmm2
movapd %xmm10,%xmm13
mulsd  %xmm7,%xmm2
subsd  %xmm5,%xmm2
mulsd  %xmm8,%xmm3
movsd  0x10(%rsp),%xmm15
addsd  %xmm15,%xmm3
movapd 0xbdc(%rip),%xmm10
xorpd  %xmm10,%xmm2
movapd %xmm11,%xmm5
mulsd  %xmm2,%xmm5
unpcklpd %xmm5,%xmm3
movapd %xmm11,%xmm5
xorpd  %xmm10,%xmm5
unpcklpd %xmm1,%xmm5
unpcklpd %xmm8,%xmm4
mulpd  %xmm5,%xmm4
addpd  %xmm3,%xmm4
unpcklpd %xmm0,%xmm0
mulpd  0xbb3(%rip),%xmm0
mulpd  %xmm0,%xmm4
movupd %xmm4,(%rbx)
movapd 0xc0(%rsp),%xmm3
mulsd  %xmm3,%xmm14
movapd %xmm13,%xmm6
mulsd  %xmm13,%xmm3
movapd %xmm3,%xmm4
movapd 0xb0(%rsp),%xmm3
movapd %xmm12,%xmm5
mulsd  %xmm3,%xmm5
subsd  %xmm4,%xmm5
mulsd  %xmm3,%xmm6
subsd  %xmm14,%xmm6
xorpd  %xmm10,%xmm6
movapd %xmm11,%xmm4
mulsd  %xmm6,%xmm4
mulsd  %xmm7,%xmm1
addsd  %xmm15,%xmm1
unpcklpd %xmm1,%xmm4
movapd %xmm5,%xmm1
unpcklpd %xmm2,%xmm1
mulpd  %xmm8,%xmm1
addpd  %xmm4,%xmm1
shufpd $0x1,%xmm0,%xmm0
mulpd  %xmm0,%xmm1
movupd %xmm1,0x10(%rbx)
movapd %xmm3,%xmm1
mulsd  %xmm5,%xmm1
addsd  %xmm15,%xmm1
movapd %xmm9,%xmm2
mulsd  %xmm6,%xmm2
unpcklpd %xmm1,%xmm2
movapd %xmm5,%xmm1
unpcklpd %xmm6,%xmm1
mulpd  %xmm7,%xmm1
addpd  %xmm2,%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,0x20(%rbx)
add    $0xd0,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @gint2_nai_S_cD(double* nocapture %0, double %1, double* nocapture %2, double %3, double* nocapture %4, double* nocapture writeonly %5) {
%7 = fadd double %1, %3
%8 = bitcast double* %0 to <2 x double>*
%9 = load <2 x double>, <2 x double>* %8
%10 = bitcast double* %2 to <2 x double>*
%11 = load <2 x double>, <2 x double>* %10
%12 = insertelement <2 x double> poison, double %3, i64 0
%13 = shufflevector <2 x double> %12, <2 x double> poison, <2 x i32> zeroinitializer
%14 = fmul <2 x double> %11, %13
%15 = insertelement <2 x double> poison, double %1, i64 0
%16 = shufflevector <2 x double> %15, <2 x double> poison, <2 x i32> zeroinitializer
%17 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %9, <2 x double> %16, <2 x double> %14)
%18 = insertelement <2 x double> poison, double %7, i64 0
%19 = shufflevector <2 x double> %18, <2 x double> poison, <2 x i32> zeroinitializer
%20 = fdiv <2 x double> %17, %19
%21 = getelementptr inbounds double, double* %0, i64 2
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %2, i64 2
%24 = load double, double* %23
%25 = fmul double %24, %3
%26 = tail call double @llvm.fmuladd.f64(double %22, double %1, double %25)
%27 = fdiv double %26, %7
%28 = fsub <2 x double> %9, %11
%29 = extractelement <2 x double> %28, i64 0
%30 = extractelement <2 x double> %11, i64 1
%31 = fsub <2 x double> %9, %11
%32 = fsub double %22, %24
%33 = load double, double* %4
%34 = extractelement <2 x double> %20, i64 0
%35 = fsub double %34, %33
%36 = getelementptr inbounds double, double* %4, i64 1
%37 = load double, double* %36
%38 = getelementptr inbounds double, double* %4, i64 2
%39 = load double, double* %38
%40 = insertelement <2 x double> %11, double %37, i64 1
%41 = fsub <2 x double> %20, %40
%42 = extractelement <2 x double> %41, i64 1
%43 = fmul double %42, %42
%44 = tail call double @llvm.fmuladd.f64(double %35, double %35, double %43)
%45 = extractelement <2 x double> %20, i64 1
%46 = insertelement <2 x double> poison, double %45, i64 0
%47 = insertelement <2 x double> %46, double %27, i64 1
%48 = insertelement <2 x double> poison, double %30, i64 0
%49 = insertelement <2 x double> %48, double %39, i64 1
%50 = fsub <2 x double> %47, %49
%51 = extractelement <2 x double> %50, i64 1
%52 = tail call double @llvm.fmuladd.f64(double %51, double %51, double %44)
%53 = fmul double %7, %52
%54 = fsub double %27, %24
%55 = fneg double %1
%56 = fmul double %55, %3
%57 = fmul <2 x double> %31, %31
%58 = extractelement <2 x double> %57, i64 1
%59 = tail call double @llvm.fmuladd.f64(double %29, double %29, double %58)
%60 = tail call double @llvm.fmuladd.f64(double %32, double %32, double %59)
%61 = fmul double %56, %60
%62 = fdiv double %61, %7
%63 = tail call double @exp(double %62)
%64 = fdiv double %63, %7
%65 = fmul double %64, 0x401921FB54442D1C
%66 = tail call double @gaux(double %53, i32 0)
%67 = fmul double %66, %65
%68 = tail call double @gaux(double %53, i32 1)
%69 = fmul double %65, %68
%70 = tail call double @gaux(double %53, i32 2)
%71 = fmul double %65, %70
%72 = fmul double %69, -5.000000e-01
%73 = tail call double @llvm.fmuladd.f64(double %67, double 5.000000e-01, double %72)
%74 = fdiv double %73, %7
%75 = tail call double @pow(double %1, double 7.500000e-01)
%76 = tail call double @pow(double %3, double 1.750000e+00)
%77 = fmul double %75, %76
%78 = fneg double %69
%79 = fmul double %35, %78
%80 = extractelement <2 x double> %41, i64 0
%81 = tail call double @llvm.fmuladd.f64(double %67, double %80, double %79)
%82 = tail call double @llvm.fmuladd.f64(double %80, double %81, double %74)
%83 = fneg double %35
%84 = fmul double %71, %83
%85 = tail call double @llvm.fmuladd.f64(double %69, double %80, double %84)
%86 = fmul double %42, %78
%87 = extractelement <2 x double> %50, i64 0
%88 = tail call double @llvm.fmuladd.f64(double %67, double %87, double %86)
%89 = fneg double %42
%90 = fmul double %71, %89
%91 = tail call double @llvm.fmuladd.f64(double %69, double %87, double %90)
%92 = insertelement <2 x double> poison, double %77, i64 0
%93 = shufflevector <2 x double> %92, <2 x double> poison, <2 x i32> zeroinitializer
%94 = fmul <2 x double> %93, <double 0x3FF2C4D8A4A86B96, double 0x4000411E71D77957>
%95 = fneg double %91
%96 = fmul double %35, %95
%97 = insertelement <2 x double> poison, double %83, i64 0
%98 = insertelement <2 x double> %97, double %88, i64 1
%99 = insertelement <2 x double> poison, double %85, i64 0
%100 = shufflevector <2 x double> %99, <2 x double> %41, <2 x i32> <i32 0, i32 2>
%101 = insertelement <2 x double> poison, double %82, i64 0
%102 = insertelement <2 x double> %101, double %96, i64 1
%103 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %98, <2 x double> %100, <2 x double> %102)
%104 = fmul <2 x double> %94, %103
%105 = bitcast double* %5 to <2 x double>*
store <2 x double> %104, <2 x double>* %105
%106 = fmul double %51, %78
%107 = tail call double @llvm.fmuladd.f64(double %67, double %54, double %106)
%108 = fneg double %51
%109 = fmul double %71, %108
%110 = tail call double @llvm.fmuladd.f64(double %69, double %54, double %109)
%111 = fneg double %110
%112 = fmul double %35, %111
%113 = getelementptr inbounds double, double* %5, i64 2
%114 = tail call double @llvm.fmuladd.f64(double %88, double %87, double %74)
%115 = insertelement <2 x double> poison, double %107, i64 0
%116 = insertelement <2 x double> %115, double %95, i64 1
%117 = insertelement <2 x double> poison, double %112, i64 0
%118 = insertelement <2 x double> %117, double %114, i64 1
%119 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %116, <2 x double> %41, <2 x double> %118)
%120 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> <i32 1, i32 0>
%121 = fmul <2 x double> %120, %119
%122 = bitcast double* %113 to <2 x double>*
store <2 x double> %121, <2 x double>* %122
%123 = fmul double %42, %111
%124 = getelementptr inbounds double, double* %5, i64 4
%125 = tail call double @llvm.fmuladd.f64(double %107, double %54, double %74)
%126 = insertelement <2 x double> %115, double %111, i64 1
%127 = insertelement <2 x double> poison, double %123, i64 0
%128 = insertelement <2 x double> %127, double %125, i64 1
%129 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %126, <2 x double> %50, <2 x double> %128)
%130 = fmul <2 x double> %120, %129
%131 = bitcast double* %124 to <2 x double>*
store <2 x double> %130, <2 x double>* %131
ret void
}