	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvclock_clocksource_read       ## -- Begin function pvclock_clocksource_read
	.p2align	4, 0x90
_pvclock_clocksource_read:              ## @pvclock_clocksource_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pvclock_get_time_values
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_barrier
	movq	%r15, %rdi
	callq	_pvclock_get_nsec_offset
	movq	%rax, %rbx
	movq	-56(%rbp), %r12
	xorl	%eax, %eax
	callq	_barrier
	cmpl	(%r14), %r13d
	jne	LBB0_1
## %bb.2:
	addq	%rbx, %r12
	movq	_valid_flags@GOTPCREL(%rip), %rcx
	movq	_PVCLOCK_TSC_STABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	testl	%eax, -48(%rbp)
	jne	LBB0_8
LBB0_4:
	movq	_last_value@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_atomic64_read
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %r12
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_atomic64_cmpxchg
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	%r12, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %r12
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_valid_flags,4,2                ## @valid_flags
	.comm	_PVCLOCK_TSC_STABLE_BIT,4,2     ## @PVCLOCK_TSC_STABLE_BIT
	.comm	_last_value,4,2                 ## @last_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvclock_clocksource_read       ; -- Begin function pvclock_clocksource_read
	.p2align	2
_pvclock_clocksource_read:              ; @pvclock_clocksource_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x19
	bl	_pvclock_get_time_values
	mov	x21, x0
	bl	_barrier
	mov	x0, sp
	bl	_pvclock_get_nsec_offset
	mov	x20, x0
	ldr	x22, [sp]
	bl	_barrier
	ldr	w8, [x19]
	cmp	w21, w8
	b.ne	LBB0_1
; %bb.2:
Lloh0:
	adrp	x8, _valid_flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _valid_flags@GOTPAGEOFF]
	add	x19, x22, x20
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _PVCLOCK_TSC_STABLE_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVCLOCK_TSC_STABLE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [sp, #8]
	tst	w9, w8
	b.ne	LBB0_8
LBB0_4:
Lloh6:
	adrp	x20, _last_value@GOTPAGE
Lloh7:
	ldr	x20, [x20, _last_value@GOTPAGEOFF]
	mov	x0, x20
	bl	_atomic64_read
	mov	x21, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x21
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_atomic64_cmpxchg
	mov	x21, x0
	cmp	x0, x19
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_7:
	mov	x19, x21
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_valid_flags,4,2                ; @valid_flags
	.comm	_PVCLOCK_TSC_STABLE_BIT,4,2     ; @PVCLOCK_TSC_STABLE_BIT
	.comm	_last_value,4,2                 ; @last_value
.subsections_via_symbols
