#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*/ fequinoxsolstice(int, double, double *, double *);
int round(double);
void equinoxsolstice(int year, double UTCoffset, int *equinoxdays,
                     int *solsticedays) {
  double fe[2], fs[2];
  fequinoxsolstice(year, UTCoffset, fe, fs);
  equinoxdays[0] = round(fe[0]);
  equinoxdays[1] = round(fe[1]);
  solsticedays[0] = round(fs[0]);
  solsticedays[1] = round(fs[1]);
}


x86 assembly (clang, -O0):
<equinoxsolstice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
lea    -0x30(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1040 <fequinoxsolstice@plt>
movsd  -0x30(%rbp),%xmm0
call   1030 <round@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x28(%rbp),%xmm0
call   1030 <round@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x4(%rax)
movsd  -0x40(%rbp),%xmm0
call   1030 <round@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
movsd  -0x38(%rbp),%xmm0
call   1030 <round@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,0x4(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<equinoxsolstice>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
lea    0x10(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <fequinoxsolstice@plt>
movsd  0x10(%rsp),%xmm0
call   1030 <round@plt>
mov    %eax,(%rbx)
movsd  0x18(%rsp),%xmm0
call   1030 <round@plt>
mov    %eax,0x4(%rbx)
movsd  (%rsp),%xmm0
call   1030 <round@plt>
mov    %eax,(%r14)
movsd  0x8(%rsp),%xmm0
call   1030 <round@plt>
mov    %eax,0x4(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @equinoxsolstice(i32 %0, double %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca double
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca [2 x double]
%10 = alloca [2 x double]
store i32 %0, i32* %5
store double %1, double* %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%11 = load i32, i32* %5
%12 = load double, double* %6
%13 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%14 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%15 = call i32 @fequinoxsolstice(i32 %11, double %12, double* %13, double* %14)
%16 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%17 = load double, double* %16
%18 = call i32 @round(double %17)
%19 = load i32*, i32** %7
%20 = getelementptr inbounds i32, i32* %19, i64 0
store i32 %18, i32* %20
%21 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 1
%22 = load double, double* %21
%23 = call i32 @round(double %22)
%24 = load i32*, i32** %7
%25 = getelementptr inbounds i32, i32* %24, i64 1
store i32 %23, i32* %25
%26 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%27 = load double, double* %26
%28 = call i32 @round(double %27)
%29 = load i32*, i32** %8
%30 = getelementptr inbounds i32, i32* %29, i64 0
store i32 %28, i32* %30
%31 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 1
%32 = load double, double* %31
%33 = call i32 @round(double %32)
%34 = load i32*, i32** %8
%35 = getelementptr inbounds i32, i32* %34, i64 1
store i32 %33, i32* %35
ret void
}

LLVM IR (-O2):
define void @equinoxsolstice(i32 %0, double %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = alloca [2 x double]
%6 = alloca [2 x double]
%7 = bitcast [2 x double]* %5 to i8*
%8 = bitcast [2 x double]* %6 to i8*
%9 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%10 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 0
%11 = call i32 @fequinoxsolstice(i32 %0, double %1, double* %9, double* %10)
%12 = load double, double* %9
%13 = call i32 @round(double %12)
store i32 %13, i32* %2
%14 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 1
%15 = load double, double* %14
%16 = call i32 @round(double %15)
%17 = getelementptr inbounds i32, i32* %2, i64 1
store i32 %16, i32* %17
%18 = load double, double* %10
%19 = call i32 @round(double %18)
store i32 %19, i32* %3
%20 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 1
%21 = load double, double* %20
%22 = call i32 @round(double %21)
%23 = getelementptr inbounds i32, i32* %3, i64 1
store i32 %22, i32* %23
ret void
}