	.file	"extr_es18xx.c_snd_es18xx_playback_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_es18xx_playback_open, @function
snd_es18xx_playback_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 8[rdi]
	call	snd_pcm_substream_chip@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L2
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR ES18XX_PCM2[rip], edx
	je	.L3
	test	DWORD PTR ES18XX_DUPLEX_MONO[rip], edx
	je	.L4
	mov	rcx, QWORD PTR 16[rax]
	test	rcx, rcx
	je	.L4
	mov	rcx, QWORD PTR [rcx]
	cmp	DWORD PTR [rcx], 1
	je	.L4
.L8:
	mov	eax, DWORD PTR EAGAIN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	edx, 1
	jg	.L7
.L3:
	cmp	QWORD PTR 16[rax], 0
	jne	.L8
	mov	QWORD PTR 8[rax], rbx
	mov	edx, DWORD PTR [rax]
.L6:
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR snd_es18xx_playback[rip]
	mov	rdi, rbp
	mov	DWORD PTR [rax], ecx
	lea	rax, old_hw_constraints_clocks[rip]
	test	DWORD PTR ES18XX_NEW_RATE[rip], edx
	lea	rcx, new_hw_constraints_clocks[rip]
	cmove	rcx, rax
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	xor	esi, esi
	call	snd_pcm_hw_constraint_ratnums@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	snd_BUG@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	QWORD PTR 24[rax], rbx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	snd_es18xx_playback_open, .-snd_es18xx_playback_open
	.comm	snd_es18xx_playback,4,4
	.comm	old_hw_constraints_clocks,4,4
	.comm	new_hw_constraints_clocks,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	ES18XX_PCM2,4,4
	.comm	ES18XX_NEW_RATE,4,4
	.comm	ES18XX_DUPLEX_MONO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,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_es18xx.c_snd_es18xx_playback_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_es18xx_playback_open, %function
snd_es18xx_playback_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, [r0, #4]
	bl	snd_pcm_substream_chip
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L25
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L3
	ldr	r3, .L25+4
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L4
.L8:
	ldr	r3, .L25+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r3, #1
	bgt	.L7
.L3:
	ldr	r3, [r0, #8]
	cmp	r3, #0
	bne	.L8
	ldr	r2, [r0]
	str	r4, [r0, #4]
.L6:
	ldr	r3, .L25+12
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	ldr	r3, .L25+16
	str	r0, [r1]
	ldr	r0, [r3]
	ldr	ip, .L25+20
	ldr	r1, .L25+24
	tst	r2, r0
	ldr	r3, .L25+28
	ldr	r2, [r1]
	mov	r0, r5
	movne	r3, ip
	mov	r1, #0
	bl	snd_pcm_hw_constraint_ratnums
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	bl	snd_BUG
	ldr	r3, .L25+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	str	r4, [r0, #12]
	b	.L6
.L26:
	.align	2
.L25:
	.word	ES18XX_PCM2
	.word	ES18XX_DUPLEX_MONO
	.word	EAGAIN
	.word	snd_es18xx_playback
	.word	ES18XX_NEW_RATE
	.word	new_hw_constraints_clocks
	.word	SNDRV_PCM_HW_PARAM_RATE
	.word	old_hw_constraints_clocks
	.word	EINVAL
	.size	snd_es18xx_playback_open, .-snd_es18xx_playback_open
	.comm	snd_es18xx_playback,4,4
	.comm	old_hw_constraints_clocks,4,4
	.comm	new_hw_constraints_clocks,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	ES18XX_PCM2,4,4
	.comm	ES18XX_NEW_RATE,4,4
	.comm	ES18XX_DUPLEX_MONO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
