	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_solo_pcm_trigger
_snd_solo_pcm_trigger:                  ## @snd_solo_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, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	%rax, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_spin_lock
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	jne	LBB0_11
## %bb.3:
	movq	%r12, %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_SOLO_IRQ_G723@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_solo_irq_on
LBB0_5:
	movl	$1, (%r15)
	jmp	LBB0_11
LBB0_6:
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_11
## %bb.7:
	movq	%r12, %rdi
	callq	_atomic_dec_return
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_SOLO_IRQ_G723@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_solo_irq_off
LBB0_9:
	movl	$0, (%r15)
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movq	%r13, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_IRQ_G723,4,2              ## @SOLO_IRQ_G723
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_solo_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_solo_pcm_trigger
_snd_solo_pcm_trigger:                  ; @snd_solo_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	x22, x1
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	cmp	w22, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_10
; %bb.2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_11
; %bb.3:
	mov	x0, x21
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _SOLO_IRQ_G723@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOLO_IRQ_G723@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_solo_irq_on
LBB0_5:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_12
LBB0_6:
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.7:
	mov	x0, x21
	bl	_atomic_dec_return
	cbnz	w0, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _SOLO_IRQ_G723@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOLO_IRQ_G723@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_solo_irq_off
LBB0_9:
	mov	w21, #0
	str	wzr, [x20]
	b	LBB0_12
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_IRQ_G723,4,2              ; @SOLO_IRQ_G723
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_solo_pcm_trigger
.subsections_via_symbols
