	.file	"extr_de4x5.c_de4x5_rst_desc_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	de4x5_rst_desc_ring, @function
de4x5_rst_desc_ring:
.LFB0:
	.cfi_startproc
	endbr64
	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
	call	netdev_priv@PLT
	cmp	QWORD PTR 8[rax], 0
	jne	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	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 64[rax]
	mov	esi, DWORD PTR DE4X5_RRBA[rip]
	mov	rbx, rax
	call	outl@PLT
	movsx	rdx, DWORD PTR NUM_RX_DESC[rip]
	mov	rax, QWORD PTR 64[rbx]
	mov	esi, DWORD PTR DE4X5_TRBA[rip]
	lea	rdi, [rax+rdx*4]
	call	outl@PLT
	mov	edx, DWORD PTR [rbx]
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	test	edx, edx
	jle	.L3
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR R_OWN[rip]
	lea	r12, [rax+rbp*8]
	add	rbp, 1
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r12], rax
	cmp	DWORD PTR [rbx], ebp
	jg	.L4
.L3:
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L5
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbx]
	xor	edi, edi
	lea	r12, [rax+rbp*8]
	add	rbp, 1
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r12], rax
	cmp	DWORD PTR 4[rbx], ebp
	jg	.L6
.L5:
	xor	eax, eax
	call	barrier@PLT
	sub	QWORD PTR 8[rbx], 1
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	de4x5_rst_desc_ring, .-de4x5_rst_desc_ring
	.comm	STOP_DE4X5,4,4
	.comm	START_DE4X5,4,4
	.comm	R_OWN,4,4
	.comm	NUM_RX_DESC,4,4
	.comm	DE4X5_TRBA,4,4
	.comm	DE4X5_RRBA,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_de4x5.c_de4x5_rst_desc_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	de4x5_rst_desc_ring, %function
de4x5_rst_desc_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	netdev_priv
	ldr	r3, [r0, #8]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r4, r0
	mov	r5, #0
	ldr	r3, .L14
	ldr	r0, [r0, #36]
	ldr	r1, [r3]
	bl	outl
	ldr	r3, .L14+4
	ldr	r2, [r4, #36]
	ldr	r0, [r3]
	ldr	r3, .L14+8
	add	r0, r2, r0, lsl #2
	ldr	r1, [r3]
	bl	outl
	ldr	r3, [r4]
	str	r5, [r4, #28]
	cmp	r3, r5
	str	r5, [r4, #32]
	str	r5, [r4, #20]
	str	r5, [r4, #24]
	ble	.L3
	ldr	r7, .L14+12
.L4:
	ldr	r0, [r7]
	ldr	r6, [r4, #16]
	bl	cpu_to_le32
	ldr	r3, [r4]
	str	r0, [r6, r5, lsl #2]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L4
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L5
	mov	r5, #0
.L6:
	mov	r0, #0
	ldr	r6, [r4, #12]
	bl	cpu_to_le32
	ldr	r3, [r4, #4]
	str	r0, [r6, r5, lsl #2]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L6
.L5:
	bl	barrier
	ldr	r3, [r4, #8]
	sub	r3, r3, #1
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	DE4X5_RRBA
	.word	NUM_RX_DESC
	.word	DE4X5_TRBA
	.word	R_OWN
	.size	de4x5_rst_desc_ring, .-de4x5_rst_desc_ring
	.comm	STOP_DE4X5,4,4
	.comm	START_DE4X5,4,4
	.comm	R_OWN,4,4
	.comm	NUM_RX_DESC,4,4
	.comm	DE4X5_TRBA,4,4
	.comm	DE4X5_RRBA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
