	.file	"extr_hdspm.c_snd_hdspm_playback_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_hdspm_playback_open, @function
snd_hdspm_playback_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
	call	snd_pcm_substream_chip@PLT
	mov	r12, QWORD PTR 0[rbp]
	lea	r13, 8[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	rdi, rbp
	call	snd_pcm_set_sync@PLT
	mov	eax, DWORD PTR snd_hdspm_playback_subinfo[rip]
	cmp	QWORD PTR 32[rbx], 0
	mov	DWORD PTR [r12], eax
	je	.L7
.L2:
	mov	rax, QWORD PTR current[rip]
	mov	rdi, r13
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR 16[rbx], rbp
	mov	DWORD PTR 24[rbx], eax
	call	spin_unlock_irq@PLT
	xor	esi, esi
	mov	ecx, 24
	mov	rdi, r12
	mov	edx, 32
	call	snd_pcm_hw_constraint_msbits@PLT
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_PERIOD_SIZE[rip]
	xor	esi, esi
	mov	rdi, r12
	lea	rcx, hw_constraints_period_sizes[rip]
	call	snd_pcm_hw_constraint_list@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L3
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	mov	rdi, r12
	lea	rcx, hdspm_hw_constraints_aes32_sample_rates[rip]
	xor	esi, esi
	call	snd_pcm_hw_constraint_list@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_CHANNELS[rip]
	mov	r8, rbx
	mov	rdi, r12
	push	-1
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR snd_hdspm_hw_rule_channels[rip]
	xor	esi, esi
	mov	r9d, edx
	call	snd_pcm_hw_rule_add@PLT
	mov	ecx, DWORD PTR snd_hdspm_hw_rule_channels_rate[rip]
	mov	r8, rbx
	xor	esi, esi
	mov	r9d, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_CHANNELS[rip]
	mov	rdi, r12
	mov	DWORD PTR [rsp], -1
	call	snd_pcm_hw_rule_add@PLT
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	mov	r8, rbx
	xor	esi, esi
	mov	r9d, DWORD PTR SNDRV_PCM_HW_PARAM_CHANNELS[rip]
	mov	ecx, DWORD PTR snd_hdspm_hw_rule_rate_channels[rip]
	mov	rdi, r12
	mov	DWORD PTR [rsp], -1
	call	snd_pcm_hw_rule_add@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbx
	call	hdspm_stop_audio@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	snd_hdspm_playback_open, .-snd_hdspm_playback_open
	.comm	snd_hdspm_playback_subinfo,4,4
	.comm	snd_hdspm_hw_rule_rate_channels,4,4
	.comm	snd_hdspm_hw_rule_channels_rate,4,4
	.comm	snd_hdspm_hw_rule_channels,4,4
	.comm	hw_constraints_period_sizes,4,4
	.comm	hdspm_hw_constraints_aes32_sample_rates,4,4
	.comm	current,8,8
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,4
	.comm	SNDRV_PCM_HW_PARAM_CHANNELS,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_hdspm.c_snd_hdspm_playback_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hdspm_playback_open, %function
snd_hdspm_playback_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	mov	r6, r0
	bl	snd_pcm_substream_chip
	mov	r4, r0
	add	r7, r0, #4
	mov	r0, r7
	ldr	r5, [r6]
	bl	spin_lock_irq
	mov	r0, r6
	bl	snd_pcm_set_sync
	ldr	r3, .L8
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r3, [r5]
	beq	.L7
.L2:
	ldr	r3, .L8+4
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r6, [r4, #8]
	str	r3, [r4, #12]
	bl	spin_unlock_irq
	mov	r3, #24
	mov	r2, #32
	mov	r1, #0
	mov	r0, r5
	bl	snd_pcm_hw_constraint_msbits
	ldr	r2, .L8+8
	mov	r1, #0
	mov	r0, r5
	ldr	r3, .L8+12
	ldr	r2, [r2]
	bl	snd_pcm_hw_constraint_list
	ldr	r6, [r4]
	cmp	r6, #0
	beq	.L3
	ldr	r3, .L8+16
	mov	r0, r5
	ldr	r2, [r3]
	mov	r1, #0
	ldr	r3, .L8+20
	bl	snd_pcm_hw_constraint_list
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	mvn	r7, #0
	ldr	r8, .L8+24
	ldr	r3, .L8+28
	ldr	r2, [r8]
	ldr	r9, .L8+16
	stmib	sp, {r2, r7}
	str	r4, [sp]
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r3]
	bl	snd_pcm_hw_rule_add
	ldr	r2, [r9]
	ldr	r3, .L8+32
	str	r2, [sp, #4]
	str	r7, [sp, #8]
	str	r4, [sp]
	mov	r1, r6
	ldr	r2, [r8]
	mov	r0, r5
	ldr	r3, [r3]
	bl	snd_pcm_hw_rule_add
	ldr	r2, [r8]
	ldr	r3, .L8+36
	stmib	sp, {r2, r7}
	str	r4, [sp]
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r9]
	ldr	r3, [r3]
	bl	snd_pcm_hw_rule_add
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r0, r4
	bl	hdspm_stop_audio
	b	.L2
.L9:
	.align	2
.L8:
	.word	snd_hdspm_playback_subinfo
	.word	current
	.word	SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.word	hw_constraints_period_sizes
	.word	SNDRV_PCM_HW_PARAM_RATE
	.word	hdspm_hw_constraints_aes32_sample_rates
	.word	SNDRV_PCM_HW_PARAM_CHANNELS
	.word	snd_hdspm_hw_rule_channels
	.word	snd_hdspm_hw_rule_channels_rate
	.word	snd_hdspm_hw_rule_rate_channels
	.size	snd_hdspm_playback_open, .-snd_hdspm_playback_open
	.comm	snd_hdspm_playback_subinfo,4,4
	.comm	snd_hdspm_hw_rule_rate_channels,4,4
	.comm	snd_hdspm_hw_rule_channels_rate,4,4
	.comm	snd_hdspm_hw_rule_channels,4,4
	.comm	hw_constraints_period_sizes,4,4
	.comm	hdspm_hw_constraints_aes32_sample_rates,4,4
	.comm	current,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,4
	.comm	SNDRV_PCM_HW_PARAM_CHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
