	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function day_from_year
LCPI0_0:
	.quad	0x4076d00000000000              ## double 365
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_day_from_year:                         ## @day_from_year
	.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
	movl	%edi, %ebx
	leal	-1970(%rbx), %eax
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	leal	-1969(%rbx), %eax
	leal	-1966(%rbx), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	callq	_floor
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	leal	-1901(%rbx), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_floor
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -16(%rbp)                ## 8-byte Spill
	addl	$-1601, %ebx                    ## imm = 0xF9BF
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$39, %rax
	addl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_floor
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_floor                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,4,2                        ## @NAN
	.no_dead_strip	_day_from_year
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function day_from_year
_day_from_year:                         ; @day_from_year
	.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
	mov	x19, x0
	sub	w8, w0, #1970
	scvtf	d8, w8
	sub	w8, w0, #1969
	sub	w9, w0, #1966
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	scvtf	d0, w8
	bl	_floor
	scvtf	d0, w0
	mov	x8, #228698418577408
	movk	x8, #16502, lsl #48
	fmov	d1, x8
	fmadd	d8, d8, d1, d0
	sub	w8, w19, #1901
	mov	w20, #34079
	movk	w20, #20971, lsl #16
	smull	x8, w8, w20
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	scvtf	d0, w8
	bl	_floor
	scvtf	d0, w0
	fsub	d8, d8, d0
	sub	w8, w19, #1601
	smull	x8, w8, w20
	lsr	x9, x8, #63
	asr	x8, x8, #39
	add	w8, w8, w9
	scvtf	d0, w8
	bl	_floor
	scvtf	d0, w0
	fadd	d0, d8, d0
	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
	b	_floor
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,4,2                        ; @NAN
	.no_dead_strip	_day_from_year
.subsections_via_symbols
