	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_start_read
_dma_start_read:                        ## @dma_start_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_oxnas_ram_dma_settings@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	%rdi, -48(%rbp)
	movq	_OXNAS_DMA_MODE_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_oxnas_sata_dma_settings@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_encode_control_status
	movq	_SATA_DMA_REGS_BASE@GOTPCREL(%rip), %rbx
	movq	_DMA_CTRL_STATUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	(%r12), %rdi
	movq	_DMA_BASE_SRC_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	-48(%rbp), %rdi
	movq	_DMA_BASE_DST_ADR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_encode_final_eot
	movq	_DMA_BYTE_CNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_writel
	xorl	%eax, %eax
	callq	_dma_start
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_oxnas_ram_dma_settings,16,3    ## @oxnas_ram_dma_settings
	.comm	_OXNAS_DMA_MODE_INC,4,2         ## @OXNAS_DMA_MODE_INC
	.comm	_oxnas_sata_dma_settings,8,3    ## @oxnas_sata_dma_settings
	.comm	_SATA_DMA_REGS_BASE,8,3         ## @SATA_DMA_REGS_BASE
	.comm	_DMA_CTRL_STATUS,8,3            ## @DMA_CTRL_STATUS
	.comm	_DMA_BASE_SRC_ADR,8,3           ## @DMA_BASE_SRC_ADR
	.comm	_DMA_BASE_DST_ADR,8,3           ## @DMA_BASE_DST_ADR
	.comm	_DMA_BYTE_CNT,8,3               ## @DMA_BYTE_CNT
	.no_dead_strip	_dma_start_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_start_read
_dma_start_read:                        ; @dma_start_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _oxnas_ram_dma_settings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _oxnas_ram_dma_settings@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	str	x0, [sp]
Lloh3:
	adrp	x8, _OXNAS_DMA_MODE_INC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OXNAS_DMA_MODE_INC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh6:
	adrp	x20, _oxnas_sata_dma_settings@GOTPAGE
Lloh7:
	ldr	x20, [x20, _oxnas_sata_dma_settings@GOTPAGEOFF]
	mov	x1, sp
	mov	x0, x20
	bl	_encode_control_status
Lloh8:
	adrp	x21, _SATA_DMA_REGS_BASE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SATA_DMA_REGS_BASE@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _DMA_CTRL_STATUS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DMA_CTRL_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x20]
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _DMA_BASE_SRC_ADR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMA_BASE_SRC_ADR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [sp]
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _DMA_BASE_DST_ADR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMA_BASE_DST_ADR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_encode_final_eot
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _DMA_BYTE_CNT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DMA_BYTE_CNT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	bl	_dma_start
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_oxnas_ram_dma_settings,16,3    ; @oxnas_ram_dma_settings
	.comm	_OXNAS_DMA_MODE_INC,4,2         ; @OXNAS_DMA_MODE_INC
	.comm	_oxnas_sata_dma_settings,8,3    ; @oxnas_sata_dma_settings
	.comm	_SATA_DMA_REGS_BASE,8,3         ; @SATA_DMA_REGS_BASE
	.comm	_DMA_CTRL_STATUS,8,3            ; @DMA_CTRL_STATUS
	.comm	_DMA_BASE_SRC_ADR,8,3           ; @DMA_BASE_SRC_ADR
	.comm	_DMA_BASE_DST_ADR,8,3           ; @DMA_BASE_DST_ADR
	.comm	_DMA_BYTE_CNT,8,3               ; @DMA_BYTE_CNT
	.no_dead_strip	_dma_start_read
.subsections_via_symbols
