	.file	"extr_sgiseeq.c_setup_tx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_tx_ring, @function
setup_tx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edx
	call	netdev_priv@PLT
	mov	r12, rax
	cmp	ebx, 1
	jle	.L4
	mov	eax, ebx
	mov	rbx, r15
	sub	eax, 2
	sal	rax, 4
	lea	r14, 16[r15+rax]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbp, rbx
	add	rbx, 16
	mov	rdi, r12
	mov	rsi, rbx
	call	VIRT_TO_DMA@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rsi, rbp
	mov	rdi, r13
	mov	QWORD PTR 0[rbp], rax
	call	dma_sync_desc_dev@PLT
	cmp	rbx, r14
	jne	.L3
	mov	ebp, DWORD PTR 12[rsp]
	sub	ebp, 1
	movsx	rbp, ebp
	sal	rbp, 4
	add	rbp, r15
.L2:
	mov	rsi, r15
	mov	rdi, r12
	call	VIRT_TO_DMA@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	QWORD PTR 0[rbp], rax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	dma_sync_desc_dev@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rbp, r15
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	setup_tx_ring, .-setup_tx_ring
	.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_sgiseeq.c_setup_tx_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_tx_ring, %function
setup_tx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r2
	mov	r9, r1
	mov	r5, r0
	bl	netdev_priv
	cmp	r7, #1
	mov	r6, r0
	ble	.L4
	mov	r10, #0
	add	r4, r9, #8
	add	r8, r9, r7, lsl #3
.L3:
	mov	r1, r4
	mov	r0, r6
	bl	VIRT_TO_DMA
	sub	r1, r4, #8
	stmdb	r4, {r0, r10}
	mov	r0, r5
	add	r4, r4, #8
	bl	dma_sync_desc_dev
	cmp	r4, r8
	bne	.L3
	sub	r7, r7, #1
	add	r7, r9, r7, lsl #3
.L2:
	mov	r1, r9
	mov	r0, r6
	bl	VIRT_TO_DMA
	mov	r1, r7
	str	r0, [r7]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	dma_sync_desc_dev
.L4:
	mov	r7, r9
	b	.L2
	.size	setup_tx_ring, .-setup_tx_ring
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
