	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function calculatesunlongitude30
LCPI0_0:
	.quad	0x4076800000000000              ## double 360
LCPI0_1:
	.quad	0xc038000000000000              ## double -24
LCPI0_2:
	.quad	0x4066800000000000              ## double 180
LCPI0_3:
	.quad	0x403e000000000000              ## double 30
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_calculatesunlongitude30
	.p2align	4, 0x90
_calculatesunlongitude30:               ## @calculatesunlongitude30
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_cumdaytab@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_isleap
	movq	(%r14,%rax,8), %rbx
	movq	_monthdaytab@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r12d, %edi
	callq	_isleap
	movq	(%r14,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leal	-1(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cvtsi2sd	%r15d, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %r14d
	xorl	%edi, %edi
	callq	_HOUR
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_MIN
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_SEC
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-104(%rbp), %r11
	leaq	-56(%rbp), %r10
	xorpd	%xmm0, %xmm0
	xorpd	%xmm1, %xmm1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	$12, %esi
	movl	$31, %edx
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	%rax
	callq	_sunpos
	addq	$32, %rsp
	movl	$-1, %r12d
	movl	$1, %esi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%rsi
	cmpq	$13, %rsi
	je	LBB0_18
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HOURSPERDAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rcx,%rsi,4), %ecx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	leal	1(%r14), %edx
	cmpl	%ecx, %r14d
	movl	%edx, %r14d
	jge	LBB0_17
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%eax, %eax
	jle	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=3
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
	addl	%r14d, %eax
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=3
	movsd	%xmm0, -56(%rbp)
	incl	%r15d
	movq	_HOURSPERDAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(,%rax,4), %ecx
	cmpl	%ecx, %r15d
	jge	LBB0_15
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
	movl	%r15d, %edi
	callq	_HOUR
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_MIN
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_SEC
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	xorpd	%xmm0, %xmm0
	xorpd	%xmm1, %xmm1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	leaq	-104(%rbp), %rbx
	pushq	%rbx
	leaq	-96(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	callq	_sunpos
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	addq	$32, %rsp
	movsd	-96(%rbp), %xmm0                ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movsd	-56(%rbp), %xmm2                ## xmm2 = mem[0],zero
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	ucomisd	%xmm1, %xmm2
	ja	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=3
	xorl	%eax, %eax
	xorpd	%xmm1, %xmm1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movsd	LCPI0_3(%rip), %xmm3            ## xmm3 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=3
	ucomisd	%xmm2, %xmm1
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	(%rbx,%rdx,4), %ecx
	addl	%r14d, %ecx
	movl	%ecx, (%r13)
	cmpl	$330, %eax                      ## imm = 0x14A
	cmovel	%ecx, %r12d
	addq	$4, %r13
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	cmpl	$330, %eax                      ## imm = 0x14A
	ja	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=4
	addsd	%xmm3, %xmm1
	addl	$30, %eax
	movsd	-56(%rbp), %xmm2                ## xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_9
	jmp	LBB0_11
LBB0_18:
	movl	$-1, (%r13)
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cumdaytab,8,3                  ## @cumdaytab
	.comm	_monthdaytab,8,3                ## @monthdaytab
	.comm	_HOURSPERDAY,4,2                ## @HOURSPERDAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_calculatesunlongitude30        ; -- Begin function calculatesunlongitude30
	.p2align	2
_calculatesunlongitude30:               ; @calculatesunlongitude30
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _cumdaytab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cumdaytab@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	bl	_isleap
	ldr	x28, [x22, x0, lsl #3]
Lloh3:
	adrp	x8, _monthdaytab@GOTPAGE
Lloh4:
	ldr	x8, [x8, _monthdaytab@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	mov	x0, x20
	bl	_isleap
	ldr	x8, [x22, x0, lsl #3]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	sub	w22, w20, #1
	scvtf	d0, w21
	mov	x8, #140737488355328
	movk	x8, #16502, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fmov	d1, #-24.00000000
	fmul	d0, d0, d1
	fcvtzs	w21, d0
	mov	w0, #0
	bl	_HOUR
	mov	x23, x0
	mov	w0, #0
	bl	_MIN
	mov	x24, x0
	mov	w0, #0
	bl	_SEC
	mov	x6, x0
	add	x8, sp, #40
	str	x8, [sp]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	add	x7, sp, #24
	mov	x0, x22
	mov	w1, #12
	mov	w2, #31
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	bl	_sunpos
	mov	w22, #-1
	mov	w23, #1
	fmov	d8, #30.00000000
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x23, #13
	b.eq	LBB0_16
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;         Child Loop BB0_12 Depth 4
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w9, [x8, x23, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh6:
	adrp	x8, _HOURSPERDAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOURSPERDAY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w24, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w9, [x9, x23, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w10, w24, #1
	cmp	w24, w9
	mov	x24, x10
	b.ge	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;         Child Loop BB0_12 Depth 4
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w25, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=3
	ldr	w8, [x28, x23, lsl #2]
	add	w8, w8, w24
	str	w8, [x19], #4
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	str	d0, [sp, #24]
	add	w25, w25, #1
Lloh9:
	adrp	x8, _HOURSPERDAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HOURSPERDAY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w25, w8, lsl #2
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_12 Depth 4
	mov	x0, x25
	bl	_HOUR
	mov	x26, x0
	mov	x0, x25
	bl	_MIN
	mov	x27, x0
	mov	x0, x25
	bl	_SEC
	mov	x6, x0
	add	x8, sp, #40
	str	x8, [sp]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	add	x7, sp, #32
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x26
	mov	x5, x27
	bl	_sunpos
	ldp	d2, d0, [sp, #24]
	mov	x8, #140737488355328
	movk	x8, #16486, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	fccmp	d2, d1, #4, mi
	b.gt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	w8, #0
	movi	d1, #0000000000000000
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_10 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	fcmp	d0, d1
	fccmp	d2, d1, #0, gt
	b.pl	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=4
	ldr	w9, [x28, x23, lsl #2]
	add	w9, w9, w24
	str	w9, [x19], #4
	cmp	w8, #330
	csel	w22, w9, w22, eq
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=4
	cmp	w8, #330
	b.hi	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=4
	fadd	d1, d1, d8
	add	w8, w8, #30
	ldr	d2, [sp, #24]
	b	LBB0_12
LBB0_16:
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x22
	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
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cumdaytab,8,3                  ; @cumdaytab
	.comm	_monthdaytab,8,3                ; @monthdaytab
	.comm	_HOURSPERDAY,4,2                ; @HOURSPERDAY
.subsections_via_symbols
