#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_cF_S(double *, double, double *, double, double *,
                                  double *);
void gint2_nai_pF_S(double *a, double a_a, double *b, double b_a, double *c,
                    double *out) {
  double tmp0, tmp1, tmp2;
  gint2_nai_cF_S(a, a_a, b, b_a, c, out);
  tmp0 = 1.09544511501033 * out[5] - 0.273861278752583 * out[3] -
         0.612372435695794 * out[0];
  tmp1 = out[9] - 0.670820393249937 * out[2] - 0.670820393249937 * out[7];
  tmp2 = 0.866025403784439 * out[2] - 0.866025403784439 * out[7];
  out[2] = 1.09544511501033 * out[8] - 0.273861278752583 * out[1] -
           0.612372435695794 * out[6];
  out[5] = 0.790569415042095 * out[0] - 1.06066017177982 * out[3];
  out[3] = tmp2;
  out[0] = tmp1;
  out[6] = 1.06066017177982 * out[1] - 0.790569415042095 * out[6];
  out[1] = tmp0;
}


x86 assembly (clang, -O0):
<gint2_nai_pF_S>:
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_cF_S@plt>
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm1
mov    -0x30(%rbp),%rax
movsd  0xeba(%rip),%xmm0
mulsd  0x18(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe8e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xe6e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm1
movsd  0xe67(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  0xe4e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xe24(%rip),%xmm1
mulsd  0x38(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe00(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm1
mov    -0x30(%rbp),%rax
movsd  0xdd6(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xdaa(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  0xd89(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xd54(%rip),%xmm1
mulsd  0x18(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd38(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x48(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  0xcf7(%rip),%xmm1
mulsd  0x30(%rax),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xccb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x30(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint2_nai_pF_S>:
push   %rbx
mov    %rcx,%rbx
call   1030 <gint2_nai_cF_S@plt>
movsd  0x18(%rbx),%xmm0
movsd  0xeda(%rip),%xmm1
movapd %xmm0,%xmm2
movsd  0x10(%rbx),%xmm3
movsd  0x30(%rbx),%xmm4
unpcklpd %xmm4,%xmm0
unpcklpd %xmm3,%xmm4
movhpd 0x28(%rbx),%xmm3
mulsd  %xmm1,%xmm2
movsd  0x48(%rbx),%xmm5
mulpd  0xece(%rip),%xmm3
unpcklpd %xmm2,%xmm5
addpd  %xmm5,%xmm3
movsd  0x38(%rbx),%xmm2
movupd (%rbx),%xmm5
movapd %xmm2,%xmm6
unpcklpd %xmm5,%xmm6
mulpd  0xebd(%rip),%xmm6
addpd  %xmm3,%xmm6
mulsd  0xe89(%rip),%xmm2
movsd  0x40(%rbx),%xmm3
movapd %xmm5,%xmm7
unpckhpd %xmm5,%xmm7
mulsd  %xmm1,%xmm7
mulsd  0xe78(%rip),%xmm3
addsd  %xmm7,%xmm3
unpcklpd %xmm2,%xmm3
mulpd  0xe98(%rip),%xmm4
addpd  %xmm3,%xmm4
mulpd  0xe9c(%rip),%xmm0
mulpd  0xea4(%rip),%xmm5
movupd %xmm4,0x10(%rbx)
addpd  %xmm0,%xmm5
movupd %xmm5,0x28(%rbx)
movupd %xmm6,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @gint2_nai_pF_S(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
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
%16 = load double*, double** %7
%17 = load double, double* %8
%18 = load double*, double** %9
%19 = load double, double* %10
%20 = load double*, double** %11
%21 = load double*, double** %12
%22 = call i32 @gint2_nai_cF_S(double* %16, double %17, double* %18, double %19, double* %20, double* %21)
%23 = load double*, double** %12
%24 = getelementptr inbounds double, double* %23, i64 5
%25 = load double, double* %24
%26 = load double*, double** %12
%27 = getelementptr inbounds double, double* %26, i64 3
%28 = load double, double* %27
%29 = fmul double 0x3FD186F174F88471, %28
%30 = fneg double %29
%31 = call double @llvm.fmuladd.f64(double 0x3FF186F174F88468, double %25, double %30)
%32 = load double*, double** %12
%33 = getelementptr inbounds double, double* %32, i64 0
%34 = load double, double* %33
%35 = call double @llvm.fmuladd.f64(double 0xBFE3988E1409212A, double %34, double %31)
store double %35, double* %13
%36 = load double*, double** %12
%37 = getelementptr inbounds double, double* %36, i64 9
%38 = load double, double* %37
%39 = load double*, double** %12
%40 = getelementptr inbounds double, double* %39, i64 2
%41 = load double, double* %40
%42 = call double @llvm.fmuladd.f64(double 0xBFE5775C544FF264, double %41, double %38)
%43 = load double*, double** %12
%44 = getelementptr inbounds double, double* %43, i64 7
%45 = load double, double* %44
%46 = call double @llvm.fmuladd.f64(double 0xBFE5775C544FF264, double %45, double %42)
store double %46, double* %14
%47 = load double*, double** %12
%48 = getelementptr inbounds double, double* %47, i64 2
%49 = load double, double* %48
%50 = load double*, double** %12
%51 = getelementptr inbounds double, double* %50, i64 7
%52 = load double, double* %51
%53 = fmul double 0x3FEBB67AE8584CAE, %52
%54 = fneg double %53
%55 = call double @llvm.fmuladd.f64(double 0x3FEBB67AE8584CAE, double %49, double %54)
store double %55, double* %15
%56 = load double*, double** %12
%57 = getelementptr inbounds double, double* %56, i64 8
%58 = load double, double* %57
%59 = load double*, double** %12
%60 = getelementptr inbounds double, double* %59, i64 1
%61 = load double, double* %60
%62 = fmul double 0x3FD186F174F88471, %61
%63 = fneg double %62
%64 = call double @llvm.fmuladd.f64(double 0x3FF186F174F88468, double %58, double %63)
%65 = load double*, double** %12
%66 = getelementptr inbounds double, double* %65, i64 6
%67 = load double, double* %66
%68 = call double @llvm.fmuladd.f64(double 0xBFE3988E1409212A, double %67, double %64)
%69 = load double*, double** %12
%70 = getelementptr inbounds double, double* %69, i64 2
store double %68, double* %70
%71 = load double*, double** %12
%72 = getelementptr inbounds double, double* %71, i64 0
%73 = load double, double* %72
%74 = load double*, double** %12
%75 = getelementptr inbounds double, double* %74, i64 3
%76 = load double, double* %75
%77 = fmul double 0x3FF0F876CCDF6CD4, %76
%78 = fneg double %77
%79 = call double @llvm.fmuladd.f64(double 0x3FE94C583ADA5B54, double %73, double %78)
%80 = load double*, double** %12
%81 = getelementptr inbounds double, double* %80, i64 5
store double %79, double* %81
%82 = load double, double* %15
%83 = load double*, double** %12
%84 = getelementptr inbounds double, double* %83, i64 3
store double %82, double* %84
%85 = load double, double* %14
%86 = load double*, double** %12
%87 = getelementptr inbounds double, double* %86, i64 0
store double %85, double* %87
%88 = load double*, double** %12
%89 = getelementptr inbounds double, double* %88, i64 1
%90 = load double, double* %89
%91 = load double*, double** %12
%92 = getelementptr inbounds double, double* %91, i64 6
%93 = load double, double* %92
%94 = fmul double 0x3FE94C583ADA5B54, %93
%95 = fneg double %94
%96 = call double @llvm.fmuladd.f64(double 0x3FF0F876CCDF6CD4, double %90, double %95)
%97 = load double*, double** %12
%98 = getelementptr inbounds double, double* %97, i64 6
store double %96, double* %98
%99 = load double, double* %13
%100 = load double*, double** %12
%101 = getelementptr inbounds double, double* %100, i64 1
store double %99, double* %101
ret void
}

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