#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*/ twobody_XA_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_XC_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_XG_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_XM_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_YA_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_YB_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_YC_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_YG_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_YH_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_YM_slip_far(int, double, double, double, double,
                                       double *, double *);
int /*<<< orphan*/ twobody_ZM_slip_far(int, double, double, double, double,
                                       double *, double *);
void twobody_slip_far(int version, int n, double l, double s, double hat_g1,
                      double hat_g2, double *far) {
  twobody_XA_slip_far(n, l, s, hat_g1, hat_g2, far + 0, far + 1);
  twobody_YA_slip_far(n, l, s, hat_g1, hat_g2, far + 2, far + 3);
  if (version == 0)
    return;
  twobody_YB_slip_far(n, l, s, hat_g1, hat_g2, far + 4, far + 5);
  twobody_XC_slip_far(n, l, s, hat_g1, hat_g2, far + 6, far + 7);
  twobody_YC_slip_far(n, l, s, hat_g1, hat_g2, far + 8, far + 9);
  if (version == 1)
    return;
  twobody_XG_slip_far(n, l, s, hat_g1, hat_g2, far + 10, far + 11);
  twobody_YG_slip_far(n, l, s, hat_g1, hat_g2, far + 12, far + 13);
  twobody_YH_slip_far(n, l, s, hat_g1, hat_g2, far + 14, far + 15);
  twobody_XM_slip_far(n, l, s, hat_g1, hat_g2, far + 16, far + 17);
  twobody_YM_slip_far(n, l, s, hat_g1, hat_g2, far + 18, far + 19);
  twobody_ZM_slip_far(n, l, s, hat_g1, hat_g2, far + 20, far + 21);
}


