	.file	"extr_amba-pl08x.c_pl08x_start_next_txd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pl08x_start_next_txd, @function
pl08x_start_next_txd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	add	rdi, 8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 16[rdi]
	mov	rbx, QWORD PTR 8[rdi]
	call	vchan_next_desc@PLT
	mov	rdi, rax
	call	to_pl08x_txd@PLT
	mov	rbp, rax
	lea	rdi, 16[rax]
	call	list_del@PLT
	mov	QWORD PTR 0[r13], rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	cpu_relax@PLT
.L2:
	mov	rdi, rbx
	call	pl08x_phy_channel_busy@PLT
	test	rax, rax
	jne	.L3
	mov	rdx, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rsi, rbx
	mov	rdi, r12
	call	pl08x_write_lli@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	call	cpu_relax@PLT
.L4:
	mov	rdi, QWORD PTR PL080_EN_CHAN[rip]
	add	rdi, QWORD PTR [r12]
	call	readl@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	ebp, eax
	call	BIT@PLT
	test	ebp, eax
	jne	.L5
	cmp	QWORD PTR 16[rbx], 0
	mov	rdi, QWORD PTR [rbx]
	je	.L19
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [rbx]
.L18:
	call	readl@PLT
	test	DWORD PTR FTDMAC020_CH_CFG_BUSY[rip], eax
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	edi, DWORD PTR FTDMAC020_CH_CSR_EN[rip]
	test	edi, eax
	jne	.L8
	mov	rsi, QWORD PTR 8[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	or	edi, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
.L19:
	call	readl@PLT
	test	DWORD PTR PL080_CONFIG_ACTIVE[rip], eax
	jne	.L12
	mov	edi, DWORD PTR PL080_CONFIG_ENABLE[rip]
	test	edi, eax
	jne	.L12
	mov	rsi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	or	edi, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.cfi_endproc
.LFE0:
	.size	pl08x_start_next_txd, .-pl08x_start_next_txd
	.comm	PL080_EN_CHAN,8,8
	.comm	PL080_CONFIG_ENABLE,4,4
	.comm	PL080_CONFIG_ACTIVE,4,4
	.comm	FTDMAC020_CH_CSR_EN,4,4
	.comm	FTDMAC020_CH_CFG_BUSY,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_amba-pl08x.c_pl08x_start_next_txd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pl08x_start_next_txd, %function
pl08x_start_next_txd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	add	r0, r0, #4
	ldr	r6, [r7, #12]
	ldr	r4, [r7, #8]
	bl	vchan_next_desc
	bl	to_pl08x_txd
	mov	r5, r0
	add	r0, r0, #8
	bl	list_del
	str	r5, [r7]
	b	.L2
.L3:
	bl	cpu_relax
.L2:
	mov	r0, r4
	bl	pl08x_phy_channel_busy
	cmp	r0, #0
	bne	.L3
	mov	r1, r4
	mov	r0, r6
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	bl	pl08x_write_lli
	ldr	r7, .L19
	b	.L4
.L5:
	bl	cpu_relax
.L4:
	ldr	r3, [r7]
	ldr	r0, [r6]
	add	r0, r0, r3
	bl	readl
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	BIT
	tst	r5, r0
	bne	.L5
	ldr	r3, [r4, #8]
	ldr	r0, [r4]
	cmp	r3, #0
	beq	.L6
	bl	readl
	ldr	r5, .L19+4
	ldr	r3, [r5]
	tst	r0, r3
	beq	.L10
.L7:
	ldr	r0, [r4]
	bl	readl
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L7
.L10:
	ldr	r0, [r4, #4]
	bl	readl
	ldr	r5, .L19+8
	ldr	r3, [r5]
	tst	r0, r3
	beq	.L9
.L8:
	ldr	r0, [r4, #4]
	bl	readl
	ldr	r3, [r5]
	tst	r3, r0
	bne	.L8
.L9:
	ldr	r1, [r4, #4]
	orr	r0, r3, r0
	pop	{r4, r5, r6, r7, r8, lr}
	b	writel
.L6:
	bl	readl
	ldr	r5, .L19+12
	ldr	r6, .L19+16
	b	.L11
.L12:
	ldr	r0, [r4]
	bl	readl
.L11:
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L12
	ldr	r3, [r6]
	tst	r3, r0
	bne	.L12
	ldr	r1, [r4]
	orr	r0, r3, r0
	pop	{r4, r5, r6, r7, r8, lr}
	b	writel
.L20:
	.align	2
.L19:
	.word	PL080_EN_CHAN
	.word	FTDMAC020_CH_CFG_BUSY
	.word	FTDMAC020_CH_CSR_EN
	.word	PL080_CONFIG_ACTIVE
	.word	PL080_CONFIG_ENABLE
	.size	pl08x_start_next_txd, .-pl08x_start_next_txd
	.comm	PL080_EN_CHAN,4,4
	.comm	PL080_CONFIG_ENABLE,4,4
	.comm	PL080_CONFIG_ACTIVE,4,4
	.comm	FTDMAC020_CH_CSR_EN,4,4
	.comm	FTDMAC020_CH_CFG_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
