	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_m3_pcm_stop
_snd_m3_pcm_stop:                       ## @snd_m3_pcm_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	_MEMTYPE_INTERNAL_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_CDATA_INSTANCE_READY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	(%rsi), %rdx
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_snd_m3_assp_write
	movq	%r14, %rdi
	callq	_snd_m3_dec_timer_users
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.5:
	movl	(%r14), %ecx
	decl	%ecx
	movl	%ecx, (%r14)
	movl	(%r12), %esi
	movq	_KDATA_MIXER_TASK_NUMBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_6:
	movl	(%r12), %esi
	movq	_KDATA_ADC1_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
LBB0_7:
	callq	_snd_m3_assp_write
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEMTYPE_INTERNAL_DATA,4,2      ## @MEMTYPE_INTERNAL_DATA
	.comm	_CDATA_INSTANCE_READY,8,3       ## @CDATA_INSTANCE_READY
	.comm	_KDATA_MIXER_TASK_NUMBER,8,3    ## @KDATA_MIXER_TASK_NUMBER
	.comm	_KDATA_ADC1_REQUEST,8,3         ## @KDATA_ADC1_REQUEST
	.no_dead_strip	_snd_m3_pcm_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_m3_pcm_stop
_snd_m3_pcm_stop:                       ; @snd_m3_pcm_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x21, _MEMTYPE_INTERNAL_DATA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MEMTYPE_INTERNAL_DATA@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x9, [x1]
Lloh2:
	adrp	x10, _CDATA_INSTANCE_READY@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CDATA_INSTANCE_READY@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	add	x2, x10, x9
	mov	x1, x8
	mov	w3, #0
	bl	_snd_m3_assp_write
	mov	x0, x19
	bl	_snd_m3_dec_timer_users
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	mov	w0, #0
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x19]
	sub	w3, w8, #1
	str	w3, [x19]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _KDATA_MIXER_TASK_NUMBER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KDATA_MIXER_TASK_NUMBER@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	mov	x0, x19
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _KDATA_ADC1_REQUEST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KDATA_ADC1_REQUEST@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	mov	x0, x19
	mov	w3, #0
LBB0_7:
	bl	_snd_m3_assp_write
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEMTYPE_INTERNAL_DATA,4,2      ; @MEMTYPE_INTERNAL_DATA
	.comm	_CDATA_INSTANCE_READY,8,3       ; @CDATA_INSTANCE_READY
	.comm	_KDATA_MIXER_TASK_NUMBER,8,3    ; @KDATA_MIXER_TASK_NUMBER
	.comm	_KDATA_ADC1_REQUEST,8,3         ; @KDATA_ADC1_REQUEST
	.no_dead_strip	_snd_m3_pcm_stop
.subsections_via_symbols
