	.file	"extr_sundance.c_tx_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tx_poll, @function
tx_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	netdev_priv@PLT
	mov	ebp, DWORD PTR TX_RING_SIZE[rip]
	mov	r8d, DWORD PTR 4[rax]
	mov	ebx, DWORD PTR [rax]
	mov	r12, rax
	mov	rsi, QWORD PTR 32[rax]
	mov	eax, r8d
	sub	eax, ebx
	test	eax, eax
	jle	.L2
	mov	r14, QWORD PTR 24[r12]
	mov	ecx, ebp
	mov	eax, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR TX_RING_SIZE[rip]
	mov	rsi, QWORD PTR 32[r12]
	mov	r14, r13
.L5:
	cdq
	idiv	ecx
	movsx	rdi, edx
	sal	rdi, 3
	lea	r13, [rsi+rdi]
	test	r14, r14
	je	.L3
	add	rdi, QWORD PTR 16[r12]
	call	cpu_to_le32@PLT
	mov	r8d, DWORD PTR 4[r12]
	mov	DWORD PTR 4[r14], eax
.L3:
	mov	eax, DWORD PTR [r12]
	mov	edx, r8d
	mov	QWORD PTR 24[r12], r13
	add	eax, 1
	sub	edx, eax
	mov	DWORD PTR [r12], eax
	test	edx, edx
	jg	.L12
.L4:
	mov	rdi, QWORD PTR DescIntrOnTx[rip]
	call	cpu_to_le32@PLT
	or	DWORD PTR 0[r13], eax
	mov	rdi, QWORD PTR TxListPtr[rip]
	add	rdi, QWORD PTR 8[r12]
	call	ioread32@PLT
	test	rax, rax
	je	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, ebx
	mov	rsi, QWORD PTR TxListPtr[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	cdq
	add	rsi, QWORD PTR 8[r12]
	idiv	ebp
	mov	rax, QWORD PTR 16[r12]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	lea	rdi, [rax+rdx*8]
	jmp	iowrite32@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	eax, -1[r8]
	cdq
	idiv	ebp
	movsx	rax, edx
	lea	r13, [rsi+rax*8]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tx_poll, .-tx_poll
	.comm	TxListPtr,8,8
	.comm	TX_RING_SIZE,4,4
	.comm	DescIntrOnTx,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_sundance.c_tx_poll.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tx_poll, %function
tx_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	netdev_priv
	ldr	r10, [r0]
	ldr	r8, [r0, #4]
	ldr	r9, .L13
	sub	r3, r8, r10
	cmp	r3, #0
	mov	r5, r0
	ldr	r6, [r0, #20]
	ldr	fp, [r9]
	ble	.L2
	mov	r4, r10
	mov	r1, fp
	ldr	r7, [r0, #16]
	b	.L5
.L12:
	mov	r7, r6
	ldr	r1, [r9]
	ldr	r6, [r5, #20]
.L5:
	mov	r0, r4
	bl	__aeabi_idivmod
	cmp	r7, #0
	add	r6, r6, r1, lsl #3
	lsl	r1, r1, #3
	beq	.L3
	ldr	r0, [r5, #12]
	add	r0, r1, r0
	bl	cpu_to_le32
	ldm	r5, {r4, r8}
	str	r0, [r7, #4]
.L3:
	add	r4, r4, #1
	sub	r3, r8, r4
	cmp	r3, #0
	str	r4, [r5]
	str	r6, [r5, #16]
	bgt	.L12
.L4:
	ldr	r3, .L13+4
	ldr	r4, .L13+8
	ldr	r0, [r3]
	bl	cpu_to_le32
	ldr	r3, [r6]
	ldr	r2, [r4]
	orr	r3, r3, r0
	ldr	r0, [r5, #8]
	str	r3, [r6]
	add	r0, r0, r2
	bl	ioread32
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r4]
	ldr	r4, [r5, #8]
	mov	r1, fp
	mov	r0, r10
	add	r4, r4, r3
	bl	__aeabi_idivmod
	mov	r0, r1
	ldr	r3, [r5, #12]
	mov	r1, r4
	add	r0, r3, r0, lsl #3
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	iowrite32
.L2:
	mov	r1, fp
	sub	r0, r8, #1
	bl	__aeabi_idivmod
	add	r6, r6, r1, lsl #3
	b	.L4
.L14:
	.align	2
.L13:
	.word	TX_RING_SIZE
	.word	DescIntrOnTx
	.word	TxListPtr
	.size	tx_poll, .-tx_poll
	.comm	TxListPtr,4,4
	.comm	TX_RING_SIZE,4,4
	.comm	DescIntrOnTx,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
