	.file	"extr_ens1370.c_snd_ensoniq_playback1_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ensoniq_playback1_open, @function
snd_ensoniq_playback1_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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	snd_pcm_substream_chip@PLT
	mov	r13, QWORD PTR [r12]
	mov	rdi, r12
	mov	rbp, rax
	mov	eax, DWORD PTR ES_MODE_PLAY1[rip]
	or	DWORD PTR 40[rbp], eax
	mov	eax, DWORD PTR snd_ensoniq_playback1[rip]
	mov	QWORD PTR 32[rbp], r12
	mov	DWORD PTR 0[r13], eax
	call	snd_pcm_set_sync@PLT
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L2
	cmp	QWORD PTR 16[rbp], 0
	je	.L5
.L2:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	mov	rdi, r13
	xor	esi, esi
	lea	rcx, snd_es1371_hw_constraints_dac_clock[rip]
	call	snd_pcm_hw_constraint_ratdens@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 8[rbp], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	snd_ensoniq_playback1_open, .-snd_ensoniq_playback1_open
	.comm	snd_es1371_hw_constraints_dac_clock,4,4
	.comm	snd_es1370_hw_constraints_rates,4,4
	.comm	snd_ensoniq_playback1,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	ES_MODE_PLAY1,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_ens1370.c_snd_ensoniq_playback1_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ensoniq_playback1_open, %function
snd_ensoniq_playback1_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	snd_pcm_substream_chip
	mov	r4, r0
	ldr	r1, .L8
	ldr	r2, .L8+4
	ldr	r3, [r0, #24]
	ldr	r1, [r1]
	ldr	r6, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r1
	str	r3, [r0, #24]
	str	r5, [r0, #20]
	str	r2, [r6]
	mov	r0, r5
	bl	snd_pcm_set_sync
	mov	r0, r4
	bl	spin_lock_irq
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ldreq	r3, [r4, #4]
	streq	r3, [r4, #8]
.L2:
	mov	r0, r4
	bl	spin_unlock_irq
	ldr	r3, .L8+8
	mov	r0, r6
	ldr	r2, [r3]
	mov	r1, #0
	ldr	r3, .L8+12
	bl	snd_pcm_hw_constraint_ratdens
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	ES_MODE_PLAY1
	.word	snd_ensoniq_playback1
	.word	SNDRV_PCM_HW_PARAM_RATE
	.word	snd_es1371_hw_constraints_dac_clock
	.size	snd_ensoniq_playback1_open, .-snd_ensoniq_playback1_open
	.comm	snd_es1371_hw_constraints_dac_clock,4,4
	.comm	snd_es1370_hw_constraints_rates,4,4
	.comm	snd_ensoniq_playback1,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	ES_MODE_PLAY1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
