	.file	"extr_hdsp.c_snd_hdsp_playback_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_hdsp_playback_open, @function
snd_hdsp_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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	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	rbp, QWORD PTR [r12]
	mov	rdi, rax
	mov	rbx, rax
	call	hdsp_check_for_iobox@PLT
	test	rax, rax
	je	.L2
.L12:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbx
	call	hdsp_check_for_firmware@PLT
	test	rax, rax
	jne	.L12
	lea	r13, 56[rbx]
	mov	rdi, r13
	call	spin_lock_irq@PLT
	mov	rdi, r12
	call	snd_pcm_set_sync@PLT
	mov	eax, DWORD PTR snd_hdsp_playback_subinfo[rip+16]
	movdqu	xmm0, XMMWORD PTR snd_hdsp_playback_subinfo[rip]
	mov	rdi, r13
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR 76[rbx]
	movups	XMMWORD PTR 0[rbp], xmm0
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR HDSP_DMA_AREA_BYTES[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	rax, QWORD PTR current[rip]
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR 64[rbx], r12
	mov	DWORD PTR 72[rbx], eax
	call	spin_unlock_irq@PLT
	xor	esi, esi
	mov	ecx, 24
	mov	rdi, rbp
	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, rbp
	lea	rcx, hdsp_hw_constraints_period_sizes[rip]
	call	snd_pcm_hw_constraint_list@PLT
	cmp	QWORD PTR 48[rbx], 0
	je	.L5
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbp], eax
	mov	DWORD PTR 0[rbp], eax
