	.file	"extr_sirf-dma.c_sirfsoc_dma_alloc_chan_resources.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Memory allocation error. Allocated only %u descriptors\n"
	.text
	.p2align 4
	.type	sirfsoc_dma_alloc_chan_resources, @function
sirfsoc_dma_alloc_chan_resources:
.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
	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, 8
	.cfi_def_cfa_offset 64
	call	dma_chan_to_sirfsoc_dma@PLT
	mov	rdi, rbx
	mov	r14, rax
	call	dma_chan_to_sirfsoc_dma_chan@PLT
	mov	edi, DWORD PTR descs[rip]
	mov	r15, rax
	call	LIST_HEAD@PLT
	mov	edi, DWORD PTR [r14]
	call	pm_runtime_get_sync@PLT
	mov	eax, DWORD PTR SIRFSOC_DMA_DESCRIPTORS[rip]
	test	eax, eax
	jle	.L2
	xor	r12d, r12d
	lea	r13, descs[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, 4[rax]
	mov	rsi, rbx
	add	r12d, 1
	call	dma_async_tx_descriptor_init@PLT
	mov	eax, DWORD PTR DMA_CTRL_ACK[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR sirfsoc_dma_tx_submit[rip]
	mov	DWORD PTR 4[rbp], eax
	call	list_add_tail@PLT
	cmp	DWORD PTR SIRFSOC_DMA_DESCRIPTORS[rip], r12d
	jle	.L4
.L5:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 12
	call	kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR [r14]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	dev_notice@PLT
	test	r12d, r12d
	jne	.L4
.L2:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	xor	ebp, ebp
	mov	rdi, r15
	mov	rsi, rbp
	call	spin_lock_irqsave@PLT
	lea	rsi, 4[r15]
	lea	rdi, descs[rip]
	call	list_splice_tail_init@PLT
	mov	rsi, rbp
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sirfsoc_dma_alloc_chan_resources, .-sirfsoc_dma_alloc_chan_resources
	.comm	sirfsoc_dma_tx_submit,4,4
	.comm	descs,4,4
	.comm	SIRFSOC_DMA_DESCRIPTORS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_CTRL_ACK,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_sirf-dma.c_sirfsoc_dma_alloc_chan_resources.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Memory allocation error. Allocated only %u descript"
	.ascii	"ors\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sirfsoc_dma_alloc_chan_resources, %function
sirfsoc_dma_alloc_chan_resources:
	@ 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	r5, r0
	bl	dma_chan_to_sirfsoc_dma
	mov	r3, r0
	mov	r0, r5
	mov	r4, r3
	str	r3, [sp]
	bl	dma_chan_to_sirfsoc_dma_chan
	mov	fp, r0
	ldr	r6, .L13
	ldr	r7, .L13+4
	ldr	r0, [r6]
	str	fp, [sp, #4]
	bl	LIST_HEAD
	ldr	r0, [r4]
	bl	pm_runtime_get_sync
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r8, .L13+8
	ldr	r10, .L13+12
	ldr	r9, .L13+16
	b	.L5
.L3:
	mov	r1, r5
	bl	dma_async_tx_descriptor_init
	ldr	r1, [r10]
	ldr	r2, [r9]
	str	r1, [fp, #8]
	mov	r0, fp
	mov	r1, r6
	str	r2, [fp, #4]
	bl	list_add_tail
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L5:
	mov	r0, #12
	ldr	r1, [r8]
	bl	kzalloc
	subs	fp, r0, #0
	add	r0, fp, #4
	bne	.L3
	ldr	r3, [sp]
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L13+20
	bl	dev_notice
	cmp	r4, #0
	bne	.L4
.L2:
	ldr	r3, .L13+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r5, #0
	ldr	r6, [sp, #4]
	mov	r1, r5
	mov	r0, r6
	bl	spin_lock_irqsave
	add	r1, r6, #4
	ldr	r0, .L13
	bl	list_splice_tail_init
	mov	r1, r5
	mov	r0, r6
	bl	spin_unlock_irqrestore
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	descs
	.word	SIRFSOC_DMA_DESCRIPTORS
	.word	GFP_KERNEL
	.word	DMA_CTRL_ACK
	.word	sirfsoc_dma_tx_submit
	.word	.LC0
	.word	ENOMEM
	.size	sirfsoc_dma_alloc_chan_resources, .-sirfsoc_dma_alloc_chan_resources
	.comm	sirfsoc_dma_tx_submit,4,4
	.comm	descs,4,4
	.comm	SIRFSOC_DMA_DESCRIPTORS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_CTRL_ACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
