	.file	"extr_pcm.c_sof_pcm_trigger.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pcm: trigger stream %d dir %d cmd %d\n"
	.align 8
.LC1:
	.string	"error: failed to set up hw_params upon resume\n"
	.align 8
.LC2:
	.string	"error: unhandled trigger cmd %d\n"
	.text
	.p2align 4
	.type	sof_pcm_trigger, @function
sof_pcm_trigger:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR DRV_NAME[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdi, r15
	call	snd_soc_rtdcom_lookup@PLT
	mov	rdi, rax
	call	snd_soc_component_get_drvdata@PLT
	mov	r12, rax
	mov	rax, QWORD PTR [r15]
	cmp	QWORD PTR [rax], 0
	je	.L19
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rsi, r15
	mov	rdi, r12
	call	snd_sof_find_spcm_dai@PLT
	mov	r15, rax
	test	rax, rax
	je	.L17
	mov	edx, DWORD PTR 8[rax]
	mov	edi, DWORD PTR 4[r12]
	mov	r8d, r14d
	lea	rsi, .LC0[rip]
	mov	rcx, QWORD PTR 0[rbp]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR [r15]
	mov	rdx, QWORD PTR 0[rbp]
	mov	DWORD PTR 12[rsp], 12
	mov	esi, DWORD PTR SOF_IPC_GLB_STREAM_MSG[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 16[rsp], esi
	mov	DWORD PTR 20[rsp], eax
	lea	eax, -128[r14]
	cmp	eax, 5
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L4:
	mov	edi, DWORD PTR 4[r12]
	mov	edx, r14d
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
.L17:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [r12]
	lea	rdx, 12[rsp]
	lea	r8, 8[rsp]
	or	esi, DWORD PTR SOF_IPC_STREAM_TRIG_STOP[rip]
	mov	r9d, 4
	mov	ecx, 12
	mov	DWORD PTR 16[rsp], esi
	call	sof_ipc_tx_message@PLT
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13d, eax
	call	snd_sof_pcm_platform_trigger@PLT
	test	r13d, r13d
	jne	.L1
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, rbp
	call	sof_pcm_dsp_pcm_free@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	call	sof_pcm_prepare@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L12
	mov	esi, DWORD PTR 16[rsp]
.L9:
	or	esi, DWORD PTR SOF_IPC_STREAM_TRIG_START[rip]
	mov	DWORD PTR 16[rsp], esi
.L11:
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, r12
	call	snd_sof_pcm_platform_trigger@PLT
	mov	esi, DWORD PTR 16[rsp]
	mov	edi, DWORD PTR [r12]
	lea	rdx, 12[rsp]
	mov	r9d, 4
	lea	r8, 8[rsp]
	mov	ecx, 12
	call	sof_ipc_tx_message@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR [r12]
	lea	rdx, 12[rsp]
	lea	r8, 8[rsp]
	or	esi, DWORD PTR SOF_IPC_STREAM_TRIG_PAUSE[rip]
	mov	r9d, 4
	mov	ecx, 12
	mov	DWORD PTR 16[rsp], esi
	call	sof_ipc_tx_message@PLT
	mov	edx, 133
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13d, eax
	call	snd_sof_pcm_platform_trigger@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	or	esi, DWORD PTR SOF_IPC_STREAM_TRIG_RELEASE[rip]
	mov	DWORD PTR 16[rsp], esi
	jmp	.L11
.L12:
	mov	edi, DWORD PTR 4[r12]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sof_pcm_trigger, .-sof_pcm_trigger
	.comm	SOF_IPC_STREAM_TRIG_STOP,4,4
	.comm	SOF_IPC_STREAM_TRIG_START,4,4
	.comm	SOF_IPC_STREAM_TRIG_RELEASE,4,4
	.comm	SOF_IPC_STREAM_TRIG_PAUSE,4,4
	.comm	SOF_IPC_GLB_STREAM_MSG,4,4
	.comm	EINVAL,4,4
	.comm	DRV_NAME,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_pcm.c_sof_pcm_trigger.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pcm: trigger stream %d dir %d cmd %d\012\000"
	.align	2
.LC1:
	.ascii	"error: failed to set up hw_params upon resume\012\000"
	.align	2
.LC2:
	.ascii	"error: unhandled trigger cmd %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sof_pcm_trigger, %function
sof_pcm_trigger:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L21
	ldr	r7, [r0, #4]
	mov	r6, r1
	ldr	r1, [r3]
	ldr	r3, .L21+4
	sub	sp, sp, #32
	mov	r4, r0
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	snd_soc_rtdcom_lookup
	bl	snd_soc_component_get_drvdata
	ldr	r3, [r7]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r7, #0
	beq	.L18
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r7
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r1, r7
	mov	r5, r0
	bl	snd_sof_find_spcm_dai
	subs	r8, r0, #0
	beq	.L20
	ldr	r2, [r8, #4]
	ldr	r0, [r5, #4]
	str	r6, [sp]
	ldr	r3, [r4]
	ldr	r1, .L21+8
	bl	dev_dbg
	mov	r2, #12
	ldr	r3, [r8]
	ldr	r1, .L21+12
	ldr	r0, [r4]
	ldr	r1, [r1]
	ldr	r0, [r3, r0, lsl #2]
	sub	r3, r6, #128
	str	r1, [sp, #20]
	str	r0, [sp, #24]
	str	r2, [sp, #16]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L10:
	mov	r2, #4
	ldr	r3, .L21+16
	ldr	r0, [r5]
	ldr	ip, [r3]
	add	r3, sp, #12
	orr	r1, r1, ip
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #16
	mov	r3, #12
	str	r1, [sp, #20]
	bl	sof_ipc_tx_message
	mov	r7, r0
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	snd_sof_pcm_platform_trigger
	cmp	r7, #0
	bne	.L1
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	bl	sof_pcm_dsp_pcm_free
	mov	r7, r0
	b	.L1
.L8:
	mov	r0, r4
	bl	sof_pcm_prepare
	subs	r7, r0, #0
	blt	.L12
	ldr	r1, [sp, #20]
.L9:
	ldr	r3, .L21+20
	ldr	r3, [r3]
	orr	r1, r3, r1
	str	r1, [sp, #20]
.L11:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	snd_sof_pcm_platform_trigger
	mov	r2, #4
	add	r3, sp, #12
	ldr	r0, [r5]
	ldr	r1, [sp, #20]
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #16
	mov	r3, #12
	bl	sof_ipc_tx_message
	mov	r7, r0
	b	.L1
.L5:
	mov	ip, #4
	ldr	r3, .L21+24
	add	r2, sp, #12
	ldr	r3, [r3]
	ldr	r0, [r5]
	orr	r1, r1, r3
	stm	sp, {r2, ip}
	mov	r3, #12
	add	r2, sp, #16
	str	r1, [sp, #20]
	bl	sof_ipc_tx_message
	mov	r1, r4
	mov	r7, r0
	mov	r2, #133
	mov	r0, r5
	bl	snd_sof_pcm_platform_trigger
	b	.L1
.L7:
	ldr	r3, .L21+28
	ldr	r3, [r3]
	orr	r1, r3, r1
	str	r1, [sp, #20]
	b	.L11
.L20:
	ldr	r3, .L21+32
	ldr	r0, [r3]
	rsb	r7, r0, #0
	b	.L1
.L12:
	ldr	r0, [r5, #4]
	ldr	r1, .L21+36
	bl	dev_err
	b	.L1
.L19:
	bl	__stack_chk_fail
.L4:
	mov	r2, r6
	ldr	r0, [r5, #4]
	ldr	r1, .L21+40
	bl	dev_err
	ldr	r3, .L21+32
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L22:
	.align	2
.L21:
	.word	DRV_NAME
	.word	.LC3
	.word	.LC0
	.word	SOF_IPC_GLB_STREAM_MSG
	.word	SOF_IPC_STREAM_TRIG_STOP
	.word	SOF_IPC_STREAM_TRIG_START
	.word	SOF_IPC_STREAM_TRIG_PAUSE
	.word	SOF_IPC_STREAM_TRIG_RELEASE
	.word	EINVAL
	.word	.LC1
	.word	.LC2
	.size	sof_pcm_trigger, .-sof_pcm_trigger
	.comm	SOF_IPC_STREAM_TRIG_STOP,4,4
	.comm	SOF_IPC_STREAM_TRIG_START,4,4
	.comm	SOF_IPC_STREAM_TRIG_RELEASE,4,4
	.comm	SOF_IPC_STREAM_TRIG_PAUSE,4,4
	.comm	SOF_IPC_GLB_STREAM_MSG,4,4
	.comm	EINVAL,4,4
	.comm	DRV_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
