	.file	"extr_pvclock.c_pvclock_clocksource_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pvclock_clocksource_read
	.type	pvclock_clocksource_read, @function
pvclock_clocksource_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rbx
	mov	rdi, r13
	call	pvclock_get_time_values@PLT
	mov	ebp, eax
	xor	eax, eax
	call	barrier@PLT
	mov	rdi, r13
	call	pvclock_get_nsec_offset@PLT
	mov	r14, QWORD PTR [rsp]
	mov	r12, rax
	xor	eax, eax
	call	barrier@PLT
	cmp	DWORD PTR [rbx], ebp
	jne	.L2
	mov	eax, DWORD PTR PVCLOCK_TSC_STABLE_BIT[rip]
	add	r12, r14
	test	DWORD PTR valid_flags[rip], eax
	je	.L3
	test	DWORD PTR 8[rsp], eax
	jne	.L1
.L3:
	lea	rdi, last_value[rip]
	lea	rbx, last_value[rip]
	call	atomic64_read@PLT
	mov	rbp, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, rbp
	mov	rdi, rbx
	mov	rdx, r12
	call	atomic64_cmpxchg@PLT
	xor	edi, edi
	cmp	r12, rax
	mov	rbp, rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L1
.L5:
	cmp	rbp, r12
	jle	.L15
	mov	r12, rbp
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pvclock_clocksource_read, .-pvclock_clocksource_read
	.comm	valid_flags,4,4
	.comm	last_value,4,4
	.comm	PVCLOCK_TSC_STABLE_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pvclock.c_pvclock_clocksource_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pvclock_clocksource_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	pvclock_clocksource_read, %function
pvclock_clocksource_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r0
.L2:
	mov	r1, r7
	add	r0, sp, #4
	bl	pvclock_get_time_values
	mov	r4, r0
	bl	barrier
	add	r0, sp, #4
	bl	pvclock_get_nsec_offset
	ldr	r6, [sp, #4]
	mov	r5, r0
	bl	barrier
	ldr	r3, [r7]
	cmp	r3, r4
	bne	.L2
	ldr	r3, .L17+4
	ldr	r2, .L17+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r5, r6, r5
	tst	r3, r2
	beq	.L3
	ldr	r2, [sp, #8]
	tst	r3, r2
	bne	.L1
.L3:
	ldr	r0, .L17+12
	bl	atomic64_read
	ldr	r6, .L17+12
	mov	r4, r0
	b	.L5
.L15:
	mov	r1, r4
	mov	r2, r5
	mov	r0, r6
	bl	atomic64_cmpxchg
	mov	r4, r0
	subs	r0, r5, r0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L1
.L5:
	cmp	r4, r5
	ble	.L15
	mov	r5, r4
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	PVCLOCK_TSC_STABLE_BIT
	.word	valid_flags
	.word	last_value
	.size	pvclock_clocksource_read, .-pvclock_clocksource_read
	.comm	valid_flags,4,4
	.comm	last_value,4,4
	.comm	PVCLOCK_TSC_STABLE_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
