	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function set_sys_tick_precision
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
LCPI0_2:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_set_sys_tick_precision
	.p2align	4, 0x90
_set_sys_tick_precision:                ## @set_sys_tick_precision
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	ucomisd	LCPI0_0(%rip), %xmm0
	jbe	LBB0_1
## %bb.8:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movb	$1, %al
	addq	$16, %rsp
	popq	%rbp
	jmp	_msyslog                        ## TAILCALL
LBB0_1:
	movq	_measured_tick@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_2
## %bb.9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movb	$2, %al
	addq	$16, %rsp
	popq	%rbp
	jmp	_msyslog                        ## TAILCALL
LBB0_2:
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_4
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_trunc_os_clock@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movb	$1, %al
	movsd	%xmm0, -8(%rbp)                 ## 8-byte Spill
	callq	_msyslog
	movsd	-8(%rbp), %xmm0                 ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_4:
	movq	_sys_tick@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	xorl	%eax, %eax
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jb	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addsd	%xmm0, %xmm0
	decl	%eax
	ucomisd	%xmm0, %xmm1
	jae	LBB0_6
LBB0_7:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	xorl	%ecx, %ecx
	ucomisd	%xmm0, %xmm1
	seta	%cl
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	_sys_precision@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported tick %.3f > 1s ignored"

	.comm	_measured_tick,8,3              ## @measured_tick
L_.str.1:                               ## @.str.1
	.asciz	"proto: tick %.3f less than measured tick %.3f, ignored"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_trunc_os_clock,4,2             ## @trunc_os_clock
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
L_.str.2:                               ## @.str.2
	.asciz	"proto: truncating system clock to multiples of %.9f"

	.comm	_sys_tick,8,3                   ## @sys_tick
	.comm	_sys_precision,8,3              ## @sys_precision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_sys_tick_precision         ; -- Begin function set_sys_tick_precision
	.p2align	2
_set_sys_tick_precision:                ; @set_sys_tick_precision
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	d9, d8, [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 b8, -24
	.cfi_offset b9, -32
	fmov	d8, d0
	fmov	d0, #1.00000000
	fcmp	d8, d0
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	fmov	d0, d8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_msyslog
LBB0_2:
Lloh5:
	adrp	x8, _measured_tick@GOTPAGE
Lloh6:
	ldr	x8, [x8, _measured_tick@GOTPAGEOFF]
Lloh7:
	ldr	d0, [x8]
	fcmp	d0, d8
	b.le	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	d0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	fmov	d0, d8
	bl	_msyslog
	b	LBB0_9
LBB0_4:
	b.pl	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _trunc_os_clock@GOTPAGE
Lloh17:
	ldr	x9, [x9, _trunc_os_clock@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
Lloh19:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	fmov	d0, d8
	bl	_msyslog
LBB0_6:
Lloh24:
	adrp	x8, _sys_tick@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sys_tick@GOTPAGEOFF]
Lloh26:
	str	d8, [x8]
	fmov	d0, #1.00000000
	mov	w8, #0
	fcmp	d8, d0
	b.hi	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	fadd	d8, d8, d8
	sub	w8, w8, #1
	fcmp	d8, d0
	b.ls	LBB0_7
LBB0_8:
	fmov	d1, #-1.00000000
	fadd	d1, d8, d1
	fmov	d2, #-0.50000000
	fmul	d2, d8, d2
	fadd	d0, d2, d0
	fcmp	d1, d0
	cinc	w8, w8, gt
	sxtw	x8, w8
Lloh27:
	adrp	x9, _sys_precision@GOTPAGE
Lloh28:
	ldr	x9, [x9, _sys_precision@GOTPAGEOFF]
Lloh29:
	str	x8, [x9]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported tick %.3f > 1s ignored"

	.comm	_measured_tick,8,3              ; @measured_tick
l_.str.1:                               ; @.str.1
	.asciz	"proto: tick %.3f less than measured tick %.3f, ignored"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_trunc_os_clock,4,2             ; @trunc_os_clock
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
l_.str.2:                               ; @.str.2
	.asciz	"proto: truncating system clock to multiples of %.9f"

	.comm	_sys_tick,8,3                   ; @sys_tick
	.comm	_sys_precision,8,3              ; @sys_precision
.subsections_via_symbols
