	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_setup_pseudo_dma
_vx_setup_pseudo_dma:                   ## @vx_setup_pseudo_dma
	.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
	movq	_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	movq	_ICR_TREQ@GOTPCREL(%rip), %rcx
	cmoveq	_ICR_RREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VXP_DLG_DMAWRITE_SEL_MASK@GOTPCREL(%rip), %r14
	cmoveq	_VXP_DLG_DMAREAD_SEL_MASK@GOTPCREL(%rip), %r14
	movl	%eax, %esi
	callq	_vx_outb
	movq	_ISR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_vx_inb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vx_outb
	movq	_VXP_DLG_DMA16_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rbx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rbx)
	orl	(%r14), %edx
	movl	%edx, (%rbx)
	movq	_DIALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vx_outb                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICR,4,2                        ## @ICR
	.comm	_ICR_TREQ,4,2                   ## @ICR_TREQ
	.comm	_ICR_RREQ,4,2                   ## @ICR_RREQ
	.comm	_ISR,4,2                        ## @ISR
	.comm	_VXP_DLG_DMA16_SEL_MASK,4,2     ## @VXP_DLG_DMA16_SEL_MASK
	.comm	_VXP_DLG_DMAWRITE_SEL_MASK,4,2  ## @VXP_DLG_DMAWRITE_SEL_MASK
	.comm	_VXP_DLG_DMAREAD_SEL_MASK,4,2   ## @VXP_DLG_DMAREAD_SEL_MASK
	.comm	_DIALOG,4,2                     ## @DIALOG
	.no_dead_strip	_vx_setup_pseudo_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_setup_pseudo_dma
_vx_setup_pseudo_dma:                   ; @vx_setup_pseudo_dma
	.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, x0
Lloh0:
	adrp	x8, _ICR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ICR_TREQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICR_TREQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _ICR_RREQ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ICR_RREQ@GOTPAGEOFF]
	cmp	w1, #0
	csel	x9, x10, x9, eq
	ldr	w2, [x9]
Lloh7:
	adrp	x9, _VXP_DLG_DMAWRITE_SEL_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VXP_DLG_DMAWRITE_SEL_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x10, _VXP_DLG_DMAREAD_SEL_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VXP_DLG_DMAREAD_SEL_MASK@GOTPAGEOFF]
	csel	x20, x10, x9, eq
	mov	x1, x8
	bl	_vx_outb
Lloh11:
	adrp	x21, _ISR@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ISR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_inb
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_vx_outb
Lloh13:
	adrp	x8, _VXP_DLG_DMA16_SEL_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VXP_DLG_DMA16_SEL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x20]
	orr	w2, w9, w8
	str	w2, [x19]
Lloh16:
	adrp	x8, _DIALOG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DIALOG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, 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
	b	_vx_outb
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ICR,4,2                        ; @ICR
	.comm	_ICR_TREQ,4,2                   ; @ICR_TREQ
	.comm	_ICR_RREQ,4,2                   ; @ICR_RREQ
	.comm	_ISR,4,2                        ; @ISR
	.comm	_VXP_DLG_DMA16_SEL_MASK,4,2     ; @VXP_DLG_DMA16_SEL_MASK
	.comm	_VXP_DLG_DMAWRITE_SEL_MASK,4,2  ; @VXP_DLG_DMAWRITE_SEL_MASK
	.comm	_VXP_DLG_DMAREAD_SEL_MASK,4,2   ; @VXP_DLG_DMAREAD_SEL_MASK
	.comm	_DIALOG,4,2                     ; @DIALOG
	.no_dead_strip	_vx_setup_pseudo_dma
.subsections_via_symbols
