	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_rd_to_tm                ## -- Begin function ntpcal_rd_to_tm
	.p2align	4, 0x90
_ntpcal_rd_to_tm:                       ## @ntpcal_rd_to_tm
	.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	%esi, %ecx
	movq	%rdi, %rbx
	movq	_DAYSPERWEEK@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%edx, (%rdi)
	testl	%edx, %edx
	jns	LBB0_2
## %bb.1:
	addl	(%rsi), %edx
	movl	%edx, (%rbx)
LBB0_2:
	decl	%ecx
	leaq	-12(%rbp), %rsi
	movl	%ecx, %edi
	callq	_ntpcal_split_eradays
	addq	$-1899, %rdx                    ## imm = 0xF895
	movq	%rdx, 32(%rbx)
	movq	%rax, 24(%rbx)
	movl	-12(%rbp), %esi
	movq	%rax, %rdi
	callq	_ntpcal_split_yeardays
	movq	%rdx, 16(%rbx)
	incq	%rax
	movq	%rax, 8(%rbx)
	movl	-12(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAYSPERWEEK,4,2                ## @DAYSPERWEEK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpcal_rd_to_tm                ; -- Begin function ntpcal_rd_to_tm
	.p2align	2
_ntpcal_rd_to_tm:                       ; @ntpcal_rd_to_tm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DAYSPERWEEK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAYSPERWEEK@GOTPAGEOFF]
	ldr	w9, [x8]
	sdiv	w10, w1, w9
	msub	w9, w10, w9, w1
	str	w9, [x0]
	tbz	w9, #31, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	add	w8, w8, w9
	str	w8, [x19]
LBB0_2:
	sub	w0, w1, #1
	add	x1, sp, #12
	bl	_ntpcal_split_eradays
	sub	x8, x1, #1899
	stp	x0, x8, [x19, #24]
	ldr	w1, [sp, #12]
	bl	_ntpcal_split_yeardays
	add	x8, x0, #1
	stp	x8, x1, [x19, #8]
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DAYSPERWEEK,4,2                ; @DAYSPERWEEK
.subsections_via_symbols
