	.file	"extr_pch_dma.c_pd_alloc_chan_resources.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DMA channel not idle ?\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Only allocated %d initial descriptors\n"
	.text
	.p2align 4
	.type	pd_alloc_chan_resources, @function
pd_alloc_chan_resources:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	to_pd_chan@PLT
	mov	edi, DWORD PTR tmp_list[rip]
	mov	r12, rax
	call	LIST_HEAD@PLT
	mov	rdi, r12
	call	pdc_is_idle@PLT
	test	eax, eax
	je	.L14
	lea	r14, 8[r12]
	mov	rdi, r14
	call	list_empty@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR init_nr_desc_per_channel[rip]
	xor	ebx, ebx
	lea	r13, tmp_list[rip]
	test	eax, eax
	jg	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r13
	add	ebx, 1
	call	list_add_tail@PLT
	cmp	DWORD PTR init_nr_desc_per_channel[rip], ebx
	jle	.L6
.L5:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	call	pdc_alloc_desc@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L7
	mov	rdi, rbp
	call	chan2dev@PLT
	mov	edx, ebx
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	dev_warn@PLT
.L6:
	lea	r13, 4[r12]
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	rsi, r14
	lea	rdi, tmp_list[rip]
	call	list_splice@PLT
	mov	DWORD PTR [r12], ebx
	mov	rdi, rbp
	call	dma_cookie_init@PLT
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	pdc_enable_irq@PLT
.L12:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR [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
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	chan2dev@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pd_alloc_chan_resources, .-pd_alloc_chan_resources
	.comm	tmp_list,4,4
	.comm	init_nr_desc_per_channel,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EIO,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_pch_dma.c_pd_alloc_chan_resources.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA channel not idle ?\012\000"
	.align	2
.LC1:
	.ascii	"Only allocated %d initial descriptors\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pd_alloc_chan_resources, %function
pd_alloc_chan_resources:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	bl	to_pd_chan
	mov	r7, r0
	ldr	r6, .L14
	ldr	r0, [r6]
	bl	LIST_HEAD
	mov	r0, r7
	bl	pdc_is_idle
	cmp	r0, #0
	beq	.L13
	add	r10, r7, #8
	mov	r0, r10
	bl	list_empty
	cmp	r0, #0
	beq	.L11
	ldr	r8, .L14+4
	mov	r4, #0
	ldr	r3, [r8]
	cmp	r3, #0
	ldrgt	r9, .L14+8
	bgt	.L5
	b	.L6
.L7:
	mov	r1, r6
	bl	list_add_tail
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L6
.L5:
	mov	r0, r5
	ldr	r1, [r9]
	bl	pdc_alloc_desc
	cmp	r0, #0
	bne	.L7
	mov	r0, r5
	bl	chan2dev
	mov	r2, r4
	ldr	r1, .L14+12
	bl	dev_warn
.L6:
	add	r6, r7, #4
	mov	r0, r6
	bl	spin_lock_irq
	mov	r1, r10
	ldr	r0, .L14
	bl	list_splice
	mov	r0, r5
	str	r4, [r7]
	bl	dma_cookie_init
	mov	r0, r6
	bl	spin_unlock_irq
	mov	r0, r5
	mov	r1, #1
	bl	pdc_enable_irq
.L11:
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r0, r5
	bl	chan2dev
	ldr	r1, .L14+16
	bl	dev_dbg
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	tmp_list
	.word	init_nr_desc_per_channel
	.word	GFP_KERNEL
	.word	.LC1
	.word	.LC0
	.word	EIO
	.size	pd_alloc_chan_resources, .-pd_alloc_chan_resources
	.comm	tmp_list,4,4
	.comm	init_nr_desc_per_channel,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
