	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_fm801_capture_trigger
_snd_fm801_capture_trigger:             ## @snd_fm801_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, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_FM801_PAUSE@GOTPCREL(%rip), %rax
	movl	(%r15), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_FM801_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_snd_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_FM801_START@GOTPCREL(%rip), %rax
	movq	_FM801_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_6:
	notl	%ebx
	andl	(%r15), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_FM801_BUF1_LAST@GOTPCREL(%rip), %rax
	movq	_FM801_BUF2_LAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_FM801_PAUSE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	notl	%ebx
	andl	(%r15), %ebx
	movl	%ebx, (%r15)
	movq	_FM801_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FM801_IMMED_STOP@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movl	%ebx, (%r15)
	movq	_CAP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_FM801_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outw
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_FM801_BUF1_LAST,4,2            ## @FM801_BUF1_LAST
	.comm	_FM801_BUF2_LAST,4,2            ## @FM801_BUF2_LAST
	.comm	_FM801_PAUSE,4,2                ## @FM801_PAUSE
	.comm	_FM801_START,4,2                ## @FM801_START
	.comm	_FM801_IMMED_STOP,4,2           ## @FM801_IMMED_STOP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAP_CTRL,4,2                   ## @CAP_CTRL
	.no_dead_strip	_snd_fm801_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_fm801_capture_trigger
_snd_fm801_capture_trigger:             ; @snd_fm801_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	x21, x1
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _FM801_PAUSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FM801_PAUSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w21, w9, w8
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _FM801_PAUSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FM801_PAUSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock
	bl	_snd_BUG
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _FM801_START@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FM801_START@GOTPAGEOFF]
Lloh13:
	adrp	x9, _FM801_PAUSE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FM801_PAUSE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_6:
	ldr	w9, [x20]
	bic	w21, w9, w8
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _FM801_BUF1_LAST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FM801_BUF1_LAST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _FM801_BUF2_LAST@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FM801_BUF2_LAST@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _FM801_PAUSE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FM801_PAUSE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh26:
	adrp	x9, _FM801_START@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FM801_START@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _FM801_IMMED_STOP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _FM801_IMMED_STOP@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w21, w8, w10
LBB0_8:
	str	w21, [x20]
Lloh32:
	adrp	x8, _CAP_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CAP_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_FM801_REG
	mov	x1, x0
	mov	x0, x21
	bl	_outw
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_FM801_BUF1_LAST,4,2            ; @FM801_BUF1_LAST
	.comm	_FM801_BUF2_LAST,4,2            ; @FM801_BUF2_LAST
	.comm	_FM801_PAUSE,4,2                ; @FM801_PAUSE
	.comm	_FM801_START,4,2                ; @FM801_START
	.comm	_FM801_IMMED_STOP,4,2           ; @FM801_IMMED_STOP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAP_CTRL,4,2                   ; @CAP_CTRL
	.no_dead_strip	_snd_fm801_capture_trigger
.subsections_via_symbols
