	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_capture_trigger
_snd_emu10k1_capture_trigger:           ## @snd_emu10k1_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
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_spin_lock
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_10
## %bb.1:
	addl	$-130, %r15d
	cmpl	$1, %r15d
	ja	LBB0_18
## %bb.2:
	movl	16(%rbx), %edi
	movq	_IPR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_outl
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_emu10k1_intr_enable
	movl	8(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$133, %eax
	jne	LBB0_9
## %bb.4:
	movq	_ADCCR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movl	$0, (%rbx)
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_emu10k1_intr_disable
	movl	16(%rbx), %edi
	movq	_IPR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_outl
	movl	12(%rbx), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
	movl	8(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_15
## %bb.11:
	cmpl	$133, %eax
	jne	LBB0_19
## %bb.12:
	movq	_ADCCR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_5:
	cmpl	$0, 4(%r14)
	je	LBB0_7
## %bb.6:
	movq	_A_FXWC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	_A_FXWC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movl	28(%rbx), %esi
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	jmp	LBB0_9
LBB0_15:
	cmpl	$0, 4(%r14)
	je	LBB0_17
## %bb.16:
	movq	_A_FXWC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
	movq	_A_FXWC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_14
LBB0_7:
	movq	_FXWC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movl	28(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
LBB0_9:
	movl	12(%rbx), %esi
	movl	24(%rbx), %ecx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	jmp	LBB0_19
LBB0_17:
	movq	_FXWC@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_snd_emu10k1_ptr_write
LBB0_19:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPR,8,3                        ## @IPR
	.comm	_ADCCR,4,2                      ## @ADCCR
	.comm	_A_FXWC1,4,2                    ## @A_FXWC1
	.comm	_A_FXWC2,4,2                    ## @A_FXWC2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cr_val=0x%x, cr_val2=0x%x\n"

	.comm	_FXWC,4,2                       ## @FXWC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_emu10k1_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_emu10k1_capture_trigger
_snd_emu10k1_capture_trigger:           ; @snd_emu10k1_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
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x21, [x8]
	bl	_spin_lock
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	sub	w8, w20, #130
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.2:
	ldr	w0, [x21, #16]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _IPR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_snd_emu10k1_intr_enable
	ldr	w8, [x21, #8]
	cmp	w8, #132
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #133
	b.ne	LBB0_15
; %bb.4:
Lloh3:
	adrp	x8, _ADCCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADCCR@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	str	wzr, [x21]
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_snd_emu10k1_intr_disable
	ldr	w0, [x21, #16]
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _IPR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
	ldr	w1, [x21, #12]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
	ldr	w8, [x21, #8]
	cmp	w8, #132
	b.eq	LBB0_11
; %bb.6:
	mov	w20, #0
	cmp	w8, #133
	b.ne	LBB0_18
; %bb.7:
Lloh8:
	adrp	x8, _ADCCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADCCR@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_13
; %bb.10:
Lloh13:
	adrp	x8, _A_FXWC1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _A_FXWC1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [x21, #28]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
Lloh16:
	adrp	x8, _A_FXWC2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _A_FXWC2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x21, #32]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldp	w1, w2, [x21, #28]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	b	LBB0_15
LBB0_11:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_16
; %bb.12:
Lloh21:
	adrp	x8, _A_FXWC1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _A_FXWC1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
Lloh24:
	adrp	x8, _A_FXWC2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _A_FXWC2@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
Lloh26:
	adrp	x8, _FXWC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FXWC@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	ldr	w3, [x21, #28]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
LBB0_15:
	ldr	w1, [x21, #12]
	ldr	w3, [x21, #24]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	mov	w20, #0
	movi.2s	v0, #1
	str	d0, [x21]
	b	LBB0_18
LBB0_16:
Lloh28:
	adrp	x8, _FXWC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FXWC@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_snd_emu10k1_ptr_write
	mov	w20, #0
LBB0_18:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IPR,8,3                        ; @IPR
	.comm	_ADCCR,4,2                      ; @ADCCR
	.comm	_A_FXWC1,4,2                    ; @A_FXWC1
	.comm	_A_FXWC2,4,2                    ; @A_FXWC2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cr_val=0x%x, cr_val2=0x%x\n"

	.comm	_FXWC,4,2                       ; @FXWC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_emu10k1_capture_trigger
.subsections_via_symbols
