#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_P_cD(double *, double, double *, double, double *,
                                  double *);
void gint2_nai_cD_P(double *a, double a_a, double *b, double b_a, double *c,
                    double *out) {
  double tmp;
  gint2_nai_P_cD(b, b_a, a, a_a, c, out);
  tmp = out[1];
  out[1] = out[6];
  out[6] = out[2];
  out[2] = out[12];
  out[12] = out[4];
  out[4] = out[7];
  out[7] = out[8];
  out[8] = out[14];
  out[14] = out[16];
  out[16] = out[11];
  out[11] = out[15];
  out[15] = out[5];
  out[5] = out[13];
  out[13] = out[10];
  out[10] = out[9];
  out[9] = out[3];
  out[3] = tmp;
}


x86 assembly (clang, -O0):
<gint2_nai_cD_P>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    -0x18(%rbp),%rdi
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rsi
movsd  -0x10(%rbp),%xmm1
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
call   1030 <gint2_nai_P_cD@plt>
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x30(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x30(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x30(%rbp),%rax
movsd  0x80(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x30(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x80(%rax)
mov    -0x30(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x58(%rax)
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x30(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x30(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x30(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x30(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x48(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint2_nai_cD_P>:
push   %rbx
mov    %rcx,%rbx
movaps %xmm0,%xmm2
mov    %rdi,%rax
mov    %rsi,%rdi
movaps %xmm1,%xmm0
mov    %rax,%rsi
movaps %xmm2,%xmm1
call   1030 <gint2_nai_P_cD@plt>
movsd  0x30(%rbx),%xmm0
movsd  0x8(%rbx),%xmm1
movsd  0x10(%rbx),%xmm2
movsd  %xmm0,0x8(%rbx)
movsd  %xmm2,0x30(%rbx)
movsd  0x60(%rbx),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x20(%rbx),%xmm0
movsd  %xmm0,0x60(%rbx)
movsd  0x38(%rbx),%xmm0
movsd  %xmm0,0x20(%rbx)
movsd  0x40(%rbx),%xmm0
movsd  %xmm0,0x38(%rbx)
movsd  0x70(%rbx),%xmm0
movsd  %xmm0,0x40(%rbx)
movsd  0x80(%rbx),%xmm0
movsd  %xmm0,0x70(%rbx)
movsd  0x58(%rbx),%xmm0
movsd  %xmm0,0x80(%rbx)
movsd  0x78(%rbx),%xmm0
movsd  %xmm0,0x58(%rbx)
movsd  0x28(%rbx),%xmm0
movsd  %xmm0,0x78(%rbx)
movsd  0x68(%rbx),%xmm0
movsd  %xmm0,0x28(%rbx)
movsd  0x50(%rbx),%xmm0
movsd  %xmm0,0x68(%rbx)
movsd  0x48(%rbx),%xmm0
movsd  %xmm0,0x50(%rbx)
movsd  0x18(%rbx),%xmm0
movsd  %xmm0,0x48(%rbx)
movsd  %xmm1,0x18(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
define void @gint2_nai_cD_P(double* %0, double %1, double* %2, double %3, double* %4, double* %5) {
%7 = tail call i32 @gint2_nai_P_cD(double* %2, double %3, double* %0, double %1, double* %4, double* %5)
%8 = getelementptr inbounds double, double* %5, i64 1
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %5, i64 6
%11 = load double, double* %10
store double %11, double* %8
%12 = getelementptr inbounds double, double* %5, i64 2
%13 = load double, double* %12
store double %13, double* %10
%14 = getelementptr inbounds double, double* %5, i64 12
%15 = load double, double* %14
store double %15, double* %12
%16 = getelementptr inbounds double, double* %5, i64 4
%17 = load double, double* %16
store double %17, double* %14
%18 = getelementptr inbounds double, double* %5, i64 7
%19 = load double, double* %18
store double %19, double* %16
%20 = getelementptr inbounds double, double* %5, i64 8
%21 = load double, double* %20
store double %21, double* %18
%22 = getelementptr inbounds double, double* %5, i64 14
%23 = load double, double* %22
store double %23, double* %20
%24 = getelementptr inbounds double, double* %5, i64 16
%25 = load double, double* %24
store double %25, double* %22
%26 = getelementptr inbounds double, double* %5, i64 11
%27 = load double, double* %26
store double %27, double* %24
%28 = getelementptr inbounds double, double* %5, i64 15
%29 = load double, double* %28
store double %29, double* %26
%30 = getelementptr inbounds double, double* %5, i64 5
%31 = load double, double* %30
store double %31, double* %28
%32 = getelementptr inbounds double, double* %5, i64 13
%33 = load double, double* %32
store double %33, double* %30
%34 = getelementptr inbounds double, double* %5, i64 10
%35 = load double, double* %34
store double %35, double* %32
%36 = getelementptr inbounds double, double* %5, i64 9
%37 = load double, double* %36
store double %37, double* %34
%38 = getelementptr inbounds double, double* %5, i64 3
%39 = load double, double* %38
store double %39, double* %36
store double %9, double* %38
ret void
}