	.file	"extr_ena.c_check_for_empty_rx_ring.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"trigger refill for ring %d\n"
	.text
	.p2align 4
	.type	check_for_empty_rx_ring, @function
check_for_empty_rx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rsi, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ENA_FLAG_DEV_UP[rip]
	call	ENA_FLAG_ISSET@PLT
	test	rax, rax
	jne	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR ENA_FLAG_TRIGGER_RESET[rip]
	mov	rsi, rbp
	call	ENA_FLAG_ISSET@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L1
	xor	r13d, r13d
	lea	r12, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 8[rbx]
	add	rax, 1
	cmp	rax, QWORD PTR EMPTY_RX_REFILL[rip]
	mov	QWORD PTR 8[rbx], rax
	jge	.L13
.L4:
	add	r13, 1
	cmp	DWORD PTR 0[rbp], r13d
	jle	.L1
.L5:
	mov	rbx, r13
	sal	rbx, 5
	add	rbx, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 28[rbx]
	call	ena_com_free_desc@PLT
	xor	edi, edi
	mov	r8d, eax
	mov	eax, DWORD PTR [rbx]
	sub	eax, 1
	cmp	eax, r8d
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L14
	mov	QWORD PTR 8[rbx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, 1
	call	counter_u64_add@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, r13d
	mov	rsi, r12
	call	device_printf@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 4[rsi]
	call	taskqueue_enqueue@PLT
	mov	QWORD PTR 8[rbx], 0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	check_for_empty_rx_ring, .-check_for_empty_rx_ring
	.comm	ENA_FLAG_TRIGGER_RESET,4,4
	.comm	ENA_FLAG_DEV_UP,4,4
	.comm	EMPTY_RX_REFILL,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_ena.c_check_for_empty_rx_ring.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"trigger refill for ring %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_for_empty_rx_ring, %function
check_for_empty_rx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	mov	r1, r0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, [r3]
	bl	ENA_FLAG_ISSET
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L12+4
	mov	r1, r6
	ldr	r0, [r3]
	bl	ENA_FLAG_ISSET
	subs	r5, r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r6]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r4, r5
	ldr	r7, .L12+8
	ldr	r8, .L12+12
	b	.L5
.L4:
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	add	r4, r4, #20
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r10, [r6, #8]
	add	r9, r10, r4
	ldr	r0, [r9, #16]
	bl	ena_com_free_desc
	ldr	r3, [r10, r4]
	sub	r3, r3, #1
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	streq	r0, [r9, #4]
	beq	.L4
	ldr	r3, [r9, #4]
	ldr	r2, [r7]
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r9, #4]
	blt	.L4
	mov	r1, #1
	ldr	r0, [r9, #12]
	bl	counter_u64_add
	mov	r2, r5
	mov	r1, r8
	ldr	r0, [r6, #4]
	bl	device_printf
	ldr	r1, [r9, #8]
	ldr	r0, [r1, #4]
	bl	taskqueue_enqueue
	mov	r3, #0
	str	r3, [r9, #4]
	b	.L4
.L13:
	.align	2
.L12:
	.word	ENA_FLAG_DEV_UP
	.word	ENA_FLAG_TRIGGER_RESET
	.word	EMPTY_RX_REFILL
	.word	.LC0
	.size	check_for_empty_rx_ring, .-check_for_empty_rx_ring
	.comm	ENA_FLAG_TRIGGER_RESET,4,4
	.comm	ENA_FLAG_DEV_UP,4,4
	.comm	EMPTY_RX_REFILL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
