	.file	"extr_cadence_master.c_cdns_set_sdw_stream.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cdns_set_sdw_stream
	.type	cdns_set_sdw_stream, @function
cdns_set_sdw_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	snd_soc_dai_get_drvdata@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	mov	r14, rax
	call	kzalloc@PLT
	test	rax, rax
	je	.L9
	mov	edx, DWORD PTR SDW_STREAM_PCM[rip]
	test	r13d, r13d
	cmove	edx, DWORD PTR SDW_STREAM_PDM[rip]
	cmp	DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip], ebp
	mov	DWORD PTR 24[rax], edx
	lea	rdx, 4[r14]
	mov	QWORD PTR 16[rax], rdx
	mov	edx, DWORD PTR [r14]
	mov	QWORD PTR [rax], r12
	mov	DWORD PTR 8[rax], edx
	je	.L10
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	QWORD PTR 8[rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cdns_set_sdw_stream, .-cdns_set_sdw_stream
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SDW_STREAM_PDM,4,4
	.comm	SDW_STREAM_PCM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_cadence_master.c_cdns_set_sdw_stream.c"
	.text
	.align	2
	.global	cdns_set_sdw_stream
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdns_set_sdw_stream, %function
cdns_set_sdw_stream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r8, r2
	mov	r7, r3
	mov	r6, r0
	bl	snd_soc_dai_get_drvdata
	ldr	r3, .L10
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, #16
	bl	kzalloc
	subs	ip, r0, #0
	beq	.L9
	cmp	r8, #0
	ldrne	r3, .L10+4
	ldreq	r3, .L10+8
	add	r4, r4, #4
	ldr	r2, [r3]
	ldr	r3, .L10+12
	str	r2, [ip, #12]
	ldr	r2, [r3]
	ldr	r3, [r4, #-4]
	cmp	r2, r7
	stmib	ip, {r3, r4}
	str	r5, [ip]
	moveq	r0, #0
	streq	ip, [r6, #4]
	movne	r0, #0
	strne	ip, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	GFP_KERNEL
	.word	SDW_STREAM_PCM
	.word	SDW_STREAM_PDM
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	ENOMEM
	.size	cdns_set_sdw_stream, .-cdns_set_sdw_stream
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SDW_STREAM_PDM,4,4
	.comm	SDW_STREAM_PCM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
