	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function timelib_astro_rise_set_altitude
LCPI0_0:
	.quad	0xc076800000000000              ## double -360
LCPI0_1:
	.quad	0x4066800000000000              ## double 180
LCPI0_2:
	.quad	0xc02e000000000000              ## double -15
LCPI0_3:
	.quad	0x4028000000000000              ## double 12
LCPI0_4:
	.quad	0xbfd10ff972474539              ## double -0.2666
LCPI0_5:
	.quad	0x40ac200000000000              ## double 3600
LCPI0_6:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_7:
	.quad	0xbff0000000000000              ## double -1
LCPI0_8:
	.quad	0x402e000000000000              ## double 15
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_timelib_astro_rise_set_altitude
	.p2align	4, 0x90
_timelib_astro_rise_set_altitude:       ## @timelib_astro_rise_set_altitude
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movsd	%xmm2, -80(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	$12, (%rdi)
	movl	$0, 8(%rdi)
	xorl	%esi, %esi
	callq	_timelib_update_ts
	xorl	%eax, %eax
	callq	_timelib_time_ctor
	movq	%rax, %rbx
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movl	28(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	$0, 8(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_timelib_update_ts
	movq	16(%rbx), %rdi
	callq	_timelib_ts_to_j2000
	addl	$2, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	callq	_astro_GMST0
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	addsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %rdi
	callq	_astro_revolution
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_astro_sun_RA_dec
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	-112(%rbp), %xmm0
	callq	_astro_rev180
	divsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	testl	%r13d, %r13d
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	-120(%rbp), %xmm0
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movq	%r14, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movapd	%xmm1, %xmm0
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_3:
	callq	_sind
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sind
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	-88(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_sind
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_cosd
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movsd	-88(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_cosd
	mulsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-48(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	divsd	%xmm0, %xmm4
	xorps	%xmm1, %xmm1
	cvtsi2sdq	16(%rbx), %xmm1
	movsd	LCPI0_5(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	-64(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm3
	addsd	%xmm3, %xmm1
	cvttsd2si	%xmm1, %rax
	movq	16(%rbp), %rcx
	movq	%rax, (%rcx)
	ucomisd	LCPI0_6(%rip), %xmm4
	jae	LBB0_4
## %bb.5:
	movapd	%xmm4, %xmm0
	movsd	LCPI0_7(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm4, %xmm1
	jae	LBB0_6
## %bb.7:
	callq	_acosd
	divsd	LCPI0_8(%rip), %xmm0
	movsd	-64(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	movapd	%xmm5, %xmm1
	subsd	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	16(%rbx), %xmm2
	movsd	LCPI0_5(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm1, %xmm4
	mulsd	%xmm3, %xmm4
	addsd	%xmm2, %xmm4
	cvttsd2si	%xmm4, %rax
	movq	%rax, (%r14)
	addsd	%xmm5, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2sdq	16(%rbx), %xmm2
	mulsd	%xmm0, %xmm3
	addsd	%xmm2, %xmm3
	cvttsd2si	%xmm3, %rax
	movq	%rax, (%r12)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm1, (%rax)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movsd	%xmm0, (%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	xorps	%xmm1, %xmm1
	cvtsi2sdq	16(%rbx), %xmm1
	addsd	%xmm1, %xmm3
	cvttsd2si	%xmm3, %rax
	movq	%rax, (%r12)
	movq	%rax, (%r14)
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	$-43200, %rax                   ## imm = 0xFFFF5740
	addq	16(%r15), %rax
	movq	%rax, (%r14)
	movl	$43200, %eax                    ## imm = 0xA8C0
	addq	16(%r15), %rax
	movq	%rax, (%r12)
	movl	$1, %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_timelib_time_dtor
	movq	%r13, 16(%r15)
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function timelib_astro_rise_set_altitude
lCPI0_0:
	.long	12                              ; 0xc
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_timelib_astro_rise_set_altitude
	.p2align	2
_timelib_astro_rise_set_altitude:       ; @timelib_astro_rise_set_altitude
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x25, x6
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x26, x1
	fmov	d9, d2
	fmov	d8, d1
	fmov	d10, d0
	mov	x19, x0
	ldr	x27, [x0, #16]
	str	wzr, [x0, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	mov	x1, #0
	bl	_timelib_update_ts
	bl	_timelib_time_ctor
	mov	x21, x0
	ldr	w8, [x19, #32]
	str	w8, [x0, #32]
	ldr	d0, [x19, #24]
	str	d0, [x0, #24]
	str	wzr, [x0, #8]
	str	xzr, [x0]
	mov	x1, #0
	bl	_timelib_update_ts
	ldr	x0, [x21, #16]
	bl	_timelib_ts_to_j2000
	add	w8, w0, #2
	scvtf	d0, w8
	mov	x8, #140737488355328
	movk	x8, #49270, lsl #48
	fmov	d1, x8
	fdiv	d1, d10, d1
	fadd	d11, d0, d1
	fmov	d0, d11
	bl	_astro_GMST0
	scvtf	d0, x0
	mov	x8, #140737488355328
	movk	x8, #16486, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	fadd	d0, d0, d10
	fcvtzs	x0, d0
	bl	_astro_revolution
	fmov	d10, d0
	add	x0, sp, #16
	add	x1, sp, #8
	add	x2, sp, #24
	fmov	d0, d11
	bl	_astro_sun_RA_dec
	ldr	d0, [sp, #16]
	fsub	d0, d10, d0
	bl	_astro_rev180
	fmov	d1, #-15.00000000
	fdiv	d0, d0, d1
	fmov	d1, #12.00000000
	fadd	d11, d0, d1
	cbz	w26, LBB0_2
; %bb.1:
	ldr	d0, [sp, #24]
	mov	x8, #17721
	movk	x8, #29255, lsl #16
	movk	x8, #4089, lsl #32
	movk	x8, #49105, lsl #48
	fmov	d1, x8
	fdiv	d0, d1, d0
	fadd	d9, d9, d0
LBB0_2:
	fmov	d0, d9
	bl	_sind
	fmov	d9, d0
	fmov	d0, d8
	bl	_sind
	fmov	d10, d0
	ldr	d0, [sp, #8]
	bl	_sind
	fmsub	d9, d10, d0, d9
	fmov	d0, d8
	bl	_cosd
	fmov	d8, d0
	ldr	d0, [sp, #8]
	bl	_cosd
	fmul	d0, d8, d0
	fdiv	d0, d9, d0
	ldr	d1, [x21, #16]
	scvtf	d1, d1
	mov	x8, #35184372088832
	movk	x8, #16556, lsl #48
	fmov	d2, x8
	fmadd	d1, d11, d2, d1
	fcvtzs	x8, d1
	str	x8, [x25]
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.ge	LBB0_5
; %bb.3:
	fmov	d1, #-1.00000000
	fcmp	d0, d1
	b.ls	LBB0_6
; %bb.4:
	bl	_acosd
	mov	w25, #0
	fmov	d1, #15.00000000
	fdiv	d0, d0, d1
	fsub	d1, d11, d0
	ldr	d2, [x21, #16]
	scvtf	d2, d2
	mov	x8, #35184372088832
	movk	x8, #16556, lsl #48
	fmov	d3, x8
	fmadd	d2, d1, d3, d2
	fcvtzs	x8, d2
	str	x8, [x22]
	fadd	d0, d11, d0
	ldr	d2, [x21, #16]
	scvtf	d2, d2
	fmadd	d2, d0, d3, d2
	fcvtzs	x8, d2
	str	x8, [x20]
	str	d1, [x24]
	str	d0, [x23]
	b	LBB0_7
LBB0_5:
	ldr	d0, [x21, #16]
	scvtf	d0, d0
	mov	x8, #35184372088832
	movk	x8, #16556, lsl #48
	fmov	d1, x8
	fmadd	d0, d11, d1, d0
	fcvtzs	x8, d0
	str	x8, [x20]
	str	x8, [x22]
	mov	w25, #-1
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #16]
	mov	x9, #-43200
	add	x8, x8, x9
	str	x8, [x22]
	ldr	x8, [x19, #16]
	mov	w9, #43200
	add	x8, x8, x9
	str	x8, [x20]
	mov	w25, #1
LBB0_7:
	mov	x0, x21
	bl	_timelib_time_dtor
	str	x27, [x19, #16]
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
