	.file	"extr_bf5xx-tdm-pcm.c_bf5xx_pcm_preallocate_dma_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate dma memory \t\t\tPlease increase uncached DMA memory region\n"
	.text
	.p2align 4
	.type	bf5xx_pcm_preallocate_dma_buffer, @function
bf5xx_pcm_preallocate_dma_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	rdx, esi
	mov	r12, QWORD PTR bf5xx_pcm_hardware[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	lea	rsi, 0[0+r12*4]
	mov	rbx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR SNDRV_DMA_TYPE_DEV[rip]
	mov	DWORD PTR 36[rbx], eax
	mov	rax, QWORD PTR [rdi]
	lea	rdx, 16[rbx]
	mov	edi, DWORD PTR [rax]
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 32[rbx], edi
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L7
	cmp	DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip], ebp
	mov	rdx, QWORD PTR sport_handle[rip]
	mov	QWORD PTR [rbx], r12
	je	.L8
	mov	QWORD PTR [rdx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR 8[rdx], rax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	bf5xx_pcm_preallocate_dma_buffer, .-bf5xx_pcm_preallocate_dma_buffer
	.comm	sport_handle,8,8
	.comm	bf5xx_pcm_hardware,8,8
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_DMA_TYPE_DEV,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_bf5xx-tdm-pcm.c_bf5xx_pcm_preallocate_dma_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate dma memory \011\011\011Please in"
	.ascii	"crease uncached DMA memory region\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bf5xx_pcm_preallocate_dma_buffer, %function
bf5xx_pcm_preallocate_dma_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldm	r0, {r1, ip}
	mov	r5, #0
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r4, [ip, r6, lsl #2]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r7, [r3]
	ldr	r3, .L8+8
	str	r2, [r4, #20]
	ldr	r3, [r3]
	str	r0, [r4, #16]
	str	r5, [r4, #12]
	add	r2, r4, #8
	lsl	r1, r7, #2
	bl	dma_alloc_coherent
	cmp	r0, r5
	str	r0, [r4, #4]
	beq	.L7
	mov	r3, r0
	ldr	r2, .L8+12
	str	r7, [r4]
	ldr	r1, [r2]
	ldr	r2, .L8+16
	cmp	r1, r6
	ldr	r2, [r2]
	streq	r0, [r2, #4]
	strne	r3, [r2]
	moveq	r0, r5
	movne	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L8+20
	bl	pr_err
	ldr	r3, .L8+24
	ldr	r5, [r3]
	rsb	r0, r5, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	bf5xx_pcm_hardware
	.word	SNDRV_DMA_TYPE_DEV
	.word	GFP_KERNEL
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	sport_handle
	.word	.LC0
	.word	ENOMEM
	.size	bf5xx_pcm_preallocate_dma_buffer, .-bf5xx_pcm_preallocate_dma_buffer
	.comm	sport_handle,4,4
	.comm	bf5xx_pcm_hardware,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_DMA_TYPE_DEV,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