.L6:
	mov	rax, QWORD PTR H9632[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L8
	mov	eax, DWORD PTR 40[rbx]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 36[rbx]
	mov	DWORD PTR 8[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR H9632[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L14
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_CHANNELS[rip]
	mov	r8, rbx
	xor	esi, esi
	push	-1
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR snd_hdsp_hw_rule_out_channels[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	mov	r9d, edx
	call	snd_pcm_hw_rule_add@PLT
	mov	ecx, DWORD PTR snd_hdsp_hw_rule_out_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, rbp
	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_hdsp_hw_rule_rate_out_channels[rip]
	mov	rdi, rbp
	mov	DWORD PTR [rsp], -1
	call	snd_pcm_hw_rule_add@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	mov	rax, QWORD PTR RPM[rip]
	pop	rdx
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 8[rbx], rax
	je	.L1
	mov	eax, DWORD PTR 28[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 24[rbx]
	mov	DWORD PTR 32[rbx], eax
	mov	rcx, QWORD PTR 8[rdx]
	mov	eax, DWORD PTR SNDRV_CTL_ELEM_ACCESS_INACTIVE[rip]
	not	eax
	and	DWORD PTR [rcx], eax
	mov	esi, DWORD PTR SNDRV_CTL_EVENT_MASK_VALUE[rip]
	or	esi, DWORD PTR SNDRV_CTL_EVENT_MASK_INFO[rip]
	call	snd_ctl_notify@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR SNDRV_PCM_RATE_KNOT[rip]
	mov	DWORD PTR 4[rbp], 192000
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	lea	rcx, hdsp_hw_constraints_9632_sample_rates[rip]
	mov	DWORD PTR 16[rbp], eax
	call	snd_pcm_hw_constraint_list@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	snd_hdsp_playback_open, .-snd_hdsp_playback_open
	.comm	snd_hdsp_playback_subinfo,20,16
	.comm	snd_hdsp_hw_rule_rate_out_channels,4,4
	.comm	snd_hdsp_hw_rule_out_channels_rate,4,4
	.comm	snd_hdsp_hw_rule_out_channels,4,4
	.comm	hdsp_hw_constraints_period_sizes,4,4
	.comm	hdsp_hw_constraints_9632_sample_rates,4,4
	.comm	current,8,8
	.comm	SNDRV_PCM_RATE_KNOT,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
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	SNDRV_CTL_EVENT_MASK_INFO,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,4
	.comm	RPM,8,8
	.comm	HDSP_DMA_AREA_BYTES,4,4
	.comm	H9632,8,8
	.comm	EIO,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_hdsp.c_snd_hdsp_playback_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hdsp_playback_open, %function
snd_hdsp_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
	ldr	r7, [r6]
	mov	r4, r0
	bl	hdsp_check_for_iobox
	cmp	r0, #0
	beq	.L2
.L11:
	ldr	r3, .L14
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r1, #1
	mov	r0, r4
	bl	hdsp_check_for_firmware
	subs	r5, r0, #0
	bne	.L11
	add	r8, r4, #36
	mov	r0, r8
	bl	spin_lock_irq
	mov	r0, r6
	bl	snd_pcm_set_sync
	mov	ip, r7
	ldr	lr, .L14+4
	ldr	r9, .L14+8
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [r9]
	ldr	r2, .L14+12
	ldr	r0, [lr]
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r2, [r4, #48]
	str	r0, [ip]
	str	r1, [r7, #20]
	str	r2, [r7, #24]
	mov	r0, r8
	str	r3, [r4, #44]
	str	r6, [r4, #40]
	bl	spin_unlock_irq
	mov	r3, #24
	mov	r2, #32
	mov	r1, r5
	mov	r0, r7
	bl	snd_pcm_hw_constraint_msbits
	ldr	r2, .L14+16
	ldr	r3, .L14+20
	mov	r1, r5
	mov	r0, r7
	ldr	r2, [r2]
	bl	snd_pcm_hw_constraint_list
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L13
	ldr	r6, .L14+24
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L7
	ldr	r9, .L14+28
.L8:
	mvn	r6, #0
	ldr	r8, .L14+32
	ldr	r3, .L14+36
	ldr	r2, [r8]
	str	r4, [sp]
	stmib	sp, {r2, r6}
	mov	r1, #0
	ldr	r3, [r3]
	mov	r0, r7
	bl	snd_pcm_hw_rule_add
	ldr	r1, [r9]
	ldr	r3, .L14+40
	str	r6, [sp, #8]
	str	r4, [sp]
	ldr	r2, [r8]
	ldr	r3, [r3]
	mov	r0, r7
	str	r1, [sp, #4]
	mov	r1, #0
	bl	snd_pcm_hw_rule_add
	ldr	r2, [r8]
	ldr	r3, .L14+44
	stmib	sp, {r2, r6}
	str	r4, [sp]
	ldr	r2, [r9]
	ldr	r3, [r3]
	mov	r0, r7
	mov	r1, #0
	bl	snd_pcm_hw_rule_add
	ldr	r3, .L14+48
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	ldr	r2, [r4, #8]
	ldr	r3, .L14+52
	ldr	r1, [r2, #4]
	ldr	ip, [r3]
	ldr	r0, [r4, #16]
	ldr	r3, [r1]
	str	r0, [r4, #20]
	bic	r3, r3, ip
	ldr	r0, .L14+56
	ldr	ip, .L14+60
	str	r3, [r1]
	ldr	r3, [r0]
	ldr	r1, [ip]
	ldr	r0, [r4, #12]
	orr	r1, r1, r3
	bl	snd_ctl_notify
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r3, [r4]
	ldr	r6, .L14+24
	ldr	r9, .L14+28
	str	r3, [r7, #4]
	str	r3, [r7]
.L6:
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	cmp	r2, r3
	ldreq	r2, [r4, #28]
	ldreq	r3, [r4, #24]
	streq	r2, [r7, #12]
	streq	r3, [r7, #8]
	b	.L8
.L7:
	ldr	r2, .L14+64
	ldr	r3, .L14+68
	ldr	r2, [r2]
	ldr	r9, .L14+28
	str	r2, [r7, #16]
	str	r3, [r7, #4]
	mov	r1, r5
	mov	r0, r7
	ldr	r2, [r9]
	ldr	r3, .L14+72
	bl	snd_pcm_hw_constraint_list
	b	.L6
.L15:
	.align	2
.L14:
	.word	EIO
	.word	snd_hdsp_playback_subinfo
	.word	current
	.word	HDSP_DMA_AREA_BYTES
	.word	SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.word	hdsp_hw_constraints_period_sizes
	.word	H9632
	.word	SNDRV_PCM_HW_PARAM_RATE
	.word	SNDRV_PCM_HW_PARAM_CHANNELS
	.word	snd_hdsp_hw_rule_out_channels
	.word	snd_hdsp_hw_rule_out_channels_rate
	.word	snd_hdsp_hw_rule_rate_out_channels
	.word	RPM
	.word	SNDRV_CTL_ELEM_ACCESS_INACTIVE
	.word	SNDRV_CTL_EVENT_MASK_INFO
	.word	SNDRV_CTL_EVENT_MASK_VALUE
	.word	SNDRV_PCM_RATE_KNOT
	.word	192000
	.word	hdsp_hw_constraints_9632_sample_rates
	.size	snd_hdsp_playback_open, .-snd_hdsp_playback_open
	.comm	snd_hdsp_playback_subinfo,20,4
	.comm	snd_hdsp_hw_rule_rate_out_channels,4,4
	.comm	snd_hdsp_hw_rule_out_channels_rate,4,4
	.comm	snd_hdsp_hw_rule_out_channels,4,4
	.comm	hdsp_hw_constraints_period_sizes,4,4
	.comm	hdsp_hw_constraints_9632_sample_rates,4,4
	.comm	current,4,4
	.comm	SNDRV_PCM_RATE_KNOT,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
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	SNDRV_CTL_EVENT_MASK_INFO,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,4
	.comm	RPM,4,4
	.comm	HDSP_DMA_AREA_BYTES,4,4
	.comm	H9632,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
