	.file	"extr_ice1724.c_snd_vt1724_playback_indep_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_vt1724_playback_indep_open, @function
snd_vt1724_playback_indep_open:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	snd_pcm_substream_chip@PLT
	mov	r14, QWORD PTR 8[rbp]
	lea	r13, 8[rax]
	mov	r12, rax
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 16[r12]
	mov	rdi, r13
	cmp	QWORD PTR [rax+rdx*8], 0
	jne	.L6
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR vt1724_playback_dma_regs[rip]
	mov	rdi, rbp
	lea	rdx, [rdx+rax*4]
	mov	QWORD PTR 8[r14], rdx
	mov	rdx, QWORD PTR [r12]
	mov	QWORD PTR [rdx+rax*8], rbp
	mov	eax, DWORD PTR snd_vt1724_2ch_stereo[rip]
	mov	DWORD PTR [r14], eax
	call	snd_pcm_set_sync@PLT
	mov	rdi, r14
	mov	ecx, 24
	xor	esi, esi
	mov	edx, 32
	call	snd_pcm_hw_constraint_msbits@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	set_rate_constraints@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L6:
	.cfi_restore_state
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.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	snd_vt1724_playback_indep_open, .-snd_vt1724_playback_indep_open
	.comm	vt1724_playback_dma_regs,8,8
	.comm	snd_vt1724_2ch_stereo,4,4
	.comm	EBUSY,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_ice1724.c_snd_vt1724_playback_indep_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_vt1724_playback_indep_open, %function
snd_vt1724_playback_indep_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	snd_pcm_substream_chip
	mov	r5, r0
	add	r7, r0, #4
	mov	r0, r7
	ldr	r8, [r4, #4]
	bl	mutex_lock
	ldr	r2, [r4]
	ldr	r3, [r5, #8]
	mov	r0, r7
	ldr	r6, [r3, r2, lsl #2]
	cmp	r6, #0
	bne	.L6
	bl	mutex_unlock
	ldr	r3, .L7
	ldr	r1, .L7+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r5]
	ldr	r1, [r1]
	add	r3, r3, r2, lsl #2
	str	r3, [r8, #4]
	str	r4, [r0, r2, lsl #2]
	str	r1, [r8]
	mov	r0, r4
	bl	snd_pcm_set_sync
	mov	r3, #24
	mov	r2, #32
	mov	r1, r6
	mov	r0, r8
	bl	snd_pcm_hw_constraint_msbits
	mov	r1, r4
	mov	r0, r5
	bl	set_rate_constraints
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	mutex_unlock
	ldr	r3, .L7+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	vt1724_playback_dma_regs
	.word	snd_vt1724_2ch_stereo
	.word	EBUSY
	.size	snd_vt1724_playback_indep_open, .-snd_vt1724_playback_indep_open
	.comm	vt1724_playback_dma_regs,4,4
	.comm	snd_vt1724_2ch_stereo,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
