	.file	"extr_at_hdmac.c_atc_is_tx_complete.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"is_tx_complete: %d (d%d, u%d)\n"
	.text
	.p2align 4
	.type	atc_is_tx_complete, @function
atc_is_tx_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rcx
	call	to_at_dma_chan@PLT
	mov	rbp, rax
	test	r14, r14
	je	.L2
	mov	r15d, DWORD PTR [r14]
.L2:
	xor	r14d, r14d
	test	r12, r12
	je	.L3
	mov	r14d, DWORD PTR [r12]
.L3:
	mov	rdi, rbx
	call	chan2dev@PLT
	mov	r8d, r15d
	mov	ecx, r14d
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_vdbg@PLT
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	r15d, DWORD PTR 4[rbp]
	mov	r14d, DWORD PTR [rbx]
	mov	edi, r13d
	mov	edx, r14d
	mov	esi, r15d
	call	dma_async_is_complete@PLT
	cmp	eax, DWORD PTR DMA_SUCCESS[rip]
	je	.L20
	mov	rdi, rbp
	call	atc_cleanup_descriptors@PLT
	mov	r15d, DWORD PTR 4[rbp]
	mov	r14d, DWORD PTR [rbx]
	mov	edi, r13d
	mov	edx, r14d
	mov	esi, r15d
	call	dma_async_is_complete@PLT
.L20:
	mov	rdi, rbp
	mov	r13d, eax
	call	spin_unlock_bh@PLT
	test	r12, r12
	je	.L6
	mov	DWORD PTR [r12], r15d
.L6:
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rax], r14d
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	atc_is_tx_complete, .-atc_is_tx_complete
	.comm	DMA_SUCCESS,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_at_hdmac.c_atc_is_tx_complete.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"is_tx_complete: %d (d%d, u%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atc_is_tx_complete, %function
atc_is_tx_complete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	mov	r5, r3
	mov	r6, r2
	mov	r7, r1
	mov	r8, r0
	bl	to_at_dma_chan
	mov	r4, r0
	mov	r0, r8
	bl	chan2dev
	cmp	r6, #0
	ldrne	r3, [r6]
	moveq	r3, r6
	cmp	r5, #0
	moveq	r2, r5
	ldrne	r2, [r5]
	ldr	r1, .L19
	str	r2, [sp]
	mov	r2, r7
	bl	dev_vdbg
	mov	r0, r4
	bl	spin_lock_bh
	ldr	r10, [r4, #4]
	ldr	r9, [r8]
	mov	r1, r10
	mov	r2, r9
	mov	r0, r7
	bl	dma_async_is_complete
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L17
	mov	r0, r4
	bl	atc_cleanup_descriptors
	ldr	r9, [r8]
	ldr	r10, [r4, #4]
	mov	r0, r7
	mov	r2, r9
	mov	r1, r10
	bl	dma_async_is_complete
.L17:
	mov	r7, r0
	mov	r0, r4
	bl	spin_unlock_bh
	mov	r0, r7
	cmp	r6, #0
	strne	r10, [r6]
	cmp	r5, #0
	strne	r9, [r5]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	DMA_SUCCESS
	.size	atc_is_tx_complete, .-atc_is_tx_complete
	.comm	DMA_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
