	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adjust_clock
_adjust_clock:                          ## @adjust_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	%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	_no_set@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_skip_adjust@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.2:
	movl	$0, (%r14)
	jmp	LBB0_3
LBB0_4:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %edi
	movl	4(%rbx), %r12d
	callq	_l_abs
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	_l_abs
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.5:
	cltq
	movq	_max_adj_offset_usec@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_set_time
	movq	_clock_adjust@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$1, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movslq	(%rbx), %rax
	imulq	$1000000, %rax, %rax            ## imm = 0xF4240
	movslq	4(%rbx), %r12
	addq	%rax, %r12
	movq	_TIMECONSTANT@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_R_SHIFT
	movq	_clock_adjust@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_adjustments@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	$-1, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	cmpl	%edi, %esi
	jg	LBB0_8
## %bb.9:
	movl	$0, (%rdx)
	movq	_FREQ_WEIGHT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	cmpl	%edx, %eax
	cmovgel	%edx, %eax
	movq	_USECSCALE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%r12, %rdi
	shlq	%cl, %rdi
	movq	(%r13), %rcx
	cltq
	subq	%rax, %rdx
	leaq	(%rdx,%rcx,2), %rsi
	callq	_R_SHIFT
	movq	_accum_drift@GOTPCREL(%rip), %r13
	addq	(%r13), %rax
	movq	%rax, (%r13)
	movq	_MAX_DRIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jg	LBB0_11
## %bb.10:
	negq	%rcx
	cmpq	%rcx, %rax
	jge	LBB0_12
LBB0_11:
	movq	%rcx, (%r13)
LBB0_12:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_update_drift
	movq	%rbx, %rdi
	callq	_pr_timeval
	movl	%eax, %r14d
	movq	_clock_adjust@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_USECSCALE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_R_SHIFT
	movq	%rax, %rbx
	movq	(%r13), %rdi
	movq	(%r15), %rsi
	callq	_R_SHIFT
	movq	(%r13), %r8
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LPRINTF                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_no_set,8,3                     ## @no_set
	.comm	_skip_adjust,4,2                ## @skip_adjust
	.comm	_max_adj_offset_usec,8,3        ## @max_adj_offset_usec
	.comm	_clock_adjust,8,3               ## @clock_adjust
	.comm	_TIMECONSTANT,8,3               ## @TIMECONSTANT
	.comm	_adjustments,4,2                ## @adjustments
	.comm	_FREQ_WEIGHT,4,2                ## @FREQ_WEIGHT
	.comm	_USECSCALE,8,3                  ## @USECSCALE
	.comm	_accum_drift,8,3                ## @accum_drift
	.comm	_MAX_DRIFT,8,3                  ## @MAX_DRIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock_adjust: %s, clock_adjust %ld, drift_comp %ld(%ld) "

	.no_dead_strip	_adjust_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adjust_clock
_adjust_clock:                          ; @adjust_clock
	.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
Lloh0:
	adrp	x8, _no_set@GOTPAGE
Lloh1:
	ldr	x8, [x8, _no_set@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x24, _skip_adjust@GOTPAGE
Lloh4:
	ldr	x24, [x24, _skip_adjust@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_3
; %bb.2:
	str	wzr, [x24]
	b	LBB0_6
LBB0_3:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w22, [x19, #4]
	bl	_l_abs
	mov	x23, x0
	mov	x0, x22
	bl	_l_abs
	cbnz	w23, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _max_adj_offset_usec@GOTPAGE
Lloh6:
	ldr	x8, [x8, _max_adj_offset_usec@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, w0, sxtw
	b.ge	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_set_time
Lloh8:
	adrp	x8, _clock_adjust@GOTPAGE
Lloh9:
	ldr	x8, [x8, _clock_adjust@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	mov	w8, #1
	str	w8, [x24]
LBB0_6:
	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
LBB0_7:
	mov	w8, #16960
	movk	w8, #15, lsl #16
	ldpsw	x9, x10, [x19]
	madd	x22, x9, x8, x10
Lloh11:
	adrp	x25, _TIMECONSTANT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _TIMECONSTANT@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x22
	bl	_R_SHIFT
Lloh13:
	adrp	x23, _clock_adjust@GOTPAGE
Lloh14:
	ldr	x23, [x23, _clock_adjust@GOTPAGEOFF]
	str	x0, [x23]
Lloh15:
	adrp	x9, _adjustments@GOTPAGE
Lloh16:
	ldr	x9, [x9, _adjustments@GOTPAGEOFF]
	ldr	w10, [x9]
	mov	w8, #-1
	mov	w11, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	lsl	w12, w11, w8
	cmp	w10, w12
	b.gt	LBB0_8
; %bb.9:
	str	wzr, [x9]
Lloh17:
	adrp	x9, _FREQ_WEIGHT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FREQ_WEIGHT@GOTPAGEOFF]
Lloh19:
	ldrsw	x9, [x9]
Lloh20:
	adrp	x24, _USECSCALE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _USECSCALE@GOTPAGEOFF]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	ldr	x10, [x24]
	lsl	x0, x22, x10
	ldr	x10, [x25]
	sub	x8, x9, w8, sxtw
	add	x1, x8, x10, lsl #1
	bl	_R_SHIFT
Lloh22:
	adrp	x25, _accum_drift@GOTPAGE
Lloh23:
	ldr	x25, [x25, _accum_drift@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh24:
	adrp	x8, _MAX_DRIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_DRIFT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x9, x9, x0
	cmp	x9, x8
	str	x9, [x25]
	b.gt	LBB0_11
; %bb.10:
	neg	x8, x8
	cmp	x9, x8
	b.ge	LBB0_12
LBB0_11:
	str	x8, [x25]
LBB0_12:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_update_drift
	mov	x0, x19
	bl	_pr_timeval
	mov	x19, x0
	ldr	x0, [x23]
	ldr	x1, [x24]
	bl	_R_SHIFT
	mov	x20, x0
	ldr	x0, [x25]
	ldr	x1, [x24]
	bl	_R_SHIFT
	mov	x3, x0
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	ldr	x4, [x25]
	mov	x1, x19
	mov	x2, x20
	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
	b	_LPRINTF
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_no_set,8,3                     ; @no_set
	.comm	_skip_adjust,4,2                ; @skip_adjust
	.comm	_max_adj_offset_usec,8,3        ; @max_adj_offset_usec
	.comm	_clock_adjust,8,3               ; @clock_adjust
	.comm	_TIMECONSTANT,8,3               ; @TIMECONSTANT
	.comm	_adjustments,4,2                ; @adjustments
	.comm	_FREQ_WEIGHT,4,2                ; @FREQ_WEIGHT
	.comm	_USECSCALE,8,3                  ; @USECSCALE
	.comm	_accum_drift,8,3                ; @accum_drift
	.comm	_MAX_DRIFT,8,3                  ; @MAX_DRIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock_adjust: %s, clock_adjust %ld, drift_comp %ld(%ld) "

	.no_dead_strip	_adjust_clock
.subsections_via_symbols
