	.file	"extr_maestro3.c_snd_m3_pcm_stop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_m3_pcm_stop, @function
snd_m3_pcm_stop:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L9
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	rdx, rdx
	je	.L1
	mov	rdx, QWORD PTR CDATA_INSTANCE_READY[rip]
	add	rdx, QWORD PTR [rsi]
	mov	rbp, rdi
	xor	ecx, ecx
	mov	esi, DWORD PTR MEMTYPE_INTERNAL_DATA[rip]
	call	snd_m3_assp_write@PLT
	mov	rdi, rbp
	call	snd_m3_dec_timer_users@PLT
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L12
	mov	rdx, QWORD PTR KDATA_ADC1_REQUEST[rip]
	mov	esi, DWORD PTR MEMTYPE_INTERNAL_DATA[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	snd_m3_assp_write@PLT
.L12:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR KDATA_MIXER_TASK_NUMBER[rip]
	mov	rdi, rbp
	lea	ecx, -1[rax]
	mov	DWORD PTR 0[rbp], ecx
	mov	esi, DWORD PTR MEMTYPE_INTERNAL_DATA[rip]
	call	snd_m3_assp_write@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	snd_m3_pcm_stop, .-snd_m3_pcm_stop
	.comm	MEMTYPE_INTERNAL_DATA,4,4
	.comm	KDATA_MIXER_TASK_NUMBER,8,8
	.comm	KDATA_ADC1_REQUEST,8,8
	.comm	EINVAL,4,4
	.comm	CDATA_INSTANCE_READY,8,8
	.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_maestro3.c_snd_m3_pcm_stop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_m3_pcm_stop, %function
snd_m3_pcm_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r1, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r5, r3
	moveq	r5, #1
	cmp	r5, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, r0
	mov	r6, r2
	ldr	r3, .L9+4
	ldr	r2, [r1]
	ldr	r3, [r3]
	ldr	r7, .L9+8
	add	r2, r2, r3
	ldr	r1, [r7]
	mov	r3, r5
	bl	snd_m3_assp_write
	mov	r0, r4
	bl	snd_m3_dec_timer_users
	ldr	r3, [r6]
	cmp	r3, #128
	beq	.L4
	cmp	r3, #129
	bne	.L7
	ldr	r3, .L9+12
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r7]
	mov	r3, r5
	bl	snd_m3_assp_write
.L7:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, [r4]
	ldr	r2, .L9+16
	sub	r3, r3, #1
	str	r3, [r4]
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r2, [r2]
	bl	snd_m3_assp_write
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	EINVAL
	.word	CDATA_INSTANCE_READY
	.word	MEMTYPE_INTERNAL_DATA
	.word	KDATA_ADC1_REQUEST
	.word	KDATA_MIXER_TASK_NUMBER
	.size	snd_m3_pcm_stop, .-snd_m3_pcm_stop
	.comm	MEMTYPE_INTERNAL_DATA,4,4
	.comm	KDATA_MIXER_TASK_NUMBER,4,4
	.comm	KDATA_ADC1_REQUEST,4,4
	.comm	EINVAL,4,4
	.comm	CDATA_INSTANCE_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
