	.file	"192329500.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsd	xmm0, QWORD PTR .LC0[rip]
	mov	rdx, QWORD PTR .LC1[rip]
	lea	rax, -64[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	rdi, rax
	call	initialiseState
	mov	edx, 1
	mov	esi, 2
	mov	edi, 2000
	call	date
	mov	edx, eax
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculateSunriseOn
	mov	edx, 1
	mov	esi, 2
	mov	edi, 2099
	call	date
	mov	edx, eax
	lea	rax, -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculateSunsetOn
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"Initialising state..."
	.text
	.type	initialiseState, @function
initialiseState:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	QWORD PTR -24[rbp], xmm1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	movsd	xmm1, QWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 4[rax], dx
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 6[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 8[rax], -32768
	mov	edx, 1
	mov	esi, 1
	mov	edi, 2000
	call	date
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculateJulianDateAtMidday
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	initialiseState, .-initialiseState
	.section	.rodata
	.align 8
.LC5:
	.string	"\tJulian date at midday on %d-%.2d-%.2d is %d\n"
	.text
	.type	calculateJulianDateAtMidday, @function
calculateJulianDateAtMidday:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	movzx	eax, BYTE PTR -26[rbp]
	movsx	eax, al
	sub	eax, 14
	movsx	rdx, eax
	imul	rdx, rdx, 715827883
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	movzx	eax, BYTE PTR -25[rbp]
	movsx	eax, al
	lea	ecx, -32075[rax]
	movzx	eax, WORD PTR -28[rbp]
	cwde
	lea	edx, 4800[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	imul	eax, eax, 1461
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	add	ecx, eax
	movzx	eax, BYTE PTR -26[rbp]
	movsx	eax, al
	lea	esi, -2[rax]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	edx, 2
	sub	eax, edx
	sal	eax, 2
	add	eax, esi
	imul	eax, eax, 367
	movsx	rdx, eax
	imul	rdx, rdx, 715827883
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	ecx, eax
	movzx	eax, WORD PTR -28[rbp]
	cwde
	lea	edx, 4900[rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	sub	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	neg	eax
	add	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L7
	movzx	eax, BYTE PTR -25[rbp]
	movsx	ecx, al
	movzx	eax, BYTE PTR -26[rbp]
	movsx	edx, al
	movzx	eax, WORD PTR -28[rbp]
	cwde
	mov	esi, DWORD PTR -4[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	calculateJulianDateAtMidday, .-calculateJulianDateAtMidday
	.type	date, @function
date:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	WORD PTR -4[rbp], ax
	mov	eax, DWORD PTR -24[rbp]
	mov	BYTE PTR -2[rbp], al
	mov	eax, DWORD PTR -28[rbp]
	mov	BYTE PTR -1[rbp], al
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	date, .-date
	.section	.rodata
	.align 8
.LC6:
	.string	"Calculating sunrise on %d-%.2d-%.2d:\n"
	.text
	.type	calculateSunriseOn, @function
calculateSunriseOn:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L12
	movzx	eax, BYTE PTR -9[rbp]
	movsx	ecx, al
	movzx	eax, BYTE PTR -10[rbp]
	movsx	edx, al
	movzx	eax, WORD PTR -12[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 10[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	or	edx, 2
	mov	BYTE PTR [rax], dl
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculateEventOn
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	calculateSunriseOn, .-calculateSunriseOn
	.type	calculateEventOn, @function
calculateEventOn:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculateJulianDateAtMidday
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateDaysSinceEpoch
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateMeanLongitudeIncludingAberration
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateMeanAnomaly
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateEquatorialCentreCorrection
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateSunEclipticLongitude
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateEquationOfTime
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateGreenwichHourAngle
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateObliquityOfTheEcliptic
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateSunDeclination
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateCorrection
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	calculateEventTime
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	calculateEventOn, .-calculateEventOn
	.section	.rodata
.LC7:
	.string	"\tDays since the Epoch: %hu\n"
	.text
	.type	calculateDaysSinceEpoch, @function
calculateDaysSinceEpoch:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 20[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L16
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 20[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calculateDaysSinceEpoch, .-calculateDaysSinceEpoch
	.section	.rodata
	.align 8
.LC9:
	.string	"\tMean Longitude (including aberration): 0x%.8x (%.8g deg)\n"
	.text
	.type	calculateMeanLongitudeIncludingAberration, @function
calculateMeanLongitudeIncludingAberration:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 20[rax]
	movzx	eax, ax
	imul	eax, eax, 50463
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1926591217
	shr	rdx, 32
	sar	edx, 14
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 20[rax]
	movzx	eax, ax
	imul	eax, eax, 64594
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -4[rbp], 30147
	add	DWORD PTR -4[rbp], 18350080
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calculateMeanLongitudeIncludingAberration, .-calculateMeanLongitudeIncludingAberration
	.section	.rodata
	.align 8
.LC10:
	.string	"\tMean Anomaly: 0x%.8x (%.8g deg) -> 0x%.4hx\n"
	.text
	.type	calculateMeanAnomaly, @function
calculateMeanAnomaly:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 20[rax]
	movzx	eax, ax
	imul	eax, eax, 3277
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1926591217
	shr	rdx, 32
	sar	edx, 14
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 20[rax]
	movzx	eax, ax
	imul	eax, eax, 64592
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -4[rbp], 34603
	add	DWORD PTR -4[rbp], 23396352
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 16
	mov	edi, eax
	call	degreesToUnits
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 28[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L22
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 28[rax]
	movsx	edx, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	eax, DWORD PTR -4[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calculateMeanAnomaly, .-calculateMeanAnomaly
	.type	degreesToUnits, @function
degreesToUnits:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1240768329
	shr	rdx, 32
	add	edx, eax
	sar	edx, 8
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	DWORD PTR -4[rbp], cl
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 360
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sal	DWORD PTR -4[rbp], cl
	mov	eax, DWORD PTR -4[rbp]
	sub	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -24[rbp], 16
	jne	.L24
	mov	esi, 360
	jmp	.L25
.L24:
	mov	esi, 180
.L25:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	esi
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	degreesToUnits, .-degreesToUnits
	.section	.rodata
	.align 8
.LC11:
	.string	"\tEquatorial Centre Correction: 0x%.8x (%.8g deg)\n"
	.text
	.type	calculateEquatorialCentreCorrection, @function
calculateEquatorialCentreCorrection:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 28[rax]
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -10[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 28[rax]
	cwde
	mov	edi, eax
	call	cosine
	mov	WORD PTR -8[rbp], ax
	movsx	edx, WORD PTR -10[rbp]
	movsx	eax, WORD PTR -8[rbp]
	imul	eax, edx
	sar	eax, 15
	mov	WORD PTR -6[rbp], ax
	movsx	eax, WORD PTR -10[rbp]
	mov	DWORD PTR -4[rbp], eax
	sal	DWORD PTR -4[rbp], 15
	movsx	eax, WORD PTR -10[rbp]
	imul	eax, eax, 29983
	add	DWORD PTR -4[rbp], eax
	movsx	eax, WORD PTR -6[rbp]
	imul	eax, eax, 1311
	add	DWORD PTR -4[rbp], eax
	sar	DWORD PTR -4[rbp], 15
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	calculateEquatorialCentreCorrection, .-calculateEquatorialCentreCorrection
	.type	sine, @function
sine:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movsx	eax, WORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC12[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	doubleToFixedQ1_15
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sine, .-sine
	.type	doubleToFixedQ1_15, @function
doubleToFixedQ1_15:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC13[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR .LC14[rip]
	jbe	.L40
	mov	eax, 32767
	jmp	.L35
.L40:
	movsd	xmm0, QWORD PTR .LC15[rip]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L41
	mov	eax, -32768
	jmp	.L35
.L41:
	movsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	eax, xmm0
.L35:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	doubleToFixedQ1_15, .-doubleToFixedQ1_15
	.type	cosine, @function
cosine:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movsx	eax, WORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC12[rip]
	mulsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	cos@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	doubleToFixedQ1_15
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	cosine, .-cosine
	.section	.rodata
	.align 8
.LC16:
	.string	"\tEcliptic Longitude of the Sun: 0x%.8x (%.8g deg) -> 0x%.4hx\n"
	.text
	.type	calculateSunEclipticLongitude, @function
calculateSunEclipticLongitude:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 15
	mov	edi, eax
	call	degreesToUnits
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 36[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L46
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 36[rax]
	movsx	edx, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	eax, DWORD PTR -4[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
.L46:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	calculateSunEclipticLongitude, .-calculateSunEclipticLongitude
	.section	.rodata
	.align 8
.LC17:
	.string	"\tEquation of Time: 0x%.8x (%.8g deg) -> 0x%.4hx\n"
	.text
	.type	calculateEquationOfTime, @function
calculateEquationOfTime:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 36[rax]
	cwde
	add	eax, eax
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 36[rax]
	cwde
	sal	eax, 2
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -10[rbp], ax
	movsx	eax, WORD PTR -12[rbp]
	imul	eax, eax, 15270
	mov	DWORD PTR -8[rbp], eax
	movsx	eax, WORD PTR -10[rbp]
	imul	eax, eax, 1737
	mov	DWORD PTR -4[rbp], eax
	sar	DWORD PTR -8[rbp], 15
	sar	DWORD PTR -4[rbp], 15
	movsx	eax, WORD PTR -12[rbp]
	add	DWORD PTR -8[rbp], eax
	movsx	eax, WORD PTR -12[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	sub	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 15
	mov	edi, eax
	call	degreesToUnits
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 38[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L49
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 38[rax]
	movsx	edx, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	eax, DWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
.L49:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	calculateEquationOfTime, .-calculateEquationOfTime
	.section	.rodata
	.align 8
.LC18:
	.string	"\tGrenwich Hour Angle: 0x%.8x (%.8g deg) -> 0x%.4hx\n"
	.text
	.type	calculateGreenwichHourAngle, @function
calculateGreenwichHourAngle:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 8[rax]
	cwde
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 38[rax]
	cwde
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -4[rbp], 32768
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR 40[rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L52
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 40[rax]
	movsx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 40[rax]
	cwde
	imul	eax, eax, 180
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	eax, DWORD PTR -4[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 1
	call	printf@PLT
.L52:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	calculateGreenwichHourAngle, .-calculateGreenwichHourAngle
	.section	.rodata
	.align 8
.LC19:
	.string	"\tObliquity of the Ecliptic: 0x%.8x (%.8g deg) -> 0x%.4hx\n"
	.text
	.type	calculateObliquityOfTheEcliptic, @function
calculateObliquityOfTheEcliptic:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 768059
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 20[rax]
	movzx	eax, ax
	imul	eax, eax, 426
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1926591217
	shr	rdx, 32
	sar	edx, 14
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 15
	mov	edi, eax
	call	degreesToUnits
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 42[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L55
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 42[rax]
	movsx	edx, ax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	eax, DWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 1
	call	printf@PLT
.L55:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	calculateObliquityOfTheEcliptic, .-calculateObliquityOfTheEcliptic
	.section	.rodata
	.align 8
.LC20:
	.string	"\tDeclination of the Sun: 0x%.4hx (%.8g deg)\n"
	.text
	.type	calculateSunDeclination, @function
calculateSunDeclination:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 42[rax]
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -8[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 36[rax]
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -6[rbp], ax
	movsx	edx, WORD PTR -8[rbp]
	movsx	eax, WORD PTR -6[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	sar	DWORD PTR -4[rbp], 15
	mov	eax, DWORD PTR -4[rbp]
	cwde
	mov	edi, eax
	call	arcSine
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR 44[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L58
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 44[rax]
	cwde
	imul	eax, eax, 180
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 44[rax]
	cwde
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 1
	call	printf@PLT
.L58:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	calculateSunDeclination, .-calculateSunDeclination
	.type	arcSine, @function
arcSine:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movsx	eax, WORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	asin@PLT
	movsd	xmm1, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	arcSine, .-arcSine
	.section	.rodata
	.align 8
.LC21:
	.string	"\tCorrection: 0x%.4hx (%.8g deg)\n"
	.text
	.type	calculateCorrection, @function
calculateCorrection:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 10[rax]
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -18[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 4[rax]
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -16[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 4[rax]
	cwde
	mov	edi, eax
	call	cosine
	mov	WORD PTR -14[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 44[rax]
	cwde
	mov	edi, eax
	call	sine
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 44[rax]
	cwde
	mov	edi, eax
	call	cosine
	mov	WORD PTR -10[rbp], ax
	movsx	edx, WORD PTR -16[rbp]
	movsx	eax, WORD PTR -12[rbp]
	imul	eax, edx
	mov	DWORD PTR -8[rbp], eax
	movsx	edx, WORD PTR -14[rbp]
	movsx	eax, WORD PTR -10[rbp]
	imul	eax, edx
	mov	DWORD PTR -4[rbp], eax
	sar	DWORD PTR -8[rbp], 15
	sar	DWORD PTR -4[rbp], 15
	neg	DWORD PTR -8[rbp]
	movsx	eax, WORD PTR -18[rbp]
	add	DWORD PTR -8[rbp], eax
	sal	DWORD PTR -8[rbp], 15
	mov	eax, DWORD PTR -4[rbp]
	movsx	ecx, ax
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L62
	mov	eax, DWORD PTR -8[rbp]
	mov	ax, 0
	cmp	eax, -65536
	je	.L62
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR 46[rax], -32768
	jmp	.L63
.L62:
	cmp	DWORD PTR -8[rbp], 0
	js	.L64
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 2147418112
	test	eax, eax
	je	.L64
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR 46[rax], 0
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -8[rbp]
	cwde
	mov	edi, eax
	call	arcCosine
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 46[rdx], ax
.L63:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L66
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 46[rax]
	cwde
	imul	eax, eax, 180
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 46[rax]
	cwde
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 1
	call	printf@PLT
.L66:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	calculateCorrection, .-calculateCorrection
	.type	arcCosine, @function
arcCosine:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movsx	eax, WORD PTR -4[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	acos@PLT
	movsd	xmm1, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	arcCosine, .-arcCosine
	.section	.rodata
	.align 8
.LC22:
	.string	"\tEvent Time: 0x%.8x (%.8g deg) -> 0x%.4hx (%.8g deg)\n"
	.text
	.type	calculateEventTime, @function
calculateEventTime:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 46[rax]
	cwde
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 2
	test	al, al
	jne	.L70
	neg	DWORD PTR -4[rbp]
.L70:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 40[rax]
	cwde
	add	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	DWORD PTR -4[rbp], eax
	neg	DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 8[rax]
	cwde
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR 8[rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L72
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 8[rax]
	cwde
	imul	eax, eax, 180
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 8[rax]
	movsx	edx, ax
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 180
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	eax, DWORD PTR -4[rbp]
	movapd	xmm1, xmm2
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 2
	call	printf@PLT
.L72:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	calculateEventTime, .-calculateEventTime
	.section	.rodata
	.align 8
.LC23:
	.string	"Calculating sunset on %d-%.2d-%.2d:\n"
	.text
	.type	calculateSunsetOn, @function
calculateSunsetOn:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	test	al, al
	jne	.L74
	movzx	eax, BYTE PTR -9[rbp]
	movsx	ecx, al
	movzx	eax, BYTE PTR -10[rbp]
	movsx	edx, al
	movzx	eax, WORD PTR -12[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L74:
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 10[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	and	edx, -3
	mov	BYTE PTR [rax], dl
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculateEventOn
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	calculateSunsetOn, .-calculateSunsetOn
	.section	.rodata
	.align 8
.LC0:
	.long	-34909494
	.long	-1078052026
	.align 8
.LC1:
	.long	1100886017
	.long	1078575427
	.align 8
.LC3:
	.long	0
	.long	1088421888
	.align 8
.LC4:
	.long	0
	.long	1080459264
	.align 8
.LC8:
	.long	0
	.long	1089470464
	.align 8
.LC12:
	.long	1413754136
	.long	1074340347
	.align 8
.LC13:
	.long	0
	.long	1071644672
	.align 8
.LC14:
	.long	0
	.long	1088421824
	.align 8
.LC15:
	.long	0
	.long	-1059061760
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"192329500.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #56
	ldr	r2, .L4+4
	ldr	r3, .L4+8
	stm	sp, {r2-r3}
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	mov	r0, r1
	bl	initialiseState
	mov	r2, #1
	mov	r1, #2
	mov	r0, #2000
	bl	date
	mov	r2, r0
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	calculateSunriseOn
	mov	r2, #1
	mov	r1, #2
	ldr	r0, .L4+20
	bl	date
	mov	r2, r0
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	calculateSunsetOn
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	-34909494
	.word	-1078052026
	.word	1100886017
	.word	1078575427
	.word	2099
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Initialising state...\000"
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialiseState, %function
initialiseState:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L8
	bl	puts
.L7:
	mov	r2, #48
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	mov	r2, #0
	ldr	r3, .L8+4
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #4]	@ movhi
	mov	r2, #0
	ldr	r3, .L8+4
	ldmib	fp, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L8+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #32768
	strh	r2, [r3, #8]	@ movhi
	mov	r2, #1
	mov	r1, #1
	mov	r0, #2000
	bl	date
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	calculateJulianDateAtMidday
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	1088421888
	.word	1080459264
	.size	initialiseState, .-initialiseState
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\011Julian date at midday on %d-%.2d-%.2d is %d\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateJulianDateAtMidday, %function
calculateJulianDateAtMidday:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldrsb	r3, [fp, #-18]
	sub	r3, r3, #14
	ldr	r2, .L13
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldrsb	r3, [fp, #-17]
	sub	r1, r3, #32000
	sub	r1, r1, #75
	ldrsh	r3, [fp, #-20]
	add	r2, r3, #4800
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	add	r1, r1, r3
	ldrsb	r3, [fp, #-18]
	sub	r0, r3, #2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r2, r2, #2
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r0, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, .L13
	smull	r0, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r1, r1, r3
	ldrsh	r3, [fp, #-20]
	add	r3, r3, #4864
	add	r3, r3, #36
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r2, .L13+4
	smull	r0, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	rsb	r3, r3, #0
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L11
	ldrsh	r3, [fp, #-20]
	mov	r1, r3
	ldrsb	r3, [fp, #-18]
	mov	r2, r3
	ldrsb	r3, [fp, #-17]
	mov	r0, r3
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L13+8
	bl	printf
.L11:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	715827883
	.word	1374389535
	.word	.LC2
	.size	calculateJulianDateAtMidday, .-calculateJulianDateAtMidday
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	date, %function
date:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-6]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	date, .-date
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Calculating sunrise on %d-%.2d-%.2d:\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateSunriseOn, %function
calculateSunriseOn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L18
	ldrsh	r3, [fp, #-12]
	mov	r1, r3
	ldrsb	r3, [fp, #-10]
	mov	r2, r3
	ldrsb	r3, [fp, #-9]
	ldr	r0, .L19
	bl	printf
.L18:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #10]	@ movhi
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2]
	orr	r3, r3, #2
	strb	r3, [r2]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	calculateEventOn
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.size	calculateSunriseOn, .-calculateSunriseOn
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateEventOn, %function
calculateEventOn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	calculateJulianDateAtMidday
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r0, [fp, #-8]
	bl	calculateDaysSinceEpoch
	ldr	r0, [fp, #-8]
	bl	calculateMeanLongitudeIncludingAberration
	ldr	r0, [fp, #-8]
	bl	calculateMeanAnomaly
	ldr	r0, [fp, #-8]
	bl	calculateEquatorialCentreCorrection
	ldr	r0, [fp, #-8]
	bl	calculateSunEclipticLongitude
	ldr	r0, [fp, #-8]
	bl	calculateEquationOfTime
	ldr	r0, [fp, #-8]
	bl	calculateGreenwichHourAngle
	ldr	r0, [fp, #-8]
	bl	calculateObliquityOfTheEcliptic
	ldr	r0, [fp, #-8]
	bl	calculateSunDeclination
	ldr	r0, [fp, #-8]
	bl	calculateCorrection
	ldr	r0, [fp, #-8]
	bl	calculateEventTime
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calculateEventOn, .-calculateEventOn
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\011Days since the Epoch: %hu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateDaysSinceEpoch, %function
calculateDaysSinceEpoch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #20]	@ movhi
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L25
	bl	printf
.L24:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC4
	.size	calculateDaysSinceEpoch, .-calculateDaysSinceEpoch
	.global	__aeabi_i2d
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\011Mean Longitude (including aberration): 0x%.8x ("
	.ascii	"%.8g deg)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateMeanLongitudeIncludingAberration, %function
calculateMeanLongitudeIncludingAberration:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #20]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r2, r3, #6
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L30
	smull	r1, r2, r3, r2
	asr	r2, r2, #14
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #20]
	mov	r2, r3
	ldr	r3, .L30+4
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #29952
	add	r3, r3, #195
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #18350080
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L30+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L30+12
	bl	printf
.L29:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	1926591217
	.word	64594
	.word	1089470464
	.word	.LC5
	.size	calculateMeanLongitudeIncludingAberration, .-calculateMeanLongitudeIncludingAberration
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\011Mean Anomaly: 0x%.8x (%.8g deg) -> 0x%.4hx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateMeanAnomaly, %function
calculateMeanAnomaly:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #20]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #6
	sub	r2, r2, r3
	lsl	r2, r2, #2
	add	r3, r2, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L35
	smull	r1, r2, r3, r2
	asr	r2, r2, #14
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #20]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #34560
	add	r3, r3, #43
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #23330816
	add	r3, r3, #65536
	str	r3, [fp, #-8]
	mov	r1, #16
	ldr	r0, [fp, #-8]
	bl	degreesToUnits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #28]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L34
	ldr	r0, [fp, #-8]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L35+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #28]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-8]
	ldr	r0, .L35+8
	bl	printf
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	1926591217
	.word	1089470464
	.word	.LC6
	.size	calculateMeanAnomaly, .-calculateMeanAnomaly
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	degreesToUnits, %function
degreesToUnits:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, .L41
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #8
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	asr	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	str	r2, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsl	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #16
	bne	.L38
	mov	r3, #360
	b	.L39
.L38:
	mov	r3, #180
.L39:
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	-1240768329
	.size	degreesToUnits, .-degreesToUnits
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\011Equatorial Centre Correction: 0x%.8x (%.8g deg)"
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateEquatorialCentreCorrection, %function
calculateEquatorialCentreCorrection:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #28]
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #28]
	mov	r0, r3
	bl	cosine
	mov	r3, r0
	strh	r3, [fp, #-20]	@ movhi
	ldrsh	r3, [fp, #-22]
	ldrsh	r2, [fp, #-20]
	mul	r3, r2, r3
	asr	r3, r3, #15
	strh	r3, [fp, #-18]	@ movhi
	ldrsh	r3, [fp, #-22]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #15
	str	r3, [fp, #-16]
	ldrsh	r3, [fp, #-22]
	ldr	r2, .L46
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldrsh	r2, [fp, #-18]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	asr	r3, r3, #15
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #32]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L46+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L46+8
	bl	printf
.L45:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	29983
	.word	1088421888
	.word	.LC7
	.size	calculateEquatorialCentreCorrection, .-calculateEquatorialCentreCorrection
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sine, %function
sine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L50
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L50+4
	ldr	r3, .L50+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	doubleToFixedQ1_15
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	1088421888
	.word	1413754136
	.word	1074340347
	.size	sine, .-sine
	.global	__aeabi_dadd
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	doubleToFixedQ1_15, %function
doubleToFixedQ1_15:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r2, #0
	ldr	r3, .L62
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L62+4
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	ldr	r3, .L62+8
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L62+12
	b	.L55
.L60:
	mov	r2, #0
	ldr	r3, .L62+16
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L62+20
	b	.L55
.L61:
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	1088421888
	.word	1071644672
	.word	1088421824
	.word	32767
	.word	-1059061760
	.word	-32768
	.size	doubleToFixedQ1_15, .-doubleToFixedQ1_15
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cosine, %function
cosine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L66
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L66+4
	ldr	r3, .L66+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	doubleToFixedQ1_15
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	1088421888
	.word	1413754136
	.word	1074340347
	.size	cosine, .-cosine
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\011Ecliptic Longitude of the Sun: 0x%.8x (%.8g deg"
	.ascii	") -> 0x%.4hx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateSunEclipticLongitude, %function
calculateSunEclipticLongitude:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r1, #15
	ldr	r0, [fp, #-8]
	bl	degreesToUnits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #36]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L70
	ldr	r0, [fp, #-8]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L71
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #36]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-8]
	ldr	r0, .L71+4
	bl	printf
.L70:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	1088421888
	.word	.LC8
	.size	calculateSunEclipticLongitude, .-calculateSunEclipticLongitude
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\011Equation of Time: 0x%.8x (%.8g deg) -> 0x%.4hx\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateEquationOfTime, %function
calculateEquationOfTime:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #36]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #36]
	lsl	r3, r3, #2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrsh	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #7
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	str	r2, [fp, #-12]
	ldrsh	r2, [fp, #-14]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	asr	r3, r3, #15
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #15
	str	r3, [fp, #-8]
	ldrsh	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldrsh	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r1, #15
	ldr	r0, [fp, #-12]
	bl	degreesToUnits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #38]	@ movhi
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L75
	ldr	r0, [fp, #-12]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L76
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #38]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, .L76+4
	bl	printf
.L75:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	1088421888
	.word	.LC9
	.size	calculateEquationOfTime, .-calculateEquationOfTime
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\011Grenwich Hour Angle: 0x%.8x (%.8g deg) -> 0x%.4"
	.ascii	"hx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateGreenwichHourAngle, %function
calculateGreenwichHourAngle:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #38]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #32768
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #40]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L80
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #40]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L81
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #40]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-8]
	ldr	r0, .L81+4
	bl	printf
.L80:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	1088421888
	.word	.LC10
	.size	calculateGreenwichHourAngle, .-calculateGreenwichHourAngle
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\011Obliquity of the Ecliptic: 0x%.8x (%.8g deg) ->"
	.ascii	" 0x%.4hx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateObliquityOfTheEcliptic, %function
calculateObliquityOfTheEcliptic:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, .L86
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #20]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	str	r2, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L86+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #14
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r1, #15
	ldr	r0, [fp, #-12]
	bl	degreesToUnits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #42]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L85
	ldr	r0, [fp, #-12]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L86+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrsh	r3, [r3, #42]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, .L86+12
	bl	printf
.L85:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	768059
	.word	1926591217
	.word	1088421888
	.word	.LC11
	.size	calculateObliquityOfTheEcliptic, .-calculateObliquityOfTheEcliptic
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\011Declination of the Sun: 0x%.4hx (%.8g deg)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateSunDeclination, %function
calculateSunDeclination:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #42]
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #36]
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-18]	@ movhi
	ldrsh	r3, [fp, #-20]
	ldrsh	r2, [fp, #-18]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	asr	r3, r3, #15
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	arcSine
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #44]	@ movhi
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L90
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #44]
	mov	r4, r3
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3, #44]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L91
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L91+4
	bl	printf
.L90:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L92:
	.align	2
.L91:
	.word	1088421888
	.word	.LC12
	.size	calculateSunDeclination, .-calculateSunDeclination
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arcSine, %function
arcSine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L95
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	asin
	mov	r2, #0
	ldr	r3, .L95
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L95+4
	ldr	r3, .L95+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	1088421888
	.word	1413754136
	.word	1074340347
	.size	arcSine, .-arcSine
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\011Correction: 0x%.4hx (%.8g deg)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateCorrection, %function
calculateCorrection:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #10]
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #4]
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #4]
	mov	r0, r3
	bl	cosine
	mov	r3, r0
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #44]
	mov	r0, r3
	bl	sine
	mov	r3, r0
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #44]
	mov	r0, r3
	bl	cosine
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldrsh	r3, [fp, #-28]
	ldrsh	r2, [fp, #-24]
	mul	r3, r2, r3
	str	r3, [fp, #-20]
	ldrsh	r3, [fp, #-26]
	ldrsh	r2, [fp, #-22]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	asr	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	asr	r3, r3, #15
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #0
	str	r3, [fp, #-20]
	ldrsh	r3, [fp, #-30]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L98
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	cmn	r3, #65536
	beq	.L98
	ldr	r3, [fp, #-40]
	mov	r2, #32768
	strh	r2, [r3, #46]	@ movhi
	b	.L99
.L98:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L100
	ldr	r2, [fp, #-20]
	ldr	r3, .L103
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #-40]
	mov	r2, #0
	strh	r2, [r3, #46]	@ movhi
	b	.L99
.L100:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	bl	arcCosine
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	strh	r2, [r3, #46]	@ movhi
.L99:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L102
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #46]
	mov	r4, r3
	ldr	r3, [fp, #-40]
	ldrsh	r3, [r3, #46]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L103+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L103+8
	bl	printf
.L102:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L104:
	.align	2
.L103:
	.word	2147418112
	.word	1088421888
	.word	.LC13
	.size	calculateCorrection, .-calculateCorrection
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arcCosine, %function
arcCosine:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L107
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	acos
	mov	r2, #0
	ldr	r3, .L107
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L107+4
	ldr	r3, .L107+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L108:
	.align	2
.L107:
	.word	1088421888
	.word	1413754136
	.word	1074340347
	.size	arcCosine, .-arcCosine
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\011Event Time: 0x%.8x (%.8g deg) -> 0x%.4hx (%.8g "
	.ascii	"deg)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateEventTime, %function
calculateEventTime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #46]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L110
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
.L110:
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #40]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #6]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-32]
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L112
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L113
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #8]
	mov	r6, r3
	ldr	r3, [fp, #-32]
	ldrsh	r3, [r3, #8]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L113
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r6, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r1, [fp, #-24]
	ldr	r0, .L113+4
	bl	printf
.L112:
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L114:
	.align	2
.L113:
	.word	1088421888
	.word	.LC14
	.size	calculateEventTime, .-calculateEventTime
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Calculating sunset on %d-%.2d-%.2d:\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateSunsetOn, %function
calculateSunsetOn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L116
	ldrsh	r3, [fp, #-12]
	mov	r1, r3
	ldrsb	r3, [fp, #-10]
	mov	r2, r3
	ldrsb	r3, [fp, #-9]
	ldr	r0, .L117
	bl	printf
.L116:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #10]	@ movhi
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2]
	bic	r3, r3, #2
	strb	r3, [r2]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	calculateEventOn
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC15
	.size	calculateSunsetOn, .-calculateSunsetOn
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
