	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sldns_year_and_yday_from_days_since_epoch
_sldns_year_and_yday_from_days_since_epoch: ## @sldns_year_and_yday_from_days_since_epoch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	$1970, %r15d                    ## imm = 0x7B2
	movabsq	$1567663063040, %r14            ## imm = 0x16D00000000
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$365, %esi                      ## imm = 0x16D
	callq	_LDNS_DIV
	movq	%rax, %rbx
	leal	(%r15,%rax), %r13d
	imulq	%r14, %rbx
	sarq	$32, %rbx
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_leap_days
	addq	%rbx, %rax
	subq	%rax, %r12
	movl	%r13d, %r15d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	js	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	_is_leap_year
	cmpq	$1, %rax
	movl	$366, %eax                      ## imm = 0x16E
	sbbq	$0, %rax
	cmpq	%rax, %r12
	jae	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movl	%r12d, 4(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sldns_year_and_yday_from_days_since_epoch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sldns_year_and_yday_from_days_since_epoch
_sldns_year_and_yday_from_days_since_epoch: ; @sldns_year_and_yday_from_days_since_epoch
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w21, #1970
	mov	w23, #365
	mov	x24, #1567663063040
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #365
	bl	_LDNS_DIV
	add	w22, w21, w0
	mul	x25, x0, x24
	mov	x0, x21
	mov	x1, x22
	bl	_leap_days
	add	x8, x0, x25, asr #32
	sub	x20, x20, x8
	mov	x21, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	x20, #63, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_is_leap_year
	cmp	x0, #0
	cinc	x8, x23, ne
	cmp	x20, x8
	b.hs	LBB0_1
; %bb.4:
	stp	w21, w20, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sldns_year_and_yday_from_days_since_epoch
.subsections_via_symbols
