	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_via82xx_pcm_trigger
_snd_via82xx_pcm_trigger:               ## @snd_via82xx_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	xorl	%r13d, %r13d
	leal	-128(%r14), %ecx
	cmpl	$4, %ecx
	ja	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movl	$1, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_VIA_REG_CTRL_START@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r13b
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_2:
	movq	_VIA_REG_CTRL_TERMINATE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_VIA_REG_CTRL_PAUSE@GOTPCREL(%rip), %rax
LBB0_3:
	movb	(%rax), %r13b
	xorl	%eax, %eax
LBB0_7:
	movl	%eax, (%r12)
	movq	_OFFSET_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_VIADEV_REG
	movzbl	%r13b, %edi
	movl	%eax, %esi
	callq	_outb
	xorl	%r13d, %r13d
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_snd_via82xx_channel_reset
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_VIA_REG_CTRL_START,1,0         ## @VIA_REG_CTRL_START
	.comm	_VIA_REG_CTRL_TERMINATE,1,0     ## @VIA_REG_CTRL_TERMINATE
	.comm	_VIA_REG_CTRL_PAUSE,1,0         ## @VIA_REG_CTRL_PAUSE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OFFSET_CONTROL,4,2             ## @OFFSET_CONTROL
	.no_dead_strip	_snd_via82xx_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_via82xx_pcm_trigger
_snd_via82xx_pcm_trigger:               ; @snd_via82xx_pcm_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	x19, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	sub	w9, w19, #128
	cmp	w9, #4
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w22, #0
	ldr	x8, [x21]
	ldr	x21, [x8]
	mov	w8, #1
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _VIA_REG_CTRL_START@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VIA_REG_CTRL_START@GOTPAGEOFF]
	ldrb	w22, [x8]
	mov	w8, #1
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	mov	w8, #0
Lloh7:
	adrp	x9, _VIA_REG_CTRL_TERMINATE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VIA_REG_CTRL_TERMINATE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
Lloh9:
	adrp	x9, _VIA_REG_CTRL_PAUSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIA_REG_CTRL_PAUSE@GOTPAGEOFF]
LBB0_6:
	ldrb	w22, [x9]
LBB0_7:
	str	w8, [x21]
Lloh11:
	adrp	x8, _OFFSET_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OFFSET_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_VIADEV_REG
	mov	x1, x0
	mov	x0, x22
	bl	_outb
	cmp	w19, #129
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_snd_via82xx_channel_reset
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_VIA_REG_CTRL_START,1,0         ; @VIA_REG_CTRL_START
	.comm	_VIA_REG_CTRL_TERMINATE,1,0     ; @VIA_REG_CTRL_TERMINATE
	.comm	_VIA_REG_CTRL_PAUSE,1,0         ; @VIA_REG_CTRL_PAUSE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OFFSET_CONTROL,4,2             ; @OFFSET_CONTROL
	.no_dead_strip	_snd_via82xx_pcm_trigger
.subsections_via_symbols
