#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 */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int /*<<< orphan*/ sunmodel_ae_0(double, double, double, double, double *,
                                 double *, char);
int /*<<< orphan*/ sunmodel_ll(int /*<<< orphan*/, double *, double *);
void sunmodel_ae(time_t t, double lat, double lon, double *azm, double *elv,
                 char use_arc) {
  double slon, slat;
  sunmodel_ll(t, &slat, &slon);
  sunmodel_ae_0(slat, slon, lat, lon, azm, elv, use_arc);
}


x86 assembly (clang, -O0):
<sunmodel_ae>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %cl,%al
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %al,-0x29(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x40(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1030 <sunmodel_ll@plt>
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
movsbl -0x29(%rbp),%edx
call   1040 <sunmodel_ae_0@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sunmodel_ae>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %ecx,%r14d
mov    %rdx,%rbx
mov    %rsi,%rbp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
call   1030 <sunmodel_ll@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x8(%rsp),%xmm3
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1040 <sunmodel_ae_0@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @sunmodel_ae(i32 %0, double %1, double %2, double* %3, double* %4, i8 signext %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca i8
%13 = alloca double
%14 = alloca double
store i32 %0, i32* %7
store double %1, double* %8
store double %2, double* %9
store double* %3, double** %10
store double* %4, double** %11
store i8 %5, i8* %12
%15 = load i32, i32* %7
%16 = call i32 @sunmodel_ll(i32 %15, double* %14, double* %13)
%17 = load double, double* %14
%18 = load double, double* %13
%19 = load double, double* %8
%20 = load double, double* %9
%21 = load double*, double** %10
%22 = load double*, double** %11
%23 = load i8, i8* %12
%24 = call i32 @sunmodel_ae_0(double %17, double %18, double %19, double %20, double* %21, double* %22, i8 signext %23)
ret void
}

LLVM IR (-O2):
define void @sunmodel_ae(i32 %0, double %1, double %2, double* %3, double* %4, i8 signext %5) {
%7 = alloca double
%8 = alloca double
%9 = bitcast double* %7 to i8*
%10 = bitcast double* %8 to i8*
%11 = call i32 @sunmodel_ll(i32 %0, double* %8, double* %7)
%12 = load double, double* %8
%13 = load double, double* %7
%14 = call i32 @sunmodel_ae_0(double %12, double %13, double %1, double %2, double* %3, double* %4, i8 signext %5)
ret void
}