	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_msnd_capture_trigger
_snd_msnd_capture_trigger:              ## @snd_msnd_capture_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	_SNDRV_PCM_TRIGGER_START@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	$-1, (%r14)
	movq	_F_READING@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_HDEX_RECORD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_msnd_send_dsp_cmd
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	jmp	LBB0_5
LBB0_3:
	movq	_SNDRV_PCM_TRIGGER_STOP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_F_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_HDEX_RECORD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_msnd_send_dsp_cmd
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ## @SNDRV_PCM_TRIGGER_START
	.comm	_F_READING,4,2                  ## @F_READING
	.comm	_HDEX_RECORD_START,4,2          ## @HDEX_RECORD_START
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ## @SNDRV_PCM_TRIGGER_STOP
	.comm	_HDEX_RECORD_STOP,4,2           ## @HDEX_RECORD_STOP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_msnd_capture_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_msnd_capture_trigger
_snd_msnd_capture_trigger:              ; @snd_msnd_capture_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	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _SNDRV_PCM_TRIGGER_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #-1
	mov	x20, x19
	str	w8, [x20], #4
Lloh3:
	adrp	x21, _F_READING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _F_READING@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_set_bit
Lloh5:
	adrp	x8, _HDEX_RECORD_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDEX_RECORD_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_msnd_send_dsp_cmd
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDRV_PCM_TRIGGER_STOP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _F_READING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_READING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
Lloh14:
	adrp	x8, _HDEX_RECORD_STOP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDEX_RECORD_STOP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_msnd_send_dsp_cmd
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_TRIGGER_START,4,2    ; @SNDRV_PCM_TRIGGER_START
	.comm	_F_READING,4,2                  ; @F_READING
	.comm	_HDEX_RECORD_START,4,2          ; @HDEX_RECORD_START
	.comm	_SNDRV_PCM_TRIGGER_STOP,4,2     ; @SNDRV_PCM_TRIGGER_STOP
	.comm	_HDEX_RECORD_STOP,4,2           ; @HDEX_RECORD_STOP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_msnd_capture_trigger
.subsections_via_symbols
