	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxp_dma_read
_vxp_dma_read:                          ## @vxp_dma_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	_VX_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_vxp_reg_addr
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rbx
	movq	(%r12), %r13
	addq	%rbx, %r13
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	andl	$-2, %eax
	movl	%r14d, %edi
	subl	%eax, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_vx_setup_pseudo_dma
	movq	%rbx, %rdx
	leal	(%rbx,%r14), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %r12d
	cmpl	%r12d, %eax
	jle	LBB0_2
## %bb.3:
	subl	%edx, %r12d
	cmpl	$2, %r12d
	jl	LBB0_6
## %bb.4:
	movl	%r12d, %ebx
	shrl	%ebx
	incl	%ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_inw
	movl	%eax, %edi
	callq	_le16_to_cpu
	movw	%ax, (%r13)
	addq	$2, %r13
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
LBB0_6:
	subl	%r12d, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	xorl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rcx
	movl	(%rbx), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	addl	%r14d, %eax
	movl	%eax, (%rcx)
	cmpl	$4, %r14d
	jl	LBB0_10
## %bb.8:
	shrl	%r14d
	incl	%r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_inw
	movl	%eax, %edi
	callq	_le16_to_cpu
	movw	%ax, (%r13)
	addq	$2, %r13
	decl	%r14d
	cmpl	$2, %r14d
	ja	LBB0_9
LBB0_10:
	movq	_VXP_DLG_DMAREAD_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rbx), %edx
	movl	%edx, (%rbx)
	movq	_DIALOG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_outb
	movq	%r15, %rdi
	callq	_inw
	movl	%eax, %edi
	callq	_le16_to_cpu
	movw	%ax, (%r13)
	movq	_VXP_DLG_DMA16_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rbx), %edx
	movl	%edx, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_outb
	movq	_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vx_outb                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_DMA,4,2                     ## @VX_DMA
	.comm	_VXP_DLG_DMAREAD_SEL_MASK,4,2   ## @VXP_DLG_DMAREAD_SEL_MASK
	.comm	_DIALOG,4,2                     ## @DIALOG
	.comm	_VXP_DLG_DMA16_SEL_MASK,4,2     ## @VXP_DLG_DMA16_SEL_MASK
	.comm	_ICR,4,2                        ## @ICR
	.no_dead_strip	_vxp_dma_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxp_dma_read
_vxp_dma_read:                          ; @vxp_dma_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VX_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VX_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_vxp_reg_addr
	mov	x20, x0
	ldrsw	x25, [x22]
	ldr	x24, [x23]
	and	w8, w21, #0x1
	cmp	w21, #0
	cneg	w0, w8, lt
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x24, x24, x25
	mov	x0, x19
	mov	w1, #0
	bl	_vx_setup_pseudo_dma
	ldr	w8, [x22, #4]
	add	w9, w25, w21
	cmp	w9, w8
	b.le	LBB0_7
; %bb.3:
	sub	w8, w8, w25
	sub	w21, w21, w8
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.4:
	lsr	w8, w8, #1
	add	w25, w8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_inw
	bl	_le16_to_cpu
	strh	w0, [x24], #2
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_5
LBB0_6:
	mov	w8, #0
	ldr	x24, [x23]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x22]
LBB0_8:
	add	w8, w8, w21
	str	w8, [x22]
	cmp	w21, #4
	b.lt	LBB0_11
; %bb.9:
	lsr	w8, w21, #1
	add	w21, w8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_inw
	bl	_le16_to_cpu
	strh	w0, [x24], #2
	sub	w21, w21, #1
	cmp	w21, #2
	b.hi	LBB0_10
LBB0_11:
Lloh3:
	adrp	x8, _VXP_DLG_DMAREAD_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VXP_DLG_DMAREAD_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w2, w9, w8
	str	w2, [x19]
Lloh6:
	adrp	x21, _DIALOG@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DIALOG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_outb
	mov	x0, x20
	bl	_inw
	bl	_le16_to_cpu
Lloh8:
	adrp	x8, _VXP_DLG_DMA16_SEL_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VXP_DLG_DMA16_SEL_MASK@GOTPAGEOFF]
	strh	w0, [x24]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w2, w9, w8
	str	w2, [x19]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_outb
Lloh11:
	adrp	x8, _ICR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vx_outb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_DMA,4,2                     ; @VX_DMA
	.comm	_VXP_DLG_DMAREAD_SEL_MASK,4,2   ; @VXP_DLG_DMAREAD_SEL_MASK
	.comm	_DIALOG,4,2                     ; @DIALOG
	.comm	_VXP_DLG_DMA16_SEL_MASK,4,2     ; @VXP_DLG_DMA16_SEL_MASK
	.comm	_ICR,4,2                        ; @ICR
	.no_dead_strip	_vxp_dma_read
.subsections_via_symbols
