	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1968_pcm_trigger
_snd_es1968_pcm_trigger:                ## @snd_es1968_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_spin_lock
	leal	-128(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	addl	$-130, %r12d
	cmpl	$1, %r12d
	ja	LBB0_6
## %bb.2:
	cmpl	$0, (%r14)
	jne	LBB0_6
## %bb.3:
	movl	12(%r14), %esi
	movq	%r15, %rdi
	callq	_snd_es1968_bob_inc
	movq	$0, 4(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_snd_es1968_pcm_start
	movl	$1, (%r14)
	jmp	LBB0_6
LBB0_4:
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_snd_es1968_pcm_stop
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_snd_es1968_bob_dec
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_es1968_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_es1968_pcm_trigger
_snd_es1968_pcm_trigger:                ; @snd_es1968_pcm_trigger
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	bl	_spin_lock
	sub	w8, w21, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	sub	w8, w21, #130
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.3:
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_snd_es1968_bob_inc
	stp	wzr, wzr, [x20, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_es1968_pcm_start
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_es1968_pcm_stop
	str	wzr, [x20]
	mov	x0, x19
	bl	_snd_es1968_bob_dec
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_es1968_pcm_trigger
.subsections_via_symbols
