	.file	"extr_cmipci.c_snd_cmipci_playback2_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_cmipci_playback2_hw_params, @function
snd_cmipci_playback2_hw_params:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	snd_pcm_substream_chip@PLT
	mov	rdi, r12
	mov	r13, rax
	call	params_channels@PLT
	cmp	eax, 2
	jle	.L2
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR CM_CH_PLAY[rip]
	lea	rax, [rax+rdx*8]
	cmp	QWORD PTR [rax], 0
	jne	.L8
	mov	rdx, QWORD PTR CM_OPEN_PLAYBACK_MULTI[rip]
	mov	rdi, r13
	mov	QWORD PTR [rax], rdx
	call	mutex_unlock@PLT
.L2:
	mov	rdi, r12
	call	params_buffer_bytes@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	snd_pcm_lib_malloc_pages@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	snd_cmipci_playback2_hw_params, .-snd_cmipci_playback2_hw_params
	.comm	EBUSY,4,4
	.comm	CM_OPEN_PLAYBACK_MULTI,8,8
	.comm	CM_CH_PLAY,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_cmipci.c_snd_cmipci_playback2_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cmipci_playback2_hw_params, %function
snd_cmipci_playback2_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r6, r0
	bl	snd_pcm_substream_chip
	mov	r5, r0
	mov	r0, r4
	bl	params_channels
	cmp	r0, #2
	ble	.L2
	mov	r0, r5
	bl	mutex_lock
	ldr	r2, .L9
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	ldr	r1, [r3, r2, lsl #2]
	cmp	r1, #0
	bne	.L8
	ldr	r1, .L9+4
	mov	r0, r5
	ldr	r1, [r1]
	str	r1, [r3, r2, lsl #2]
	bl	mutex_unlock
.L2:
	mov	r0, r4
	bl	params_buffer_bytes
	mov	r1, r0
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	snd_pcm_lib_malloc_pages
.L8:
	mov	r0, r5
	bl	mutex_unlock
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	CM_CH_PLAY
	.word	CM_OPEN_PLAYBACK_MULTI
	.word	EBUSY
	.size	snd_cmipci_playback2_hw_params, .-snd_cmipci_playback2_hw_params
	.comm	EBUSY,4,4
	.comm	CM_OPEN_PLAYBACK_MULTI,4,4
	.comm	CM_CH_PLAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
