	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function year_from_time
LCPI0_0:
	.quad	0x4076d40000000000              ## double 365.25
LCPI0_1:
	.quad	0x409ec80000000000              ## double 1970
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_year_from_time:                        ## @year_from_time
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_8
LBB0_2:
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	LCPI0_0(%rip), %xmm0
	movq	_MS_PER_DAY@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %ebx
	movl	%ebx, %edi
	callq	_time_from_year
	ucomisd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_time_from_year
	decl	%ebx
	ucomisd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	ja	LBB0_5
## %bb.6:
	incl	%ebx
	jmp	LBB0_7
LBB0_3:
	decl	%ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	2(%rbx), %edi
	callq	_time_from_year
	incl	%ebx
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_4
LBB0_7:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,8,3                        ## @NAN
	.comm	_MS_PER_DAY,8,3                 ## @MS_PER_DAY
	.no_dead_strip	_year_from_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function year_from_time
_year_from_time:                        ; @year_from_time
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	d8, d0
	bl	_isnan
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	b	LBB0_8
LBB0_2:
	mov	x8, #233096465088512
	movk	x8, #16502, lsl #48
	fmov	d0, x8
	fdiv	d0, d8, d0
Lloh3:
	adrp	x8, _MS_PER_DAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_PER_DAY@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	mov	x8, #219902325555200
	movk	x8, #16542, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	fcvtzs	w19, d0
	mov	x0, x19
	bl	_time_from_year
	fcmp	d0, d8
	b.le	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_time_from_year
	sub	w19, w19, #1
	fcmp	d0, d8
	b.gt	LBB0_3
; %bb.4:
	add	w19, w19, #1
	b	LBB0_7
LBB0_5:
	sub	w19, w19, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w19, #2
	bl	_time_from_year
	add	w19, w19, #1
	fcmp	d0, d8
	b.ls	LBB0_6
LBB0_7:
	scvtf	d0, w19
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,8,3                        ; @NAN
	.comm	_MS_PER_DAY,8,3                 ; @MS_PER_DAY
	.no_dead_strip	_year_from_time
.subsections_via_symbols
