	.file	"extr_rx.c_xenvif_rx_copy_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xenvif_rx_copy_flush, @function
xenvif_rx_copy_flush:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	esi, DWORD PTR 0[rbp]
	lea	r14, 28[rbp]
	xor	ebx, ebx
	mov	rdi, QWORD PTR 16[rdi]
	call	gnttab_batch_copy@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jbe	.L6
.L2:
	mov	rax, QWORD PTR 16[rbp]
	mov	r13d, ebx
	xor	edi, edi
	lea	r12, [rax+r13*8]
	mov	rax, QWORD PTR GNTST_okay[rip]
	cmp	QWORD PTR [r12], rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r14
	add	ebx, 1
	mov	esi, DWORD PTR [rax+r13*4]
	call	RING_GET_RESPONSE@PLT
	mov	rdx, QWORD PTR [r12]
	mov	QWORD PTR [rax], rdx
	cmp	DWORD PTR 0[rbp], ebx
	ja	.L2
.L6:
	mov	DWORD PTR 0[rbp], 0
	xor	ebx, ebx
	mov	rdi, r14
	mov	esi, ebx
	call	RING_PUSH_RESPONSES_AND_CHECK_NOTIFY@PLT
	test	ebx, ebx
	jne	.L16
	mov	edi, DWORD PTR 4[rbp]
	pop	rbx
	.cfi_remember_state
	.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
	jmp	__skb_queue_purge@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbp]
	call	notify_remote_via_irq@PLT
	mov	edi, DWORD PTR 4[rbp]
	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
	jmp	__skb_queue_purge@PLT
	.cfi_endproc
.LFE0:
	.size	xenvif_rx_copy_flush, .-xenvif_rx_copy_flush
	.comm	GNTST_okay,8,8
	.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_rx.c_xenvif_rx_copy_flush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xenvif_rx_copy_flush, %function
xenvif_rx_copy_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	ldr	r1, [r0]
	mov	r5, r0
	ldr	r0, [r0, #12]
	bl	gnttab_batch_copy
	ldr	r3, [r8], #20
	cmp	r3, #0
	movne	r4, #0
	ldrne	r7, .L15
	bne	.L2
	b	.L6
.L5:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L6
.L2:
	ldr	r6, [r5, #12]
	ldr	r3, [r7]
	ldr	r0, [r6, r4, lsl #2]
	subs	r0, r0, r3
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r5, #8]
	mov	r0, r8
	ldr	r1, [r3, r4, lsl #2]
	bl	RING_GET_RESPONSE
	ldr	r3, [r6, r4, lsl #2]
	add	r4, r4, #1
	str	r3, [r0]
	ldr	r3, [r5]
	cmp	r3, r4
	bhi	.L2
.L6:
	mov	r3, #0
	mov	r4, r3
	mov	r0, r8
	mov	r1, r3
	str	r3, [r5]
	bl	RING_PUSH_RESPONSES_AND_CHECK_NOTIFY
	cmp	r4, r4
	bne	.L14
	ldr	r0, [r5, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	__skb_queue_purge
.L14:
	ldr	r0, [r5, #16]
	bl	notify_remote_via_irq
	ldr	r0, [r5, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	__skb_queue_purge
.L16:
	.align	2
.L15:
	.word	GNTST_okay
	.size	xenvif_rx_copy_flush, .-xenvif_rx_copy_flush
	.comm	GNTST_okay,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
