	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via_set_piomode
_via_set_piomode:                       ## @via_set_piomode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_VIA_BAD_AST@GOTPCREL(%rip), %rcx
	xorl	%r8d, %r8d
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%r8b
	movq	_VIA_UDMA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%eax, %r9
	movl	(%rsi), %edx
	leaq	_via_set_piomode.tclock(%rip), %rcx
	movl	(%rcx,%r9,4), %ecx
	leaq	_via_set_piomode.udma(%rip), %rax
	movl	(%rax,%r9,4), %r9d
	popq	%rbp
	jmp	_via_do_set_mode                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIA_BAD_AST,4,2                ## @VIA_BAD_AST
	.comm	_VIA_UDMA,4,2                   ## @VIA_UDMA
	.section	__TEXT,__const
	.p2align	4                               ## @via_set_piomode.tclock
_via_set_piomode.tclock:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4

	.p2align	4                               ## @via_set_piomode.udma
_via_set_piomode.udma:
	.long	0                               ## 0x0
	.long	33                              ## 0x21
	.long	66                              ## 0x42
	.long	100                             ## 0x64
	.long	133                             ## 0x85

	.no_dead_strip	_via_set_piomode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via_set_piomode
_via_set_piomode:                       ; @via_set_piomode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _VIA_BAD_AST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VIA_BAD_AST@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w4, eq
Lloh3:
	adrp	x9, _VIA_UDMA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIA_UDMA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w2, [x1]
	sbfiz	x8, x8, #2, #32
Lloh6:
	adrp	x9, _via_set_piomode.tclock@PAGE
Lloh7:
	add	x9, x9, _via_set_piomode.tclock@PAGEOFF
	ldr	w3, [x9, x8]
Lloh8:
	adrp	x9, _via_set_piomode.udma@PAGE
Lloh9:
	add	x9, x9, _via_set_piomode.udma@PAGEOFF
	ldr	w5, [x9, x8]
	b	_via_do_set_mode
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIA_BAD_AST,4,2                ; @VIA_BAD_AST
	.comm	_VIA_UDMA,4,2                   ; @VIA_UDMA
	.section	__TEXT,__const
	.p2align	2                               ; @via_set_piomode.tclock
_via_set_piomode.tclock:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4

	.p2align	2                               ; @via_set_piomode.udma
_via_set_piomode.udma:
	.long	0                               ; 0x0
	.long	33                              ; 0x21
	.long	66                              ; 0x42
	.long	100                             ; 0x64
	.long	133                             ; 0x85

	.no_dead_strip	_via_set_piomode
.subsections_via_symbols
