	.file	"extr_sst-haswell-ipc.c_sst_hsw_stream_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"warning: stream is NULL, no stream to free, ignore it.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"stream free"
.LC2:
	.string	"error: free stream %d failed\n"
	.text
	.p2align 4
	.globl	sst_hsw_stream_free
	.type	sst_hsw_stream_free, @function
sst_hsw_stream_free:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	test	rsi, rsi
	je	.L11
	mov	r12d, DWORD PTR 20[rsi]
	mov	rbp, rsi
	test	r12d, r12d
	jne	.L12
.L4:
	lea	rdi, 4[rbp]
	xor	r13d, r13d
	call	cancel_work_sync@PLT
	mov	rsi, r13
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	rdi, rbp
	call	list_del@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	rsi, r13
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
.L1:
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rsi]
	lea	rdi, .LC1[rip]
	lea	r13, 8[rbp]
	call	trace_ipc_request@PLT
	mov	eax, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR IPC_GLB_FREE_STREAM[rip]
	mov	DWORD PTR 8[rbp], eax
	call	IPC_GLB_TYPE@PLT
	mov	QWORD PTR 8[rsp], r13
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	xor	esi, esi
	mov	DWORD PTR 24[rsp], eax
	lea	rdi, 4[rbx]
	mov	DWORD PTR 8[rsp], 4
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 96
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 104
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 112
	call	sst_ipc_tx_message_wait@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	test	eax, eax
	js	.L13
	mov	rsi, r13
	mov	rdi, rbp
	call	trace_hsw_stream_free_req@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EAGAIN[rip]
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	lea	rsi, .LC0[rip]
	xor	r12d, r12d
	call	dev_warn@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sst_hsw_stream_free, .-sst_hsw_stream_free
	.comm	IPC_GLB_FREE_STREAM,4,4
	.comm	EAGAIN,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_sst-haswell-ipc.c_sst_hsw_stream_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"warning: stream is NULL, no stream to free, ignore "
	.ascii	"it.\012\000"
	.align	2
.LC1:
	.ascii	"stream free\000"
	.align	2
.LC2:
	.ascii	"error: free stream %d failed\012\000"
	.text
	.align	2
	.global	sst_hsw_stream_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	sst_hsw_stream_free, %function
sst_hsw_stream_free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r1, #0
	mov	r6, r0
	ldr	r7, [r0, #8]
	sub	sp, sp, #24
	beq	.L11
	ldr	r5, [r4, #20]
	cmp	r5, #0
	bne	.L12
.L4:
	mov	r6, #0
	add	r0, r4, #4
	bl	cancel_work_sync
	mov	r1, r6
	mov	r0, r7
	bl	spin_lock_irqsave
	mov	r0, r4
	bl	list_del
	mov	r0, r4
	bl	kfree
	mov	r1, r6
	mov	r0, r7
	bl	spin_unlock_irqrestore
.L1:
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r8, r4
	ldr	r1, [r4, #16]
	ldr	r0, .L14
	bl	trace_ipc_request
	ldr	r2, [r4, #12]
	ldr	r3, .L14+4
	str	r2, [r8, #8]!
	ldr	r0, [r3]
	bl	IPC_GLB_TYPE
	mov	r3, #4
	mov	ip, #0
	str	r0, [sp, #20]
	str	r3, [sp, #12]
	str	r8, [sp, #16]
	add	r3, sp, #24
	ldmdb	r3, {r1, r2, r3}
	add	r0, r6, #4
	str	ip, [sp]
	bl	sst_ipc_tx_message_wait
	subs	r5, r0, #0
	blt	.L13
	mov	r1, r8
	mov	r0, r4
	bl	trace_hsw_stream_free_req
	b	.L4
.L13:
	ldr	r2, [r4, #8]
	ldr	r0, [r6]
	ldr	r1, .L14+8
	bl	dev_err
	ldr	r3, .L14+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r1, .L14+16
	ldr	r0, [r0]
	mov	r5, r4
	bl	dev_warn
	b	.L1
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	IPC_GLB_FREE_STREAM
	.word	.LC2
	.word	EAGAIN
	.word	.LC0
	.size	sst_hsw_stream_free, .-sst_hsw_stream_free
	.comm	IPC_GLB_FREE_STREAM,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
