	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usX2Y_pcm_trigger
_snd_usX2Y_pcm_trigger:                 ## @snd_usX2Y_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %r14
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_8
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	movq	%r14, %rdi
	callq	_atomic_read
	movq	_state_PREPARED@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_atomic_read
	cmpl	(%rbx), %eax
	jge	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_snd_printdd
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_snd_printdd
	movq	%r14, %rdi
	callq	_atomic_read
	movq	_state_PRERUNNING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	jl	LBB0_10
## %bb.7:
	movq	_state_PREPARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atomic_set
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_state_PRERUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_atomic_set
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_usX2Y_pcm_trigger(START)\n"

	.comm	_state_PREPARED,4,2             ## @state_PREPARED
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_state_PRERUNNING,4,2           ## @state_PRERUNNING
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
L_.str.2:                               ## @.str.2
	.asciz	"snd_usX2Y_pcm_trigger(STOP)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_usX2Y_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_usX2Y_pcm_trigger
_snd_usX2Y_pcm_trigger:                 ; @snd_usX2Y_pcm_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x19, [x8]
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	mov	x0, x19
	bl	_atomic_read
Lloh2:
	adrp	x20, _state_PREPARED@GOTPAGE
Lloh3:
	ldr	x20, [x20, _state_PREPARED@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	bl	_atomic_read
	ldr	w8, [x20]
	cmp	w0, w8
	b.ge	LBB0_9
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printdd
Lloh9:
	adrp	x8, _EPIPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_snd_printdd
	mov	x0, x19
	bl	_atomic_read
Lloh13:
	adrp	x8, _state_PRERUNNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _state_PRERUNNING@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_11
; %bb.6:
Lloh16:
	adrp	x8, _state_PREPARED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _state_PREPARED@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x8, _state_PRERUNNING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _state_PRERUNNING@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atomic_set
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_usX2Y_pcm_trigger(START)\n"

	.comm	_state_PREPARED,4,2             ; @state_PREPARED
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_state_PRERUNNING,4,2           ; @state_PRERUNNING
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
l_.str.2:                               ; @.str.2
	.asciz	"snd_usX2Y_pcm_trigger(STOP)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_usX2Y_pcm_trigger
.subsections_via_symbols
