	.file	"extr_ptp_kvm.c_ptp_kvm_get_time_fn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"clock pairing hypercall ret %lu\n"
	.text
	.p2align 4
	.type	ptp_kvm_get_time_fn, @function
ptp_kvm_get_time_fn:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	lea	rdi, kvm_ptp_lock[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	spin_lock@PLT
	xor	eax, eax
	call	preempt_disable_notrace@PLT
	xor	eax, eax
	call	smp_processor_id@PLT
	mov	rdx, QWORD PTR hv_clock[rip]
	cdqe
	lea	rbx, [rdx+rax*4]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR clock_pair[rip]
	mov	rdi, rbx
	mov	r15, QWORD PTR clock_pair[rip+4]
	call	__pvclock_read_cycles@PLT
	mov	esi, ebp
	mov	rdi, rbx
	mov	r14, rax
	call	pvclock_read_retry@PLT
	test	rax, rax
	je	.L8
.L4:
	mov	rdi, rbx
	call	pvclock_read_begin@PLT
	mov	edx, DWORD PTR KVM_CLOCK_PAIRING_WALLCLOCK[rip]
	mov	esi, DWORD PTR clock_pair_gpa[rip]
	mov	edi, DWORD PTR KVM_HC_CLOCK_PAIRING[rip]
	mov	ebp, eax
	call	kvm_hypercall2@PLT
	test	rax, rax
	je	.L2
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	pr_err_ratelimited@PLT
	lea	rdi, kvm_ptp_lock[rip]
	call	spin_unlock@PLT
	xor	eax, eax
	call	preempt_enable_notrace@PLT
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	call	preempt_enable_notrace@PLT
	lea	rax, kvm_clock[rip]
	mov	QWORD PTR [r12], r14
	mov	rdi, r15
	mov	QWORD PTR 8[r12], rax
	call	timespec64_to_ktime@PLT
	lea	rdi, kvm_ptp_lock[rip]
	mov	DWORD PTR 0[r13], eax
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ptp_kvm_get_time_fn, .-ptp_kvm_get_time_fn
	.comm	kvm_ptp_lock,4,4
	.comm	kvm_clock,4,4
	.comm	hv_clock,8,8
	.comm	clock_pair_gpa,4,4
	.comm	clock_pair,12,8
	.comm	KVM_HC_CLOCK_PAIRING,4,4
	.comm	KVM_CLOCK_PAIRING_WALLCLOCK,4,4
	.comm	EOPNOTSUPP,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_ptp_kvm.c_ptp_kvm_get_time_fn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clock pairing hypercall ret %lu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptp_kvm_get_time_fn, %function
ptp_kvm_get_time_fn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	sub	sp, sp, #20
	ldr	r0, .L9
	mov	r9, r1
	bl	spin_lock
	bl	preempt_disable_notrace
	bl	smp_processor_id
	ldr	r3, .L9+4
	ldr	r8, .L9+8
	ldr	r5, [r3]
	ldr	r7, .L9+12
	ldr	r6, .L9+16
	ldr	fp, .L9+20
	add	r5, r5, r0, lsl #2
	b	.L4
.L2:
	ldr	r2, [fp, #8]
	ldm	fp, {r1, r3}
	mov	r0, r5
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	bl	__pvclock_read_cycles
	mov	r3, r0
	mov	r1, r4
	mov	r0, r5
	mov	r4, r3
	bl	pvclock_read_retry
	subs	r3, r0, #0
	beq	.L8
.L4:
	mov	r0, r5
	bl	pvclock_read_begin
	ldr	r2, [r8]
	mov	r4, r0
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	kvm_hypercall2
	cmp	r0, #0
	beq	.L2
	mov	r1, r0
	ldr	r0, .L9+24
	bl	pr_err_ratelimited
	ldr	r0, .L9
	bl	spin_unlock
	bl	preempt_enable_notrace
	ldr	r3, .L9+28
	ldr	r0, [r3]
	rsb	r3, r0, #0
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	str	r3, [sp, #4]
	bl	preempt_enable_notrace
	ldr	r2, .L9+32
	add	r3, sp, #16
	ldmdb	r3, {r0, r1}
	str	r2, [r9, #4]
	str	r4, [r9]
	bl	timespec64_to_ktime
	mov	r2, r0
	ldr	r0, .L9
	str	r2, [r10]
	bl	spin_unlock
	ldr	r3, [sp, #4]
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	kvm_ptp_lock
	.word	hv_clock
	.word	KVM_CLOCK_PAIRING_WALLCLOCK
	.word	clock_pair_gpa
	.word	KVM_HC_CLOCK_PAIRING
	.word	clock_pair
	.word	.LC0
	.word	EOPNOTSUPP
	.word	kvm_clock
	.size	ptp_kvm_get_time_fn, .-ptp_kvm_get_time_fn
	.comm	kvm_ptp_lock,4,4
	.comm	kvm_clock,4,4
	.comm	hv_clock,4,4
	.comm	clock_pair_gpa,4,4
	.comm	clock_pair,12,4
	.comm	KVM_HC_CLOCK_PAIRING,4,4
	.comm	KVM_CLOCK_PAIRING_WALLCLOCK,4,4
	.comm	EOPNOTSUPP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
