	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_via82xx_channel_reset
_snd_via82xx_channel_reset:             ## @snd_via82xx_channel_reset
	.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
	movq	%rsi, %r14
	movq	_VIA_REG_CTRL_PAUSE@GOTPCREL(%rip), %rax
	movq	_VIA_REG_CTRL_TERMINATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_VIA_REG_CTRL_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_OFFSET_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_VIADEV_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_VIADEV_REG
	movl	%eax, %edi
	callq	_inb
	movl	$50, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_VIADEV_REG
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_OFFSET_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_VIADEV_REG
	movl	$3, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_OFFSET_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_VIADEV_REG
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIA_REG_CTRL_PAUSE,4,2         ## @VIA_REG_CTRL_PAUSE
	.comm	_VIA_REG_CTRL_TERMINATE,4,2     ## @VIA_REG_CTRL_TERMINATE
	.comm	_VIA_REG_CTRL_RESET,4,2         ## @VIA_REG_CTRL_RESET
	.comm	_OFFSET_CONTROL,4,2             ## @OFFSET_CONTROL
	.comm	_OFFSET_STATUS,4,2              ## @OFFSET_STATUS
	.comm	_OFFSET_TYPE,4,2                ## @OFFSET_TYPE
	.no_dead_strip	_snd_via82xx_channel_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_via82xx_channel_reset
_snd_via82xx_channel_reset:             ; @snd_via82xx_channel_reset
	.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
Lloh0:
	adrp	x8, _VIA_REG_CTRL_PAUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIA_REG_CTRL_PAUSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VIA_REG_CTRL_TERMINATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIA_REG_CTRL_TERMINATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VIA_REG_CTRL_RESET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VIA_REG_CTRL_RESET@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w20, w8, w9
Lloh9:
	adrp	x21, _OFFSET_CONTROL@GOTPAGE
Lloh10:
	ldr	x21, [x21, _OFFSET_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_VIADEV_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_VIADEV_REG
	bl	_inb
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_VIADEV_REG
	mov	x1, x0
	mov	w0, #0
	bl	_outb
Lloh11:
	adrp	x8, _OFFSET_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OFFSET_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_VIADEV_REG
	mov	x1, x0
	mov	w0, #3
	bl	_outb
Lloh14:
	adrp	x8, _OFFSET_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OFFSET_TYPE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_VIADEV_REG
	mov	x1, x0
	mov	w0, #0
	bl	_outb
	str	xzr, [x19]
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIA_REG_CTRL_PAUSE,4,2         ; @VIA_REG_CTRL_PAUSE
	.comm	_VIA_REG_CTRL_TERMINATE,4,2     ; @VIA_REG_CTRL_TERMINATE
	.comm	_VIA_REG_CTRL_RESET,4,2         ; @VIA_REG_CTRL_RESET
	.comm	_OFFSET_CONTROL,4,2             ; @OFFSET_CONTROL
	.comm	_OFFSET_STATUS,4,2              ; @OFFSET_STATUS
	.comm	_OFFSET_TYPE,4,2                ; @OFFSET_TYPE
	.no_dead_strip	_snd_via82xx_channel_reset
.subsections_via_symbols
