	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_mmc_start_dma
_sunxi_mmc_start_dma:                   ## @sunxi_mmc_start_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_sunxi_mmc_init_idma_des
	movq	_REG_GCTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_mmc_readl
	movl	%eax, %ebx
	movq	_SDXC_DMA_ENABLE_BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mmc_writel
	movq	_SDXC_DMA_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mmc_writel
	movq	_REG_DMAC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SDXC_IDMAC_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mmc_writel
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_REG_IDIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SDXC_IDMAC_RECEIVE_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mmc_writel
LBB0_2:
	movl	(%rbx), %esi
	movq	_SDXC_IDMAC_FIX_BURST@GOTPCREL(%rip), %rax
	movq	_SDXC_IDMAC_IDMA_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GCTRL,4,2                  ## @REG_GCTRL
	.comm	_SDXC_DMA_ENABLE_BIT,4,2        ## @SDXC_DMA_ENABLE_BIT
	.comm	_SDXC_DMA_RESET,4,2             ## @SDXC_DMA_RESET
	.comm	_REG_DMAC,4,2                   ## @REG_DMAC
	.comm	_SDXC_IDMAC_SOFT_RESET,4,2      ## @SDXC_IDMAC_SOFT_RESET
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_REG_IDIE,4,2                   ## @REG_IDIE
	.comm	_SDXC_IDMAC_RECEIVE_INTERRUPT,4,2 ## @SDXC_IDMAC_RECEIVE_INTERRUPT
	.comm	_SDXC_IDMAC_FIX_BURST,4,2       ## @SDXC_IDMAC_FIX_BURST
	.comm	_SDXC_IDMAC_IDMA_ON,4,2         ## @SDXC_IDMAC_IDMA_ON
	.no_dead_strip	_sunxi_mmc_start_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_mmc_start_dma
_sunxi_mmc_start_dma:                   ; @sunxi_mmc_start_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	x20, x1
	mov	x19, x0
	bl	_sunxi_mmc_init_idma_des
Lloh0:
	adrp	x22, _REG_GCTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_GCTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mmc_readl
Lloh2:
	adrp	x8, _SDXC_DMA_ENABLE_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDXC_DMA_ENABLE_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w21, w8, w0
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_mmc_writel
Lloh5:
	adrp	x8, _SDXC_DMA_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDXC_DMA_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w21
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mmc_writel
Lloh8:
	adrp	x21, _REG_DMAC@GOTPAGE
Lloh9:
	ldr	x21, [x21, _REG_DMAC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _SDXC_IDMAC_SOFT_RESET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDXC_IDMAC_SOFT_RESET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mmc_writel
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _REG_IDIE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_IDIE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SDXC_IDMAC_RECEIVE_INTERRUPT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SDXC_IDMAC_RECEIVE_INTERRUPT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mmc_writel
LBB0_2:
	ldr	w1, [x21]
Lloh22:
	adrp	x8, _SDXC_IDMAC_FIX_BURST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SDXC_IDMAC_FIX_BURST@GOTPAGEOFF]
Lloh24:
	adrp	x9, _SDXC_IDMAC_IDMA_ON@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SDXC_IDMAC_IDMA_ON@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	orr	w2, w9, w8
	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	_mmc_writel
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GCTRL,4,2                  ; @REG_GCTRL
	.comm	_SDXC_DMA_ENABLE_BIT,4,2        ; @SDXC_DMA_ENABLE_BIT
	.comm	_SDXC_DMA_RESET,4,2             ; @SDXC_DMA_RESET
	.comm	_REG_DMAC,4,2                   ; @REG_DMAC
	.comm	_SDXC_IDMAC_SOFT_RESET,4,2      ; @SDXC_IDMAC_SOFT_RESET
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_REG_IDIE,4,2                   ; @REG_IDIE
	.comm	_SDXC_IDMAC_RECEIVE_INTERRUPT,4,2 ; @SDXC_IDMAC_RECEIVE_INTERRUPT
	.comm	_SDXC_IDMAC_FIX_BURST,4,2       ; @SDXC_IDMAC_FIX_BURST
	.comm	_SDXC_IDMAC_IDMA_ON,4,2         ; @SDXC_IDMAC_IDMA_ON
	.no_dead_strip	_sunxi_mmc_start_dma
.subsections_via_symbols
