	.file	"extr_xgene_enet_main.c_xgene_enet_process_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xgene_enet_process_ring, @function
xgene_enet_process_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 32[rdi]
	mov	rdi, rax
	mov	QWORD PTR 40[rsp], rax
	call	netdev_priv@PLT
	mov	DWORD PTR 32[rsp], 0
	mov	rbx, QWORD PTR 0[r13]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 8[r13]
	sub	rax, 1
	mov	QWORD PTR 8[rsp], rax
	lea	eax, -1[rbp]
	mov	QWORD PTR 16[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR 24[r13]
	lea	r15, [rax+rbx*4]
	mov	rdi, r15
	call	xgene_enet_is_desc_slot_empty@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L22
	xor	eax, eax
	add	rbx, 1
	add	r14d, 1
	call	dma_rmb@PLT
	mov	eax, DWORD PTR 32[rsp]
	mov	rdi, rbp
	add	eax, 1
	mov	DWORD PTR 36[rsp], eax
	call	is_rx_desc@PLT
	and	rbx, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L5
	mov	rdi, r13
	mov	rdx, r15
	mov	rsi, rbp
	call	xgene_enet_rx_frame@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	xgene_enet_mark_desc_slot_empty@PLT
	test	r15, r15
	je	.L23
	mov	rdi, r15
	call	xgene_enet_mark_desc_slot_empty@PLT
	add	DWORD PTR 32[rsp], 2
.L13:
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L2
.L25:
	lea	rax, 1[r12]
	cmp	QWORD PTR 16[rsp], r12
	je	.L2
	mov	r12, rax
.L9:
	mov	rax, QWORD PTR 24[r13]
	mov	r14d, r12d
	lea	rbp, [rax+rbx*4]
	mov	rdi, rbp
	call	xgene_enet_is_desc_slot_empty@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L2
	call	dma_rmb@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rbx, 1
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR NV[rip]
	mov	esi, eax
	call	GET_BIT@PLT
	and	rbx, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L24
	mov	rdi, rbp
	add	r14d, 1
	call	is_rx_desc@PLT
	test	rax, rax
	jne	.L15
	mov	rsi, rbp
	mov	rdi, r13
	call	xgene_enet_tx_completion@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	xgene_enet_mark_desc_slot_empty@PLT
	add	DWORD PTR 32[rsp], 1
	mov	ecx, 1
.L14:
	mov	rax, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 16[r13]
	mov	rax, QWORD PTR [rax]
	add	DWORD PTR [rax+rdx*4], ecx
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L25
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r15d, DWORD PTR 32[rsp]
	mov	edi, r15d
	call	likely@PLT
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR 24[rsp]
	mov	esi, r15d
	mov	rdi, r13
	neg	esi
	mov	rax, QWORD PTR 8[rax]
	call	[QWORD PTR [rax]]
	mov	rsi, QWORD PTR 16[r13]
	mov	rdi, QWORD PTR 40[rsp]
	mov	QWORD PTR 0[r13], rbx
	call	__netif_subqueue_stopped@PLT
	test	rax, rax
	jne	.L26
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r13
	call	xgene_enet_tx_completion@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	xgene_enet_mark_desc_slot_empty@PLT
	add	DWORD PTR 32[rsp], 2
	test	r15, r15
	je	.L27
	mov	rdi, r15
	call	xgene_enet_mark_desc_slot_empty@PLT
	mov	ecx, 2
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r13
	xor	edx, edx
	mov	rsi, rbp
	call	xgene_enet_rx_frame@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	xgene_enet_mark_desc_slot_empty@PLT
.L7:
	add	DWORD PTR 32[rsp], 1
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rsi, QWORD PTR 16[r13]
	mov	rdi, QWORD PTR 40[rsp]
	call	netif_start_subqueue@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	sub	rbx, 1
	and	rbx, QWORD PTR 8[rsp]
	jmp	.L2
.L23:
	mov	eax, DWORD PTR 36[rsp]
	mov	DWORD PTR 32[rsp], eax
	jmp	.L7
.L27:
	mov	ecx, 2
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	xgene_enet_process_ring, .-xgene_enet_process_ring
	.comm	NV,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_xgene_enet_main.c_xgene_enet_process_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgene_enet_process_ring, %function
xgene_enet_process_ring:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r0, [r0, #16]
	sub	sp, sp, #20
	mov	r5, #0
	str	r0, [sp, #12]
	str	r1, [sp]
	bl	netdev_priv
	ldm	r7, {r4, r10}
	mov	r9, r5
	str	r0, [sp, #4]
	sub	r10, r10, #1
	b	.L9
.L25:
	ldr	r2, [r7, #12]
	add	fp, r2, r4, lsl #2
	mov	r0, fp
	bl	xgene_enet_is_desc_slot_empty
	bl	unlikely
	cmp	r0, #0
	bne	.L24
	bl	dma_rmb
	mov	r0, r6
	bl	is_rx_desc
	add	r5, r8, #1
	add	r4, r4, #1
	add	r3, r9, #1
	cmp	r0, #0
	mov	r8, r5
	and	r4, r4, r10
	str	r3, [sp, #8]
	beq	.L5
	mov	r1, r6
	mov	r2, fp
	mov	r0, r7
	bl	xgene_enet_rx_frame
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	xgene_enet_mark_desc_slot_empty
	cmp	fp, #0
	ldreq	r9, [sp, #8]
	beq	.L7
	mov	r0, fp
	bl	xgene_enet_mark_desc_slot_empty
	add	r9, r9, #2
.L13:
	cmp	r6, #0
	bne	.L2
.L26:
	ldr	r3, [sp]
	cmp	r3, r5
	beq	.L2
.L9:
	ldr	fp, [r7, #12]
	mov	r8, r5
	add	r6, fp, r4, lsl #2
	mov	r0, r6
	bl	xgene_enet_is_desc_slot_empty
	bl	unlikely
	cmp	r0, #0
	bne	.L2
	bl	dma_rmb
	ldr	r3, .L30
	ldr	r0, [fp, r4, lsl #2]
	ldr	r5, [r3]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, r5
	bl	GET_BIT
	add	r4, r4, #1
	subs	fp, r0, #0
	and	r4, r4, r10
	bne	.L25
	mov	r0, r6
	bl	is_rx_desc
	add	r5, r8, #1
	cmp	r0, #0
	mov	r8, r5
	bne	.L15
	mov	r1, r6
	mov	r0, r7
	bl	xgene_enet_tx_completion
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	xgene_enet_mark_desc_slot_empty
	mov	r0, #1
	add	r9, r9, #1
.L14:
	ldr	r3, [sp, #4]
	ldr	r1, [r7, #8]
	ldr	r2, [r3]
	cmp	r6, #0
	ldr	r3, [r2, r1, lsl #2]
	add	r3, r3, r0
	str	r3, [r2, r1, lsl #2]
	beq	.L26
.L2:
	mov	r0, r9
	bl	likely
	cmp	r0, #0
	beq	.L1
.L29:
	ldr	r3, [sp, #4]
	rsb	r1, r9, #0
	ldr	r3, [r3, #4]
	mov	r0, r7
	ldr	r3, [r3]
	blx	r3
	ldr	r1, [r7, #8]
	ldr	r0, [sp, #12]
	str	r4, [r7]
	bl	__netif_subqueue_stopped
	cmp	r0, #0
	bne	.L27
.L1:
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r1, r6
	mov	r0, r7
	bl	xgene_enet_tx_completion
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	xgene_enet_mark_desc_slot_empty
	cmp	fp, #0
	add	r9, r9, #2
	beq	.L28
	mov	r0, fp
	bl	xgene_enet_mark_desc_slot_empty
	mov	r0, #2
	b	.L14
.L15:
	mov	r1, r6
	mov	r2, fp
	mov	r0, r7
	bl	xgene_enet_rx_frame
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	xgene_enet_mark_desc_slot_empty
.L7:
	add	r9, r9, #1
	b	.L13
.L27:
	ldr	r1, [r7, #8]
	ldr	r0, [sp, #12]
	bl	netif_start_subqueue
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r0, r9
	bl	likely
	sub	r4, r4, #1
	cmp	r0, #0
	and	r4, r4, r10
	beq	.L1
	b	.L29
.L28:
	mov	r0, #2
	b	.L14
.L31:
	.align	2
.L30:
	.word	NV
	.size	xgene_enet_process_ring, .-xgene_enet_process_ring
	.comm	NV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
