	.file	"extr_vmwgfx_irq.c_vmw_seqno_passed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vmw_seqno_passed
	.type	vmw_seqno_passed, @function
vmw_seqno_passed:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	xor	edi, edi
	sub	rax, rsi
	cmp	rax, QWORD PTR VMW_FENCE_WRAP[rip]
	setl	dil
	call	likely@PLT
	test	rax, rax
	je	.L2
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	lea	rsi, 12[rbx]
	call	vmw_update_seqno@PLT
	mov	rax, QWORD PTR [rbx]
	xor	edi, edi
	sub	rax, rbp
	cmp	rax, QWORD PTR VMW_FENCE_WRAP[rip]
	setl	dil
	call	likely@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR 12[rbx]
	test	DWORD PTR SVGA_FIFO_CAP_FENCE[rip], eax
	jne	.L6
	mov	rsi, rbp
	mov	rdi, rbx
	call	vmw_fifo_idle@PLT
	test	rax, rax
	jne	.L4
.L6:
	lea	rdi, 8[rbx]
	call	atomic_read@PLT
	sub	rax, rbp
	cmp	rax, QWORD PTR VMW_FENCE_WRAP[rip]
	setg	al
	add	rsp, 8
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vmw_seqno_passed, .-vmw_seqno_passed
	.comm	VMW_FENCE_WRAP,8,8
	.comm	SVGA_FIFO_CAP_FENCE,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_vmwgfx_irq.c_vmw_seqno_passed.c"
	.text
	.align	2
	.global	vmw_seqno_passed
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmw_seqno_passed, %function
vmw_seqno_passed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L9
	ldr	r3, [r0]
	mov	r4, r0
	ldr	r0, [r6]
	sub	r3, r3, r1
	cmp	r3, r0
	movge	r0, #0
	movlt	r0, #1
	mov	r5, r1
	bl	likely
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	add	r1, r4, #8
	mov	r0, r4
	bl	vmw_update_seqno
	ldr	r3, [r4]
	ldr	r0, [r6]
	sub	r3, r3, r5
	cmp	r3, r0
	movge	r0, #0
	movlt	r0, #1
	bl	likely
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L9+4
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L6
	mov	r1, r5
	mov	r0, r4
	bl	vmw_fifo_idle
	cmp	r0, #0
	bne	.L4
.L6:
	add	r0, r4, #4
	bl	atomic_read
	ldr	r3, [r6]
	sub	r1, r0, r5
	cmp	r1, r3
	movle	r0, #0
	movgt	r0, #1
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	VMW_FENCE_WRAP
	.word	SVGA_FIFO_CAP_FENCE
	.size	vmw_seqno_passed, .-vmw_seqno_passed
	.comm	VMW_FENCE_WRAP,4,4
	.comm	SVGA_FIFO_CAP_FENCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
