#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 */
int /*<<< orphan*/ gint2_nai_cD_P(double *, double, double *, double, double *,
                                  double *);
void gint2_nai_pD_P(double *a, double a_a, double *b, double b_a, double *c,
                    double *out) {
  double tmp0, tmp1, tmp2, tmp3;
  gint2_nai_cD_P(a, a_a, b, b_a, c, out);
  tmp0 = out[6];
  out[6] = out[12];
  tmp1 = out[7];
  out[7] = out[13];
  tmp2 = out[8];
  out[8] = out[14];
  tmp3 = out[15] - 0.5 * out[0] - 0.5 * out[9];
  out[9] = 0.866025403784439 * out[0] - 0.866025403784439 * out[9];
  out[0] = tmp3;
  tmp3 = out[16] - 0.5 * out[1] - 0.5 * out[10];
  out[10] = 0.866025403784439 * out[1] - 0.866025403784439 * out[10];
  out[1] = tmp3;
  tmp3 = out[17] - 0.5 * out[11] - 0.5 * out[2];
  out[11] = 0.866025403784439 * out[2] - 0.866025403784439 * out[11];
  out[2] = tmp3;
  out[12] = out[3];
  out[3] = tmp0;
  out[13] = out[4];
  out[4] = tmp1;
  out[14] = out[5];
  out[5] = tmp2;
}


x86 assembly (clang, -O0):
<gint2_nai_pD_P>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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)
mov    -0x8(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rsi
movsd  -0x20(%rbp),%xmm1
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
call   1030 <gint2_nai_cD_P@plt>
mov    -0x30(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x30(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm1
movsd  0xe3e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movsd  0x48(%rax),%xmm0
movsd  0xe25(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xdfc(%rip),%xmm1
mulsd  0x48(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xdd8(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x48(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0x80(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm1
movsd  0xda5(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movsd  0x50(%rax),%xmm0
movsd  0xd8c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xd62(%rip),%xmm1
mulsd  0x50(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd3e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x50(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0x88(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x58(%rax),%xmm1
movsd  0xd0a(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  0xcf1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xcc7(%rip),%xmm1
mulsd  0x58(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xca3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x58(%rax)
movsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x60(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x68(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x70(%rax)
movsd  -0x48(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x28(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint2_nai_pD_P>:
push   %rbx
mov    %rcx,%rbx
call   1030 <gint2_nai_cD_P@plt>
movups 0x30(%rbx),%xmm0
movups 0x60(%rbx),%xmm1
movups %xmm1,0x30(%rbx)
movsd  0x40(%rbx),%xmm1
movsd  0x70(%rbx),%xmm2
movsd  %xmm2,0x40(%rbx)
movupd 0x48(%rbx),%xmm2
movupd (%rbx),%xmm3
movupd 0x78(%rbx),%xmm4
movapd 0xeb6(%rip),%xmm5
movapd %xmm3,%xmm6
mulpd  %xmm5,%xmm6
addpd  %xmm4,%xmm6
mulpd  %xmm2,%xmm5
addpd  %xmm6,%xmm5
mulpd  0xeaa(%rip),%xmm2
mulpd  0xeb2(%rip),%xmm3
addpd  %xmm2,%xmm3
movupd %xmm3,0x48(%rbx)
movupd %xmm5,(%rbx)
movsd  0x58(%rbx),%xmm2
movsd  0xea8(%rip),%xmm3
movapd %xmm2,%xmm4
mulsd  %xmm3,%xmm4
addsd  0x88(%rbx),%xmm4
movsd  0x10(%rbx),%xmm5
mulsd  %xmm5,%xmm3
mulsd  0xe8f(%rip),%xmm2
addsd  %xmm4,%xmm3
mulsd  0xe8b(%rip),%xmm5
addsd  %xmm2,%xmm5
movsd  %xmm5,0x58(%rbx)
movsd  %xmm3,0x10(%rbx)
movups 0x18(%rbx),%xmm2
movups %xmm2,0x60(%rbx)
movups %xmm0,0x18(%rbx)
movsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x70(%rbx)
movsd  %xmm1,0x28(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
define void @gint2_nai_pD_P(double* %0, double %1, double* %2, double %3, double* %4, double* %5) {
%7 = tail call i32 @gint2_nai_cD_P(double* %0, double %1, double* %2, double %3, double* %4, double* %5)
%8 = getelementptr inbounds double, double* %5, i64 6
%9 = getelementptr inbounds double, double* %5, i64 12
%10 = bitcast double* %8 to <2 x double>*
%11 = load <2 x double>, <2 x double>* %10
%12 = bitcast double* %9 to <2 x double>*
%13 = load <2 x double>, <2 x double>* %12
%14 = bitcast double* %8 to <2 x double>*
store <2 x double> %13, <2 x double>* %14
%15 = getelementptr inbounds double, double* %5, i64 8
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %5, i64 14
%18 = load double, double* %17
store double %18, double* %15
%19 = getelementptr inbounds double, double* %5, i64 15
%20 = getelementptr inbounds double, double* %5, i64 9
%21 = bitcast double* %20 to <2 x double>*
%22 = load <2 x double>, <2 x double>* %21
%23 = bitcast double* %5 to <2 x double>*
%24 = load <2 x double>, <2 x double>* %23
%25 = bitcast double* %19 to <2 x double>*
%26 = load <2 x double>, <2 x double>* %25
%27 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %24, <2 x double> <double -5.000000e-01, double -5.000000e-01>, <2 x double> %26)
%28 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %22, <2 x double> <double -5.000000e-01, double -5.000000e-01>, <2 x double> %27)
%29 = fmul <2 x double> %22, <double 0xBFEBB67AE8584CAE, double 0xBFEBB67AE8584CAE>
%30 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %24, <2 x double> <double 0x3FEBB67AE8584CAE, double 0x3FEBB67AE8584CAE>, <2 x double> %29)
%31 = bitcast double* %20 to <2 x double>*
store <2 x double> %30, <2 x double>* %31
%32 = bitcast double* %5 to <2 x double>*
store <2 x double> %28, <2 x double>* %32
%33 = getelementptr inbounds double, double* %5, i64 17
%34 = load double, double* %33
%35 = getelementptr inbounds double, double* %5, i64 11
%36 = load double, double* %35
%37 = tail call double @llvm.fmuladd.f64(double %36, double -5.000000e-01, double %34)
%38 = getelementptr inbounds double, double* %5, i64 2
%39 = load double, double* %38
%40 = tail call double @llvm.fmuladd.f64(double %39, double -5.000000e-01, double %37)
%41 = fmul double %36, 0xBFEBB67AE8584CAE
%42 = tail call double @llvm.fmuladd.f64(double %39, double 0x3FEBB67AE8584CAE, double %41)
store double %42, double* %35
store double %40, double* %38
%43 = getelementptr inbounds double, double* %5, i64 3
%44 = bitcast double* %43 to <2 x double>*
%45 = load <2 x double>, <2 x double>* %44
%46 = bitcast double* %9 to <2 x double>*
store <2 x double> %45, <2 x double>* %46
%47 = bitcast double* %43 to <2 x double>*
store <2 x double> %11, <2 x double>* %47
%48 = getelementptr inbounds double, double* %5, i64 5
%49 = load double, double* %48
store double %49, double* %17
store double %16, double* %48
ret void
}