	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_via82xx_pcm_prepare
_snd_via82xx_pcm_prepare:               ## @snd_via82xx_pcm_prepare
	.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	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_via82xx_channel_reset
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_via82xx_set_table_ptr
	movq	_VIA_REG_TYPE_AUTOSTART@GOTPCREL(%rip), %rax
	movq	_VIA_REG_TYPE_INT_EOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_VIA_REG_TYPE_INT_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_OFFSET_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_VIADEV_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIA_REG_TYPE_AUTOSTART,4,2     ## @VIA_REG_TYPE_AUTOSTART
	.comm	_VIA_REG_TYPE_INT_EOL,4,2       ## @VIA_REG_TYPE_INT_EOL
	.comm	_VIA_REG_TYPE_INT_FLAG,4,2      ## @VIA_REG_TYPE_INT_FLAG
	.comm	_OFFSET_TYPE,4,2                ## @OFFSET_TYPE
	.no_dead_strip	_snd_via82xx_pcm_prepare
.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_prepare
_snd_via82xx_pcm_prepare:               ; @snd_via82xx_pcm_prepare
	.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	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x19, [x8]
	mov	x1, x19
	bl	_snd_via82xx_channel_reset
	mov	x0, x20
	mov	x1, x19
	bl	_snd_via82xx_set_table_ptr
Lloh0:
	adrp	x8, _VIA_REG_TYPE_AUTOSTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIA_REG_TYPE_AUTOSTART@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VIA_REG_TYPE_INT_EOL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIA_REG_TYPE_INT_EOL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VIA_REG_TYPE_INT_FLAG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VIA_REG_TYPE_INT_FLAG@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w20, w8, w9
Lloh9:
	adrp	x8, _OFFSET_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OFFSET_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_VIADEV_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outb
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIA_REG_TYPE_AUTOSTART,4,2     ; @VIA_REG_TYPE_AUTOSTART
	.comm	_VIA_REG_TYPE_INT_EOL,4,2       ; @VIA_REG_TYPE_INT_EOL
	.comm	_VIA_REG_TYPE_INT_FLAG,4,2      ; @VIA_REG_TYPE_INT_FLAG
	.comm	_OFFSET_TYPE,4,2                ; @OFFSET_TYPE
	.no_dead_strip	_snd_via82xx_pcm_prepare
.subsections_via_symbols
