	.file	"extr_cpsw.c_cpsw_tx_mq_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cpsw_tx_mq_poll, @function
cpsw_tx_mq_poll:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	call	napi_to_cpsw@PLT
	mov	edi, DWORD PTR 16[rax]
	mov	QWORD PTR [rsp], rax
	call	cpdma_ctrl_txchs_state@PLT
	mov	r15d, eax
	and	r15d, 255
	je	.L2
	mov	ebx, eax
	xor	ebp, ebp
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L6:
	test	bl, -128
	je	.L3
	mov	rax, QWORD PTR [rsp]
	mov	r14d, r12d
	xor	edi, edi
	sub	r14d, r15d
	mov	r13, QWORD PTR 8[rax]
	add	r13, rbp
	cmp	DWORD PTR 0[r13], r14d
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L4
	mov	r14d, DWORD PTR 0[r13]
.L4:
	mov	edi, DWORD PTR 4[r13]
	mov	esi, r14d
	call	cpdma_chan_process@PLT
	add	r15d, eax
	cmp	r12d, r15d
	jle	.L1
.L3:
	add	ebx, ebx
	add	rbp, 8
	test	bl, -2
	jne	.L6
.L2:
	cmp	r12d, r15d
	jg	.L16
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L16:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	call	napi_complete@PLT
	mov	rax, QWORD PTR [rsp]
	mov	edi, 255
	mov	rsi, QWORD PTR [rax]
	call	writel@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cpsw_tx_mq_poll, .-cpsw_tx_mq_poll
	.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_cpsw.c_cpsw_tx_mq_poll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpsw_tx_mq_poll, %function
cpsw_tx_mq_poll:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r8, r1
	str	r0, [sp, #4]
	bl	napi_to_cpsw
	mov	r10, r0
	ldr	r0, [r0, #8]
	bl	cpdma_ctrl_txchs_state
	ands	r6, r0, #255
	beq	.L2
	mov	r5, #0
	mov	r4, r0
	mov	r6, r5
.L6:
	tst	r4, #128
	sub	r7, r8, r6
	lsl	r4, r4, #1
	beq	.L3
	ldr	r9, [r10, #4]
	ldr	r0, [r9, r5]
	add	fp, r9, r5
	cmp	r0, r7
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	ldreq	r7, [r9, r5]
	ldr	r0, [fp, #4]
	mov	r1, r7
	bl	cpdma_chan_process
	add	r6, r6, r0
	cmp	r8, r6
	ble	.L1
.L3:
	tst	r4, #254
	add	r5, r5, #8
	bne	.L6
.L2:
	cmp	r8, r6
	bgt	.L16
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r0, [sp, #4]
	bl	napi_complete
	ldr	r1, [r10]
	mov	r0, #255
	bl	writel
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	cpsw_tx_mq_poll, .-cpsw_tx_mq_poll
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
