	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_caltontp                       ## -- Begin function caltontp
	.p2align	4, 0x90
_caltontp:                              ## @caltontp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_REQUIRE
	xorl	%edi, %edi
	cmpl	$14, (%rbx)
	setl	%dil
	callq	_REQUIRE
	xorl	%edi, %edi
	cmpl	$33, 4(%rbx)
	setl	%dil
	callq	_REQUIRE
	xorl	%edi, %edi
	cmpl	$367, 8(%rbx)                   ## imm = 0x16F
	setl	%dil
	callq	_REQUIRE
	xorl	%edi, %edi
	cmpl	$25, 12(%rbx)
	setl	%dil
	callq	_REQUIRE
	movq	16(%rbx), %rax
	movq	_MINSPERHR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_REQUIRE
	movq	24(%rbx), %rax
	movq	_SECSPERMIN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_REQUIRE
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	32(%rbx), %edi
	callq	_ntpcal_year_to_ystart
	movslq	8(%rbx), %rcx
	leaq	(%rax,%rcx), %r14
	decq	%r14
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_ntpcal_date_to_rd
	movq	%rax, %r14
LBB0_3:
	movq	_DAY_NTP_STARTS@GOTPCREL(%rip), %rax
	subq	(%rax), %r14
	movl	12(%rbx), %edi
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	callq	_ntpcal_etime_to_seconds
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ntpcal_dayjoin                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MINSPERHR,8,3                  ## @MINSPERHR
	.comm	_SECSPERMIN,8,3                 ## @SECSPERMIN
	.comm	_DAY_NTP_STARTS,8,3             ## @DAY_NTP_STARTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_caltontp                       ; -- Begin function caltontp
	.p2align	2
_caltontp:                              ; @caltontp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_REQUIRE
	ldr	w8, [x19]
	cmp	w8, #14
	cset	w0, lt
	bl	_REQUIRE
	ldr	w8, [x19, #4]
	cmp	w8, #33
	cset	w0, lt
	bl	_REQUIRE
	ldr	w8, [x19, #8]
	cmp	w8, #367
	cset	w0, lt
	bl	_REQUIRE
	ldr	w8, [x19, #12]
	cmp	w8, #25
	cset	w0, lt
	bl	_REQUIRE
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _MINSPERHR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MINSPERHR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	bl	_REQUIRE
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _SECSPERMIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SECSPERMIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	bl	_REQUIRE
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_ntpcal_year_to_ystart
	ldrsw	x8, [x19, #8]
	add	x8, x0, x8
	sub	x0, x8, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ntpcal_date_to_rd
LBB0_3:
Lloh6:
	adrp	x8, _DAY_NTP_STARTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DAY_NTP_STARTS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sub	x20, x0, x8
	ldr	w0, [x19, #12]
	ldp	x1, x2, [x19, #16]
	bl	_ntpcal_etime_to_seconds
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ntpcal_dayjoin
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MINSPERHR,8,3                  ; @MINSPERHR
	.comm	_SECSPERMIN,8,3                 ; @SECSPERMIN
	.comm	_DAY_NTP_STARTS,8,3             ; @DAY_NTP_STARTS
.subsections_via_symbols
