	.file	"extr_skl-messages.c_skl_dsp_prepare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	skl_dsp_prepare, @function
skl_dsp_prepare:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	test	rax, rax
	je	.L7
	lea	rbx, 4[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	rbp, rax
	mov	rdi, rbx
	call	memset@PLT
	mov	eax, DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	mov	rdi, rbp
	mov	rsi, rbx
	mov	edx, DWORD PTR HDAC_EXT_STREAM_TYPE_HOST[rip]
	mov	DWORD PTR 4[rsp], eax
	call	snd_hdac_ext_stream_assign@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L7
	call	hdac_stream@PLT
	mov	rcx, r15
	mov	edx, r13d
	mov	esi, r14d
	mov	rdi, rax
	mov	rbp, rax
	call	snd_hdac_dsp_prepare@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR 0[rbp]
	mov	ecx, 1
	mov	esi, r13d
	mov	rdi, r12
	call	skl_dsp_setup_spib@PLT
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	skl_dsp_prepare, .-skl_dsp_prepare
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	HDAC_EXT_STREAM_TYPE_HOST,4,4
	.comm	ENODEV,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_skl-messages.c_skl_dsp_prepare.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	skl_dsp_prepare, %function
skl_dsp_prepare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r3
	ldr	r3, .L10
	sub	sp, sp, #12
	mov	r7, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	dev_get_drvdata
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	mov	r1, sp
	ldr	r2, [r2]
	str	r3, [sp]
	bl	snd_hdac_ext_stream_assign
	cmp	r0, #0
	beq	.L7
	bl	hdac_stream
	mov	r3, r4
	mov	r1, r7
	mov	r2, r6
	mov	r4, r0
	bl	snd_hdac_dsp_prepare
	cmp	r0, #0
	blt	.L1
	mov	r1, r6
	mov	r0, r5
	mov	r3, #1
	ldr	r2, [r4]
	bl	skl_dsp_setup_spib
	ldr	r0, [r4]
	b	.L1
.L7:
	ldr	r3, .L10+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	HDAC_EXT_STREAM_TYPE_HOST
	.word	ENODEV
	.size	skl_dsp_prepare, .-skl_dsp_prepare
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	HDAC_EXT_STREAM_TYPE_HOST,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
