	.file	"extr_kirkwood-dma.c_kirkwood_dma_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kirkwood_dma_new, @function
kirkwood_dma_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR [rdi]
	mov	edi, 32
	mov	r12, QWORD PTR [rax]
	call	DMA_BIT_MASK@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, eax
	call	dma_coerce_mask_and_coherent@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR [rax+rsi*8], 0
	jne	.L7
	mov	rsi, QWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	cmp	QWORD PTR [rax+rsi*8], 0
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	kirkwood_dma_preallocate_dma_buffer@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	cmp	QWORD PTR [rax+rsi*8], 0
	je	.L1
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	kirkwood_dma_preallocate_dma_buffer@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r12d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	kirkwood_dma_new, .-kirkwood_dma_new
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.comm	SNDRV_PCM_STREAM_CAPTURE,8,8
	.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_kirkwood-dma.c_kirkwood_dma_new.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kirkwood_dma_new, %function
kirkwood_dma_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r2, [r2]
	mov	r0, #32
	ldr	r5, [r2]
	ldr	r4, [r3]
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	dma_coerce_mask_and_coherent
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L13
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, [r3, r1, lsl #2]
	cmp	r2, #0
	bne	.L12
.L3:
	ldr	r2, .L13+4
	ldr	r1, [r2]
	ldr	r0, [r3, r1, lsl #2]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	kirkwood_dma_preallocate_dma_buffer
.L12:
	mov	r0, r4
	bl	kirkwood_dma_preallocate_dma_buffer
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r4]
	b	.L3
.L14:
	.align	2
.L13:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	SNDRV_PCM_STREAM_CAPTURE
	.size	kirkwood_dma_new, .-kirkwood_dma_new
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