x86 assembly (clang, -O0):
<twobody_slip_far>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
mov    -0x30(%rbp),%rdx
add    $0x8,%rdx
call   1050 <twobody_XA_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x10,%rsi
mov    -0x30(%rbp),%rdx
add    $0x18,%rdx
call   1060 <twobody_YA_slip_far@plt>
cmpl   $0x0,-0x4(%rbp)
jne    1239 <twobody_slip_far+0x89>
jmp    13e6 <twobody_slip_far+0x236>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x20,%rsi
mov    -0x30(%rbp),%rdx
add    $0x28,%rdx
call   10a0 <twobody_YB_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x30,%rsi
mov    -0x30(%rbp),%rdx
add    $0x38,%rdx
call   1030 <twobody_XC_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x40,%rsi
mov    -0x30(%rbp),%rdx
add    $0x48,%rdx
call   10c0 <twobody_YC_slip_far@plt>
cmpl   $0x1,-0x4(%rbp)
jne    12cc <twobody_slip_far+0x11c>
jmp    13e6 <twobody_slip_far+0x236>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x50,%rsi
mov    -0x30(%rbp),%rdx
add    $0x58,%rdx
call   10d0 <twobody_XG_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x60,%rsi
mov    -0x30(%rbp),%rdx
add    $0x68,%rdx
call   1070 <twobody_YG_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x70,%rsi
mov    -0x30(%rbp),%rdx
add    $0x78,%rdx
call   1090 <twobody_YH_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x80,%rsi
mov    -0x30(%rbp),%rdx
add    $0x88,%rdx
call   1080 <twobody_XM_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0x90,%rsi
mov    -0x30(%rbp),%rdx
add    $0x98,%rdx
call   10b0 <twobody_YM_slip_far@plt>
mov    -0x8(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
mov    -0x30(%rbp),%rsi
add    $0xa0,%rsi
mov    -0x30(%rbp),%rdx
add    $0xa8,%rdx
call   1040 <twobody_ZM_slip_far@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<twobody_slip_far>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rdx,%rbx
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
mov    %esi,%ebp
mov    %edi,%r14d
add    $0x8,%rdx
mov    %esi,%edi
mov    %rbx,%rsi
call   1050 <twobody_XA_slip_far@plt>
lea    0x10(%rbx),%rsi
lea    0x18(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   1060 <twobody_YA_slip_far@plt>
test   %r14d,%r14d
je     1288 <twobody_slip_far+0xd8>
lea    0x20(%rbx),%rsi
lea    0x28(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   10a0 <twobody_YB_slip_far@plt>
lea    0x30(%rbx),%rsi
lea    0x38(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   1030 <twobody_XC_slip_far@plt>
lea    0x40(%rbx),%rsi
lea    0x48(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   10c0 <twobody_YC_slip_far@plt>
cmp    $0x1,%r14d
jne    1291 <twobody_slip_far+0xe1>
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0x50(%rbx),%rsi
lea    0x58(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   10d0 <twobody_XG_slip_far@plt>
lea    0x60(%rbx),%rsi
lea    0x68(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   1070 <twobody_YG_slip_far@plt>
lea    0x70(%rbx),%rsi
lea    0x78(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   1090 <twobody_YH_slip_far@plt>
lea    0x80(%rbx),%rsi
lea    0x88(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   1080 <twobody_XM_slip_far@plt>
lea    0x90(%rbx),%rsi
lea    0x98(%rbx),%rdx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
call   10b0 <twobody_YM_slip_far@plt>
lea    0xa0(%rbx),%rsi
add    $0xa8,%rbx
mov    %ebp,%edi
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
mov    %rbx,%rdx
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <twobody_ZM_slip_far@plt>

LLVM IR (-O0):
define void @twobody_slip_far(i32 %0, i32 %1, double %2, double %3, double %4, double %5, double* %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double*
store i32 %0, i32* %8
store i32 %1, i32* %9
store double %2, double* %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double* %6, double** %14
%15 = load i32, i32* %9
%16 = load double, double* %10
%17 = load double, double* %11
%18 = load double, double* %12
%19 = load double, double* %13
%20 = load double*, double** %14
%21 = getelementptr inbounds double, double* %20, i64 0
%22 = load double*, double** %14
%23 = getelementptr inbounds double, double* %22, i64 1
%24 = call i32 @twobody_XA_slip_far(i32 %15, double %16, double %17, double %18, double %19, double* %21, double* %23)
%25 = load i32, i32* %9
%26 = load double, double* %10
%27 = load double, double* %11
%28 = load double, double* %12
%29 = load double, double* %13
%30 = load double*, double** %14
%31 = getelementptr inbounds double, double* %30, i64 2
%32 = load double*, double** %14
%33 = getelementptr inbounds double, double* %32, i64 3
%34 = call i32 @twobody_YA_slip_far(i32 %25, double %26, double %27, double %28, double %29, double* %31, double* %33)
%35 = load i32, i32* %8
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %7
br label %133
38: ; preds = %7
%39 = load i32, i32* %9
%40 = load double, double* %10
%41 = load double, double* %11
%42 = load double, double* %12
%43 = load double, double* %13
%44 = load double*, double** %14
%45 = getelementptr inbounds double, double* %44, i64 4
%46 = load double*, double** %14
%47 = getelementptr inbounds double, double* %46, i64 5
%48 = call i32 @twobody_YB_slip_far(i32 %39, double %40, double %41, double %42, double %43, double* %45, double* %47)
%49 = load i32, i32* %9
%50 = load double, double* %10
%51 = load double, double* %11
%52 = load double, double* %12
%53 = load double, double* %13
%54 = load double*, double** %14
%55 = getelementptr inbounds double, double* %54, i64 6
%56 = load double*, double** %14
%57 = getelementptr inbounds double, double* %56, i64 7
%58 = call i32 @twobody_XC_slip_far(i32 %49, double %50, double %51, double %52, double %53, double* %55, double* %57)
%59 = load i32, i32* %9
%60 = load double, double* %10
%61 = load double, double* %11
%62 = load double, double* %12
%63 = load double, double* %13
%64 = load double*, double** %14
%65 = getelementptr inbounds double, double* %64, i64 8
%66 = load double*, double** %14
%67 = getelementptr inbounds double, double* %66, i64 9
%68 = call i32 @twobody_YC_slip_far(i32 %59, double %60, double %61, double %62, double %63, double* %65, double* %67)
%69 = load i32, i32* %8
%70 = icmp eq i32 %69, 1
br i1 %70, label %71, label %72
71: ; preds = %38
br label %133
72: ; preds = %38
%73 = load i32, i32* %9
%74 = load double, double* %10
%75 = load double, double* %11
%76 = load double, double* %12
%77 = load double, double* %13
%78 = load double*, double** %14
%79 = getelementptr inbounds double, double* %78, i64 10
%80 = load double*, double** %14
%81 = getelementptr inbounds double, double* %80, i64 11
%82 = call i32 @twobody_XG_slip_far(i32 %73, double %74, double %75, double %76, double %77, double* %79, double* %81)
%83 = load i32, i32* %9
%84 = load double, double* %10
%85 = load double, double* %11
%86 = load double, double* %12
%87 = load double, double* %13
%88 = load double*, double** %14
%89 = getelementptr inbounds double, double* %88, i64 12
%90 = load double*, double** %14
%91 = getelementptr inbounds double, double* %90, i64 13
%92 = call i32 @twobody_YG_slip_far(i32 %83, double %84, double %85, double %86, double %87, double* %89, double* %91)
%93 = load i32, i32* %9
%94 = load double, double* %10
%95 = load double, double* %11
%96 = load double, double* %12
%97 = load double, double* %13
%98 = load double*, double** %14
%99 = getelementptr inbounds double, double* %98, i64 14
%100 = load double*, double** %14
%101 = getelementptr inbounds double, double* %100, i64 15
%102 = call i32 @twobody_YH_slip_far(i32 %93, double %94, double %95, double %96, double %97, double* %99, double* %101)
%103 = load i32, i32* %9
%104 = load double, double* %10
%105 = load double, double* %11
%106 = load double, double* %12
%107 = load double, double* %13
%108 = load double*, double** %14
%109 = getelementptr inbounds double, double* %108, i64 16
%110 = load double*, double** %14
%111 = getelementptr inbounds double, double* %110, i64 17
%112 = call i32 @twobody_XM_slip_far(i32 %103, double %104, double %105, double %106, double %107, double* %109, double* %111)
%113 = load i32, i32* %9
%114 = load double, double* %10
%115 = load double, double* %11
%116 = load double, double* %12
%117 = load double, double* %13
%118 = load double*, double** %14
%119 = getelementptr inbounds double, double* %118, i64 18
%120 = load double*, double** %14
%121 = getelementptr inbounds double, double* %120, i64 19
%122 = call i32 @twobody_YM_slip_far(i32 %113, double %114, double %115, double %116, double %117, double* %119, double* %121)
%123 = load i32, i32* %9
%124 = load double, double* %10
%125 = load double, double* %11
%126 = load double, double* %12
%127 = load double, double* %13
%128 = load double*, double** %14
%129 = getelementptr inbounds double, double* %128, i64 20
%130 = load double*, double** %14
%131 = getelementptr inbounds double, double* %130, i64 21
%132 = call i32 @twobody_ZM_slip_far(i32 %123, double %124, double %125, double %126, double %127, double* %129, double* %131)
br label %133
133: ; preds = %72, %71, %37
ret void
}

LLVM IR (-O2):
define void @twobody_slip_far(i32 %0, i32 %1, double %2, double %3, double %4, double %5, double* %6) {
%8 = getelementptr inbounds double, double* %6, i64 1
%9 = tail call i32 @twobody_XA_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %6, double* %8)
%10 = getelementptr inbounds double, double* %6, i64 2
%11 = getelementptr inbounds double, double* %6, i64 3
%12 = tail call i32 @twobody_YA_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %10, double* %11)
%13 = icmp eq i32 %0, 0
br i1 %13, label %44, label %14
14: ; preds = %7
%15 = getelementptr inbounds double, double* %6, i64 4
%16 = getelementptr inbounds double, double* %6, i64 5
%17 = tail call i32 @twobody_YB_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %15, double* %16)
%18 = getelementptr inbounds double, double* %6, i64 6
%19 = getelementptr inbounds double, double* %6, i64 7
%20 = tail call i32 @twobody_XC_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %18, double* %19)
%21 = getelementptr inbounds double, double* %6, i64 8
%22 = getelementptr inbounds double, double* %6, i64 9
%23 = tail call i32 @twobody_YC_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %21, double* %22)
%24 = icmp eq i32 %0, 1
br i1 %24, label %44, label %25
25: ; preds = %14
%26 = getelementptr inbounds double, double* %6, i64 10
%27 = getelementptr inbounds double, double* %6, i64 11
%28 = tail call i32 @twobody_XG_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %26, double* %27)
%29 = getelementptr inbounds double, double* %6, i64 12
%30 = getelementptr inbounds double, double* %6, i64 13
%31 = tail call i32 @twobody_YG_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %29, double* %30)
%32 = getelementptr inbounds double, double* %6, i64 14
%33 = getelementptr inbounds double, double* %6, i64 15
%34 = tail call i32 @twobody_YH_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %32, double* %33)
%35 = getelementptr inbounds double, double* %6, i64 16
%36 = getelementptr inbounds double, double* %6, i64 17
%37 = tail call i32 @twobody_XM_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %35, double* %36)
%38 = getelementptr inbounds double, double* %6, i64 18
%39 = getelementptr inbounds double, double* %6, i64 19
%40 = tail call i32 @twobody_YM_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %38, double* %39)
%41 = getelementptr inbounds double, double* %6, i64 20
%42 = getelementptr inbounds double, double* %6, i64 21
%43 = tail call i32 @twobody_ZM_slip_far(i32 %1, double %2, double %3, double %4, double %5, double* %41, double* %42)
br label %44
44: ; preds = %14, %7, %25
ret void
}