	.file	"extr_pxa2xx-pcm.c_pxa2xx_pcm_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pxa2xx_pcm_open, @function
pxa2xx_pcm_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 16[rdi]
	mov	r13, QWORD PTR 8[rdi]
	call	__pxa2xx_pcm_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	mov	rcx, rbp
	cmp	QWORD PTR 0[rbp], rdx
	mov	r13, QWORD PTR 0[r13]
	cmovne	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR pxa2xx_pcm_dma_irq[rip]
	mov	esi, DWORD PTR DMA_PRIO_LOW[rip]
	mov	QWORD PTR 8[r13], rax
	mov	edi, DWORD PTR [rax]
	call	pxa_request_dma@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	DWORD PTR 0[r13], eax
	mov	rdi, rbp
	call	[QWORD PTR [rbx]]
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR 0[r13]
	call	pxa_free_dma@PLT
.L4:
	mov	rdi, rbp
	call	__pxa2xx_pcm_close@PLT
.L2:
	endbr64
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pxa2xx_pcm_open, .-pxa2xx_pcm_open
	.comm	pxa2xx_pcm_dma_irq,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.comm	DMA_PRIO_LOW,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_pxa2xx-pcm.c_pxa2xx_pcm_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxa2xx_pcm_open, %function
pxa2xx_pcm_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldmib	r0, {r6, r7}
	mov	r5, r0
	bl	__pxa2xx_pcm_open
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L10
	ldr	r0, [r5]
	ldr	r1, [r3]
	ldr	r2, [r7, #4]
	cmp	r0, r1
	ldr	r3, [r7, #8]
	movne	r3, r2
	ldr	r6, [r6]
	ldr	r2, .L10+4
	ldr	r1, .L10+8
	ldr	r0, [r3]
	str	r3, [r6, #4]
	ldr	r2, [r2]
	mov	r3, r5
	ldr	r1, [r1]
	bl	pxa_request_dma
	subs	r4, r0, #0
	blt	.L4
	str	r4, [r6]
	mov	r0, r5
	ldr	r3, [r7]
	blx	r3
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r6]
	bl	pxa_free_dma
.L4:
	mov	r0, r5
	bl	__pxa2xx_pcm_close
.L2:
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	pxa2xx_pcm_dma_irq
	.word	DMA_PRIO_LOW
	.size	pxa2xx_pcm_open, .-pxa2xx_pcm_open
	.comm	pxa2xx_pcm_dma_irq,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	DMA_PRIO_LOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
