	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ml403_ac97cr_pcm_capture_trigger
_snd_ml403_ac97cr_pcm_capture_trigger:  ## @snd_ml403_ac97cr_pcm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_WORK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
	movl	$0, 8(%r14)
	movq	_RESETFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CR_REG
	movq	_CR_RECRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_out_be32
	movl	$1, (%r14)
	movl	4(%r14), %edi
	callq	_enable_irq
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_WORK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_PDEBUG
	movl	$0, 8(%r14)
	movl	4(%r14), %edi
	callq	_disable_irq_nosync
	movl	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	_WORK_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_PDEBUG
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WORK_INFO,4,2                  ## @WORK_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trigger(capture): START\n"

	.comm	_RESETFIFO,4,2                  ## @RESETFIFO
	.comm	_CR_RECRESET,4,2                ## @CR_RECRESET
L_.str.1:                               ## @.str.1
	.asciz	"trigger(capture): STOP\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"trigger(capture): (done)\n"

	.no_dead_strip	_snd_ml403_ac97cr_pcm_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_ml403_ac97cr_pcm_capture_trigger
_snd_ml403_ac97cr_pcm_capture_trigger:  ; @snd_ml403_ac97cr_pcm_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	x21, _WORK_INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WORK_INFO@GOTPAGEOFF]
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	str	wzr, [x19, #8]
Lloh4:
	adrp	x8, _RESETFIFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RESETFIFO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CR_REG
Lloh7:
	adrp	x8, _CR_RECRESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CR_RECRESET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_out_be32
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	bl	_enable_irq
	mov	w20, #0
	b	LBB0_5
LBB0_3:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
	str	wzr, [x19, #8]
	ldr	w0, [x19, #4]
	bl	_disable_irq_nosync
	mov	w20, #0
	str	wzr, [x19]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WORK_INFO,4,2                  ; @WORK_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trigger(capture): START\n"

	.comm	_RESETFIFO,4,2                  ; @RESETFIFO
	.comm	_CR_RECRESET,4,2                ; @CR_RECRESET
l_.str.1:                               ; @.str.1
	.asciz	"trigger(capture): STOP\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"trigger(capture): (done)\n"

	.no_dead_strip	_snd_ml403_ac97cr_pcm_capture_trigger
.subsections_via_symbols
