	.file	"extr_r8169.c_rtl8169_rx_fill.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl8169_rx_fill, @function
rtl8169_rx_fill:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR NUM_RX_DESC[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rsi, QWORD PTR [rdi]
	test	eax, eax
	je	.L2
	mov	r12, rdi
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR NUM_RX_DESC[rip]
	add	ebx, 1
	cmp	eax, ebx
	jbe	.L10
.L6:
	mov	rax, QWORD PTR 8[r12]
	mov	ebp, ebx
	cmp	QWORD PTR [rax+rbp*8], 0
	jne	.L3
	add	rsi, rbp
	mov	rdi, r12
	call	rtl8169_alloc_rx_data@PLT
	test	rax, rax
	je	.L11
	mov	rdx, QWORD PTR 8[r12]
	add	ebx, 1
	mov	rsi, QWORD PTR [r12]
	mov	QWORD PTR [rdx+rbp*8], rax
	mov	eax, DWORD PTR NUM_RX_DESC[rip]
	cmp	eax, ebx
	ja	.L6
.L10:
	add	rsi, rax
.L2:
	lea	rdi, -1[rsi]
	call	rtl8169_mark_as_last_descriptor@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	add	rdi, rbp
	call	rtl8169_make_unusable_by_asic@PLT
	mov	rdi, r12
	call	rtl8169_rx_clear@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	rtl8169_rx_fill, .-rtl8169_rx_fill
	.comm	NUM_RX_DESC,4,4
	.comm	ENOMEM,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_r8169.c_rtl8169_rx_fill.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8169_rx_fill, %function
rtl8169_rx_fill:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L13
	ldr	r1, [r0]
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L7
	mov	r5, r0
	mov	r4, #0
	b	.L6
.L3:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L7
.L6:
	ldr	r2, [r5, #4]
	lsl	r6, r4, #2
	ldr	r2, [r2, r4, lsl #2]
	cmp	r2, #0
	bne	.L3
	mov	r0, r5
	add	r1, r4, r1
	bl	rtl8169_alloc_rx_data
	cmp	r0, #0
	beq	.L12
	ldm	r5, {r1, r3}
	str	r0, [r3, r6]
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L6
.L7:
	add	r0, r3, r1
	sub	r0, r0, #1
	bl	rtl8169_mark_as_last_descriptor
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, [r5]
	add	r0, r4, r0
	bl	rtl8169_make_unusable_by_asic
	mov	r0, r5
	bl	rtl8169_rx_clear
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	NUM_RX_DESC
	.word	ENOMEM
	.size	rtl8169_rx_fill, .-rtl8169_rx_fill
	.comm	NUM_RX_DESC,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
