	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function adj_host_clock
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_adj_host_clock
	.p2align	4, 0x90
_adj_host_clock:                        ## @adj_host_clock
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_clock_phi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sys_rootdisp@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_ntp_enable@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_mode_ntpdate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.2:
	movq	_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EVNT_SYNC@GOTPCREL(%rip), %rcx
	xorpd	%xmm2, %xmm2
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_freq_cnt@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	movq	_clock_offset@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	_CLOCK_PLL@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	jle	LBB0_5
## %bb.4:
	movl	$1, %edi
	callq	_ULOGTOD
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	-32(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	divsd	%xmm1, %xmm2
	decq	(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	_sys_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ULOGTOD
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	-32(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	divsd	%xmm1, %xmm2
LBB0_6:
	movq	_drift_comp@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm3                   ## xmm3 = mem[0],zero
	movapd	%xmm2, %xmm1
	addsd	%xmm3, %xmm1
	movq	_NTP_MAXFREQ@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_8
## %bb.7:
	xorpd	LCPI0_0(%rip), %xmm0
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_9
LBB0_8:
	subsd	%xmm3, %xmm0
	movapd	%xmm0, %xmm2
LBB0_9:
	movsd	%xmm2, -32(%rbp)                ## 8-byte Spill
	movq	_clock_offset@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	subsd	%xmm2, %xmm0
	movsd	%xmm0, (%rax)
	movq	_enable_panic_check@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_TRUE@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	movsd	%xmm3, -24(%rbp)                ## 8-byte Spill
	callq	_DEBUG_INSIST
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_adj_systime
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clock_phi,8,3                  ## @clock_phi
	.comm	_sys_rootdisp,4,2               ## @sys_rootdisp
	.comm	_ntp_enable,4,2                 ## @ntp_enable
	.comm	_mode_ntpdate,8,3               ## @mode_ntpdate
	.comm	_state,8,3                      ## @state
	.comm	_EVNT_SYNC,8,3                  ## @EVNT_SYNC
	.comm	_freq_cnt,8,3                   ## @freq_cnt
	.comm	_clock_offset,8,3               ## @clock_offset
	.comm	_CLOCK_PLL,8,3                  ## @CLOCK_PLL
	.comm	_sys_poll,4,2                   ## @sys_poll
	.comm	_drift_comp,8,3                 ## @drift_comp
	.comm	_NTP_MAXFREQ,8,3                ## @NTP_MAXFREQ
	.comm	_enable_panic_check,8,3         ## @enable_panic_check
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_kern_enable,8,3                ## @kern_enable
	.comm	_pll_control,8,3                ## @pll_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adj_host_clock                 ; -- Begin function adj_host_clock
	.p2align	2
_adj_host_clock:                        ; @adj_host_clock
	.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
Lloh0:
	adrp	x8, _clock_phi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _clock_phi@GOTPAGEOFF]
Lloh2:
	adrp	x9, _sys_rootdisp@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sys_rootdisp@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _ntp_enable@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ntp_enable@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _mode_ntpdate@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mode_ntpdate@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_10
; %bb.1:
Lloh11:
	adrp	x8, _state@GOTPAGE
Lloh12:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh13:
	adrp	x9, _EVNT_SYNC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EVNT_SYNC@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	ldr	x9, [x9]
	movi	d8, #0000000000000000
Lloh17:
	adrp	x19, _clock_offset@GOTPAGE
Lloh18:
	ldr	x19, [x19, _clock_offset@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh19:
	adrp	x20, _freq_cnt@GOTPAGE
Lloh20:
	ldr	x20, [x20, _freq_cnt@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	d8, [x19]
Lloh21:
	adrp	x9, _CLOCK_PLL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CLOCK_PLL@GOTPAGEOFF]
Lloh23:
	ldr	d9, [x9]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_ULOGTOD
	fmul	d0, d9, d0
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _sys_poll@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sys_poll@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_ULOGTOD
	fmul	d0, d9, d0
LBB0_5:
	fdiv	d8, d8, d0
LBB0_6:
Lloh27:
	adrp	x8, _drift_comp@GOTPAGE
Lloh28:
	ldr	x8, [x8, _drift_comp@GOTPAGEOFF]
Lloh29:
	ldr	d9, [x8]
	fadd	d0, d8, d9
Lloh30:
	adrp	x8, _NTP_MAXFREQ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NTP_MAXFREQ@GOTPAGEOFF]
Lloh32:
	ldr	d1, [x8]
	fcmp	d0, d1
	b.gt	LBB0_8
; %bb.7:
	fneg	d1, d1
	fcmp	d0, d1
	b.pl	LBB0_9
LBB0_8:
	fsub	d8, d1, d9
LBB0_9:
	ldr	d0, [x19]
	fsub	d0, d0, d8
	str	d0, [x19]
Lloh33:
	adrp	x19, _enable_panic_check@GOTPAGE
Lloh34:
	ldr	x19, [x19, _enable_panic_check@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh35:
	adrp	x20, _TRUE@GOTPAGE
Lloh36:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_DEBUG_INSIST
Lloh37:
	adrp	x8, _FALSE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [x19]
	fadd	d0, d9, d8
	bl	_adj_systime
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_clock_phi,8,3                  ; @clock_phi
	.comm	_sys_rootdisp,4,2               ; @sys_rootdisp
	.comm	_ntp_enable,4,2                 ; @ntp_enable
	.comm	_mode_ntpdate,8,3               ; @mode_ntpdate
	.comm	_state,8,3                      ; @state
	.comm	_EVNT_SYNC,8,3                  ; @EVNT_SYNC
	.comm	_freq_cnt,8,3                   ; @freq_cnt
	.comm	_clock_offset,8,3               ; @clock_offset
	.comm	_CLOCK_PLL,8,3                  ; @CLOCK_PLL
	.comm	_sys_poll,4,2                   ; @sys_poll
	.comm	_drift_comp,8,3                 ; @drift_comp
	.comm	_NTP_MAXFREQ,8,3                ; @NTP_MAXFREQ
	.comm	_enable_panic_check,8,3         ; @enable_panic_check
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_kern_enable,8,3                ; @kern_enable
	.comm	_pll_control,8,3                ; @pll_control
.subsections_via_symbols
