	.file	"extr_if_ntb.c_ntb_qflush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ntb_qflush, @function
ntb_qflush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	if_getsoftc@PLT
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L2
	mov	r12, rax
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[r12]
	lea	rbp, [rax+rbx*8]
	mov	rdi, rbp
	call	mtx_lock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	call	m_freem@PLT
.L3:
	mov	edi, DWORD PTR 4[rbp]
	call	buf_ring_dequeue_sc@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L4
	mov	rdi, rbp
	add	rbx, 1
	call	mtx_unlock@PLT
	cmp	DWORD PTR [r12], ebx
	jg	.L5
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edi, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	if_qflush@PLT
	.cfi_endproc
.LFE0:
	.size	ntb_qflush, .-ntb_qflush
	.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_if_ntb.c_ntb_qflush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ntb_qflush, %function
ntb_qflush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	if_getsoftc
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L2
	mov	r6, r0
	mov	r5, #0
.L5:
	ldr	r4, [r6, #4]
	add	r4, r4, r5, lsl #3
	mov	r0, r4
	bl	mtx_lock
	b	.L3
.L4:
	bl	m_freem
.L3:
	ldr	r0, [r4, #4]
	bl	buf_ring_dequeue_sc
	cmp	r0, #0
	bne	.L4
	mov	r0, r4
	bl	mtx_unlock
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	if_qflush
	.size	ntb_qflush, .-ntb_qflush
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
