#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*/ palEl2ue(double, int, double, double, double, double, double,
                            double, double, double, double *, int *);
int /*<<< orphan*/ palUe2pv(double, double *, double *, int *);
void palPlanel(double date, int jform, double epoch, double orbinc,
               double anode, double perih, double aorq, double e, double aorl,
               double dm, double pv[6], int *jstat) {
  int j;
  double u[13];
  palEl2ue(date, jform, epoch, orbinc, anode, perih, aorq, e, aorl, dm, u, &j);
  if (j == 0) {
    palUe2pv(date, u, pv, &j);
    if (j != 0)
      j = -5;
  }
  *jstat = j;
}


x86 assembly (clang, -O0):
<palPlanel>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movsd  0x10(%rbp),%xmm8
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
movsd  %xmm7,-0x48(%rbp)
mov    %rsi,-0x50(%rbp)
mov    %rdx,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0xc(%rbp),%edi
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x38(%rbp),%xmm5
movsd  -0x40(%rbp),%xmm6
movsd  -0x48(%rbp),%xmm7
movsd  0x10(%rbp),%xmm8
lea    -0xd0(%rbp),%rsi
lea    -0x5c(%rbp),%rdx
movsd  %xmm8,(%rsp)
call   1040 <palEl2ue@plt>
cmpl   $0x0,-0x5c(%rbp)
jne    11e4 <palPlanel+0xc4>
movsd  -0x8(%rbp),%xmm0
lea    -0xd0(%rbp),%rdi
mov    -0x50(%rbp),%rsi
lea    -0x5c(%rbp),%rdx
call   1030 <palUe2pv@plt>
cmpl   $0x0,-0x5c(%rbp)
je     11df <palPlanel+0xbf>
movl   $0xfffffffb,-0x5c(%rbp)
jmp    11e4 <palPlanel+0xc4>
mov    -0x5c(%rbp),%ecx
mov    -0x58(%rbp),%rax
mov    %ecx,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<palPlanel>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    %rdx,%rbx
mov    %rsi,%r14
movsd  0xa0(%rsp),%xmm8
movsd  %xmm8,(%rsp)
lea    0x20(%rsp),%rsi
lea    0x14(%rsp),%rdx
movsd  %xmm0,0x18(%rsp)
call   1040 <palEl2ue@plt>
mov    0x14(%rsp),%eax
test   %eax,%eax
jne    1185 <palPlanel+0x65>
lea    0x20(%rsp),%rdi
lea    0x14(%rsp),%rdx
movsd  0x18(%rsp),%xmm0
mov    %r14,%rsi
call   1030 <palUe2pv@plt>
xor    %eax,%eax
cmpl   $0x0,0x14(%rsp)
sete   %al
lea    (%rax,%rax,4),%eax
add    $0xfffffffb,%eax
mov    %eax,(%rbx)
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @palPlanel(double %0, i32 %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double* %10, i32* %11) {
%13 = alloca double
%14 = alloca i32
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double*
%24 = alloca i32*
%25 = alloca i32
%26 = alloca [13 x double]
store double %0, double* %13
store i32 %1, i32* %14
store double %2, double* %15
store double %3, double* %16
store double %4, double* %17
store double %5, double* %18
store double %6, double* %19
store double %7, double* %20
store double %8, double* %21
store double %9, double* %22
store double* %10, double** %23
store i32* %11, i32** %24
%27 = load double, double* %13
%28 = load i32, i32* %14
%29 = load double, double* %15
%30 = load double, double* %16
%31 = load double, double* %17
%32 = load double, double* %18
%33 = load double, double* %19
%34 = load double, double* %20
%35 = load double, double* %21
%36 = load double, double* %22
%37 = getelementptr inbounds [13 x double], [13 x double]* %26, i64 0, i64 0
%38 = call i32 @palEl2ue(double %27, i32 %28, double %29, double %30, double %31, double %32, double %33, double %34, double %35, double %36, double* %37, i32* %25)
%39 = load i32, i32* %25
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %50
41: ; preds = %12
%42 = load double, double* %13
%43 = getelementptr inbounds [13 x double], [13 x double]* %26, i64 0, i64 0
%44 = load double*, double** %23
%45 = call i32 @palUe2pv(double %42, double* %43, double* %44, i32* %25)
%46 = load i32, i32* %25
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %41
store i32 -5, i32* %25
br label %49
49: ; preds = %48, %41
br label %50
50: ; preds = %49, %12
%51 = load i32, i32* %25
%52 = load i32*, i32** %24
store i32 %51, i32* %52
ret void
}

LLVM IR (-O2):
define void @palPlanel(double %0, i32 %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double* %10, i32* nocapture writeonly %11) {
%13 = alloca i32
%14 = alloca [13 x double]
%15 = bitcast i32* %13 to i8*
%16 = bitcast [13 x double]* %14 to i8*
%17 = getelementptr inbounds [13 x double], [13 x double]* %14, i64 0, i64 0
%18 = call i32 @palEl2ue(double %0, i32 %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double* %17, i32* %13)
%19 = load i32, i32* %13
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %12
%22 = call i32 @palUe2pv(double %0, double* %17, double* %10, i32* %13)
%23 = load i32, i32* %13
%24 = icmp eq i32 %23, 0
%25 = select i1 %24, i32 0, i32 -5
br label %26
26: ; preds = %21, %12
%27 = phi i32 [ %19, %12 ], [ %25, %21 ]
store i32 %27, i32* %11
ret void
}