	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs46xx_capture_trigger
_snd_cs46xx_capture_trigger:            ## @snd_cs46xx_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
	movq	%rax, %rdi
	callq	_spin_lock
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	addl	$-130, %ebx
	cmpl	$1, %ebx
	ja	LBB0_5
## %bb.2:
	movq	_BA1_CCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_cs46xx_peek
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	(%rbx), %esi
	orl	4(%r14), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_BA1_CCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_cs46xx_peek
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	(%rbx), %esi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_cs46xx_poke
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BA1_CCTL,4,2                   ## @BA1_CCTL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_cs46xx_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_cs46xx_capture_trigger
_snd_cs46xx_capture_trigger:            ; @snd_cs46xx_capture_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
	mov	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	bl	_spin_lock
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w20, #130
	cmp	w8, #1
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, _BA1_CCTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BA1_CCTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_cs46xx_peek
	and	w8, w0, #0xffff0000
	ldr	w1, [x20]
	ldr	w9, [x19, #4]
	orr	w2, w9, w8
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x20, _BA1_CCTL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BA1_CCTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_snd_cs46xx_peek
	and	w2, w0, #0xffff0000
	ldr	w1, [x20]
LBB0_4:
	mov	x0, x19
	bl	_snd_cs46xx_poke
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BA1_CCTL,4,2                   ; @BA1_CCTL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_cs46xx_capture_trigger
.subsections_via_symbols
