	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_m3_pcm_trigger
_snd_m3_pcm_trigger:                    ## @snd_m3_pcm_trigger
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	(%rax), %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock
	leal	-128(%r13), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.3:
	addl	$-130, %r13d
	cmpl	$1, %r13d
	ja	LBB0_4
## %bb.5:
	cmpl	$0, (%r12)
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.10:
	movl	$0, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_snd_m3_pcm_stop
	jmp	LBB0_11
LBB0_4:
	negl	%ebx
	jmp	LBB0_12
LBB0_7:
	movl	$1, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_snd_m3_pcm_start
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_m3_pcm_trigger
.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_trigger
_snd_m3_pcm_trigger:                    ; @snd_m3_pcm_trigger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	x21, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_2:
	mov	x0, x19
	bl	_spin_lock
	sub	w8, w22, #128
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.3:
	sub	w8, w22, #130
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.4:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_6:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.7:
	str	wzr, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_snd_m3_pcm_stop
	b	LBB0_10
LBB0_8:
	neg	w20, w23
	b	LBB0_12
LBB0_9:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_snd_m3_pcm_start
LBB0_10:
	mov	x20, x0
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_m3_pcm_trigger
.subsections_via_symbols
