	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via_fire_dmablit
_via_fire_dmablit:                      ## @via_fire_dmablit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	(%rdi), %r13
	movq	_VIA_PCI_DMA_MAR0@GOTPCREL(%rip), %rax
	movl	%edx, %ecx
	shll	$4, %ecx
	movslq	%ecx, %r12
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_via_write
	movq	_VIA_PCI_DMA_DAR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_via_write
	movq	_VIA_PCI_DMA_CSR0@GOTPCREL(%rip), %rax
	shll	$2, %ebx
	movslq	%ebx, %r15
	movq	(%rax), %rsi
	movq	%rax, %rbx
	movq	_VIA_DMA_CSR_DD@GOTPCREL(%rip), %rax
	movq	_VIA_DMA_CSR_TD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	addq	%r15, %rsi
	movq	_VIA_DMA_CSR_DE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_via_write
	movq	_VIA_PCI_DMA_MR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	_VIA_DMA_MR_CM@GOTPCREL(%rip), %rax
	movq	_VIA_DMA_MR_TDIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_via_write
	movq	_VIA_PCI_DMA_BCR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_via_write
	movq	_VIA_PCI_DMA_DPR0@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_via_write
	xorl	%eax, %eax
	callq	_wmb
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	movq	_VIA_DMA_CSR_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIA_DMA_CSR_DE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_via_write
	addq	(%rbx), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_via_read                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIA_PCI_DMA_MAR0,8,3           ## @VIA_PCI_DMA_MAR0
	.comm	_VIA_PCI_DMA_DAR0,8,3           ## @VIA_PCI_DMA_DAR0
	.comm	_VIA_PCI_DMA_CSR0,8,3           ## @VIA_PCI_DMA_CSR0
	.comm	_VIA_DMA_CSR_DD,4,2             ## @VIA_DMA_CSR_DD
	.comm	_VIA_DMA_CSR_TD,4,2             ## @VIA_DMA_CSR_TD
	.comm	_VIA_DMA_CSR_DE,4,2             ## @VIA_DMA_CSR_DE
	.comm	_VIA_PCI_DMA_MR0,8,3            ## @VIA_PCI_DMA_MR0
	.comm	_VIA_DMA_MR_CM,4,2              ## @VIA_DMA_MR_CM
	.comm	_VIA_DMA_MR_TDIE,4,2            ## @VIA_DMA_MR_TDIE
	.comm	_VIA_PCI_DMA_BCR0,8,3           ## @VIA_PCI_DMA_BCR0
	.comm	_VIA_PCI_DMA_DPR0,8,3           ## @VIA_PCI_DMA_DPR0
	.comm	_VIA_DMA_CSR_TS,4,2             ## @VIA_DMA_CSR_TS
	.no_dead_strip	_via_fire_dmablit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via_fire_dmablit
_via_fire_dmablit:                      ; @via_fire_dmablit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _VIA_PCI_DMA_MAR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIA_PCI_DMA_MAR0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w9, w2, #4
	sxtw	x23, w9
	add	x1, x8, x23
	mov	x0, x19
	mov	w2, #0
	bl	_via_write
Lloh3:
	adrp	x8, _VIA_PCI_DMA_DAR0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIA_PCI_DMA_DAR0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x19
	mov	w2, #0
	bl	_via_write
Lloh6:
	adrp	x22, _VIA_PCI_DMA_CSR0@GOTPAGE
Lloh7:
	ldr	x22, [x22, _VIA_PCI_DMA_CSR0@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	w9, w21, #2
	sxtw	x21, w9
	add	x1, x8, x21
Lloh8:
	adrp	x8, _VIA_DMA_CSR_DD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIA_DMA_CSR_DD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _VIA_DMA_CSR_TD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VIA_DMA_CSR_TD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x24, _VIA_DMA_CSR_DE@GOTPAGE
Lloh15:
	ldr	x24, [x24, _VIA_DMA_CSR_DE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_via_write
Lloh16:
	adrp	x8, _VIA_PCI_DMA_MR0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VIA_PCI_DMA_MR0@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _VIA_DMA_MR_CM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VIA_DMA_MR_CM@GOTPAGEOFF]
	add	x1, x8, x21
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _VIA_DMA_MR_TDIE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VIA_DMA_MR_TDIE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_via_write
Lloh25:
	adrp	x8, _VIA_PCI_DMA_BCR0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VIA_PCI_DMA_BCR0@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x19
	mov	w2, #0
	bl	_via_write
Lloh28:
	adrp	x8, _VIA_PCI_DMA_DPR0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VIA_PCI_DMA_DPR0@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x1, x8, x23
	ldr	w2, [x20]
	mov	x0, x19
	bl	_via_write
	bl	_wmb
	ldr	x8, [x22]
	add	x1, x8, x21
	ldr	w8, [x24]
Lloh31:
	adrp	x9, _VIA_DMA_CSR_TS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _VIA_DMA_CSR_TS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_via_write
	ldr	x8, [x22]
	add	x1, x8, x21
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_via_read
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIA_PCI_DMA_MAR0,8,3           ; @VIA_PCI_DMA_MAR0
	.comm	_VIA_PCI_DMA_DAR0,8,3           ; @VIA_PCI_DMA_DAR0
	.comm	_VIA_PCI_DMA_CSR0,8,3           ; @VIA_PCI_DMA_CSR0
	.comm	_VIA_DMA_CSR_DD,4,2             ; @VIA_DMA_CSR_DD
	.comm	_VIA_DMA_CSR_TD,4,2             ; @VIA_DMA_CSR_TD
	.comm	_VIA_DMA_CSR_DE,4,2             ; @VIA_DMA_CSR_DE
	.comm	_VIA_PCI_DMA_MR0,8,3            ; @VIA_PCI_DMA_MR0
	.comm	_VIA_DMA_MR_CM,4,2              ; @VIA_DMA_MR_CM
	.comm	_VIA_DMA_MR_TDIE,4,2            ; @VIA_DMA_MR_TDIE
	.comm	_VIA_PCI_DMA_BCR0,8,3           ; @VIA_PCI_DMA_BCR0
	.comm	_VIA_PCI_DMA_DPR0,8,3           ; @VIA_PCI_DMA_DPR0
	.comm	_VIA_DMA_CSR_TS,4,2             ; @VIA_DMA_CSR_TS
	.no_dead_strip	_via_fire_dmablit
.subsections_via_symbols
