#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_SP_cD(double *, double, double *, double, double *,
                                   double *);
void gint2_nai_cD_SP(double *a, double a_a, double *b, double b_a, double *c,
                     double *out) {
  double tmp;
  gint2_nai_SP_cD(b, b_a, a, a_a, c, out);
  tmp = out[1];
  out[1] = out[6];
  out[6] = out[13];
  out[13] = out[9];
  out[9] = out[8];
  out[8] = out[2];
  out[2] = out[12];
  out[12] = out[3];
  out[3] = out[18];
  out[18] = out[16];
  out[16] = out[4];
  out[4] = tmp;
  tmp = out[5];
  out[5] = out[7];
  out[7] = out[19];
  out[19] = out[22];
  out[22] = out[17];
  out[17] = out[10];
  out[10] = out[14];
  out[14] = out[15];
  out[15] = out[21];
  out[21] = out[11];
  out[11] = out[20];
  out[20] = tmp;
}


x86 assembly (clang, -O0):
<gint2_nai_cD_SP>:
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_SP_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  0x68(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x30(%rbp),%rax
movsd  0x60(%rax),%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)
mov    -0x30(%rbp),%rax
movsd  0x90(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x30(%rbp),%rax
movsd  0x80(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x90(%rax)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x80(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x30(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x30(%rbp),%rax
movsd  0x98(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x30(%rbp),%rax
movsd  0xb0(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x98(%rax)
mov    -0x30(%rbp),%rax
movsd  0x88(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0xb0(%rax)
mov    -0x30(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x88(%rax)
mov    -0x30(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x30(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x30(%rbp),%rax
movsd  0xa8(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x30(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0xa8(%rax)
mov    -0x30(%rbp),%rax
movsd  0xa0(%rax),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0x58(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,0xa0(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gint2_nai_cD_SP>:
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_SP_cD@plt>
movsd  0x30(%rbx),%xmm0
movsd  0x8(%rbx),%xmm1
movsd  0x10(%rbx),%xmm2
movsd  %xmm0,0x8(%rbx)
movsd  0x68(%rbx),%xmm0
movsd  %xmm0,0x30(%rbx)
movsd  0x48(%rbx),%xmm0
movsd  %xmm0,0x68(%rbx)
movsd  0x40(%rbx),%xmm0
movsd  %xmm0,0x48(%rbx)
movsd  %xmm2,0x40(%rbx)
movsd  0x60(%rbx),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x18(%rbx),%xmm0
movsd  %xmm0,0x60(%rbx)
movsd  0x90(%rbx),%xmm0
movsd  %xmm0,0x18(%rbx)
movsd  0x80(%rbx),%xmm0
movsd  %xmm0,0x90(%rbx)
movsd  0x20(%rbx),%xmm0
movsd  %xmm0,0x80(%rbx)
movsd  %xmm1,0x20(%rbx)
movsd  0x28(%rbx),%xmm0
movsd  0x38(%rbx),%xmm1
movsd  %xmm1,0x28(%rbx)
movsd  0x98(%rbx),%xmm1
movsd  %xmm1,0x38(%rbx)
movsd  0xb0(%rbx),%xmm1
movsd  %xmm1,0x98(%rbx)
movsd  0x88(%rbx),%xmm1
movsd  %xmm1,0xb0(%rbx)
movsd  0x50(%rbx),%xmm1
movsd  %xmm1,0x88(%rbx)
movsd  0x70(%rbx),%xmm1
movsd  %xmm1,0x50(%rbx)
movsd  0x78(%rbx),%xmm1
movsd  %xmm1,0x70(%rbx)
movsd  0xa8(%rbx),%xmm1
movsd  %xmm1,0x78(%rbx)
movsd  0x58(%rbx),%xmm1
movsd  %xmm1,0xa8(%rbx)
movsd  0xa0(%rbx),%xmm1
movsd  %xmm1,0x58(%rbx)
movsd  %xmm0,0xa0(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @gint2_nai_cD_SP(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_SP_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 13
%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 9
%36 = load double, double* %35
%37 = load double*, double** %12
%38 = getelementptr inbounds double, double* %37, i64 13
store double %36, double* %38
%39 = load double*, double** %12
%40 = getelementptr inbounds double, double* %39, i64 8
%41 = load double, double* %40
%42 = load double*, double** %12
%43 = getelementptr inbounds double, double* %42, i64 9
store double %41, double* %43
%44 = load double*, double** %12
%45 = getelementptr inbounds double, double* %44, i64 2
%46 = load double, double* %45
%47 = load double*, double** %12
%48 = getelementptr inbounds double, double* %47, i64 8
store double %46, double* %48
%49 = load double*, double** %12
%50 = getelementptr inbounds double, double* %49, i64 12
%51 = load double, double* %50
%52 = load double*, double** %12
%53 = getelementptr inbounds double, double* %52, i64 2
store double %51, double* %53
%54 = load double*, double** %12
%55 = getelementptr inbounds double, double* %54, i64 3
%56 = load double, double* %55
%57 = load double*, double** %12
%58 = getelementptr inbounds double, double* %57, i64 12
store double %56, double* %58
%59 = load double*, double** %12
%60 = getelementptr inbounds double, double* %59, i64 18
%61 = load double, double* %60
%62 = load double*, double** %12
%63 = getelementptr inbounds double, double* %62, i64 3
store double %61, double* %63
%64 = load double*, double** %12
%65 = getelementptr inbounds double, double* %64, i64 16
%66 = load double, double* %65
%67 = load double*, double** %12
%68 = getelementptr inbounds double, double* %67, i64 18
store double %66, double* %68
%69 = load double*, double** %12
%70 = getelementptr inbounds double, double* %69, i64 4
%71 = load double, double* %70
%72 = load double*, double** %12
%73 = getelementptr inbounds double, double* %72, i64 16
store double %71, double* %73
%74 = load double, double* %13
%75 = load double*, double** %12
%76 = getelementptr inbounds double, double* %75, i64 4
store double %74, double* %76
%77 = load double*, double** %12
%78 = getelementptr inbounds double, double* %77, i64 5
%79 = load double, double* %78
store double %79, double* %13
%80 = load double*, double** %12
%81 = getelementptr inbounds double, double* %80, i64 7
%82 = load double, double* %81
%83 = load double*, double** %12
%84 = getelementptr inbounds double, double* %83, i64 5
store double %82, double* %84
%85 = load double*, double** %12
%86 = getelementptr inbounds double, double* %85, i64 19
%87 = load double, double* %86
%88 = load double*, double** %12
%89 = getelementptr inbounds double, double* %88, i64 7
store double %87, double* %89
%90 = load double*, double** %12
%91 = getelementptr inbounds double, double* %90, i64 22
%92 = load double, double* %91
%93 = load double*, double** %12
%94 = getelementptr inbounds double, double* %93, i64 19
store double %92, double* %94
%95 = load double*, double** %12
%96 = getelementptr inbounds double, double* %95, i64 17
%97 = load double, double* %96
%98 = load double*, double** %12
%99 = getelementptr inbounds double, double* %98, i64 22
store double %97, double* %99
%100 = load double*, double** %12
%101 = getelementptr inbounds double, double* %100, i64 10
%102 = load double, double* %101
%103 = load double*, double** %12
%104 = getelementptr inbounds double, double* %103, i64 17
store double %102, double* %104
%105 = load double*, double** %12
%106 = getelementptr inbounds double, double* %105, i64 14
%107 = load double, double* %106
%108 = load double*, double** %12
%109 = getelementptr inbounds double, double* %108, i64 10
store double %107, double* %109
%110 = load double*, double** %12
%111 = getelementptr inbounds double, double* %110, i64 15
%112 = load double, double* %111
%113 = load double*, double** %12
%114 = getelementptr inbounds double, double* %113, i64 14
store double %112, double* %114
%115 = load double*, double** %12
%116 = getelementptr inbounds double, double* %115, i64 21
%117 = load double, double* %116
%118 = load double*, double** %12
%119 = getelementptr inbounds double, double* %118, i64 15
store double %117, double* %119
%120 = load double*, double** %12
%121 = getelementptr inbounds double, double* %120, i64 11
%122 = load double, double* %121
%123 = load double*, double** %12
%124 = getelementptr inbounds double, double* %123, i64 21
store double %122, double* %124
%125 = load double*, double** %12
%126 = getelementptr inbounds double, double* %125, i64 20
%127 = load double, double* %126
%128 = load double*, double** %12
%129 = getelementptr inbounds double, double* %128, i64 11
store double %127, double* %129
%130 = load double, double* %13
%131 = load double*, double** %12
%132 = getelementptr inbounds double, double* %131, i64 20
store double %130, double* %132
ret void
}

LLVM IR (-O2):
define void @gint2_nai_cD_SP(double* %0, double %1, double* %2, double %3, double* %4, double* %5) {
%7 = tail call i32 @gint2_nai_SP_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 13
%13 = load double, double* %12
store double %13, double* %10
%14 = getelementptr inbounds double, double* %5, i64 9
%15 = load double, double* %14
store double %15, double* %12
%16 = getelementptr inbounds double, double* %5, i64 8
%17 = load double, double* %16
store double %17, double* %14
%18 = getelementptr inbounds double, double* %5, i64 2
%19 = load double, double* %18
store double %19, double* %16
%20 = getelementptr inbounds double, double* %5, i64 12
%21 = load double, double* %20
store double %21, double* %18
%22 = getelementptr inbounds double, double* %5, i64 3
%23 = load double, double* %22
store double %23, double* %20
%24 = getelementptr inbounds double, double* %5, i64 18
%25 = load double, double* %24
store double %25, double* %22
%26 = getelementptr inbounds double, double* %5, i64 16
%27 = load double, double* %26
store double %27, double* %24
%28 = getelementptr inbounds double, double* %5, i64 4
%29 = load double, double* %28
store double %29, double* %26
store double %9, double* %28
%30 = getelementptr inbounds double, double* %5, i64 5
%31 = load double, double* %30
%32 = getelementptr inbounds double, double* %5, i64 7
%33 = load double, double* %32
store double %33, double* %30
%34 = getelementptr inbounds double, double* %5, i64 19
%35 = load double, double* %34
store double %35, double* %32
%36 = getelementptr inbounds double, double* %5, i64 22
%37 = load double, double* %36
store double %37, double* %34
%38 = getelementptr inbounds double, double* %5, i64 17
%39 = load double, double* %38
store double %39, double* %36
%40 = getelementptr inbounds double, double* %5, i64 10
%41 = load double, double* %40
store double %41, double* %38
%42 = getelementptr inbounds double, double* %5, i64 14
%43 = load double, double* %42
store double %43, double* %40
%44 = getelementptr inbounds double, double* %5, i64 15
%45 = load double, double* %44
store double %45, double* %42
%46 = getelementptr inbounds double, double* %5, i64 21
%47 = load double, double* %46
store double %47, double* %44
%48 = getelementptr inbounds double, double* %5, i64 11
%49 = load double, double* %48
store double %49, double* %46
%50 = getelementptr inbounds double, double* %5, i64 20
%51 = load double, double* %50
store double %51, double* %48
store double %31, double* %50
ret void
}