	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_dma_config
_wmt_dma_config:                        ## @wmt_dma_config
	.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	%rdx, %r14
	movl	%esi, %r15d
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	_DMA_IER_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDDMA_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_SDDMA_DESPR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_SDDMA_CCR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_PDMA_WRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_DMA_CCR_PERIPHERAL_TO_IF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	%eax, %edi
	movq	_DMA_CCR_IF_TO_PERIPHERAL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpq	%r14, %r12
	cmovel	%eax, %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_IER_INT_EN,4,2             ## @DMA_IER_INT_EN
	.comm	_SDDMA_IER,8,3                  ## @SDDMA_IER
	.comm	_SDDMA_DESPR,8,3                ## @SDDMA_DESPR
	.comm	_SDDMA_CCR,8,3                  ## @SDDMA_CCR
	.comm	_PDMA_WRITE,8,3                 ## @PDMA_WRITE
	.comm	_DMA_CCR_IF_TO_PERIPHERAL,4,2   ## @DMA_CCR_IF_TO_PERIPHERAL
	.comm	_DMA_CCR_PERIPHERAL_TO_IF,4,2   ## @DMA_CCR_PERIPHERAL_TO_IF
	.no_dead_strip	_wmt_dma_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_dma_config
_wmt_dma_config:                        ; @wmt_dma_config
	.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, x2
	mov	x20, x1
	bl	_mmc_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _DMA_IER_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_IER_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _SDDMA_IER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDDMA_IER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _SDDMA_DESPR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDDMA_DESPR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x21]
Lloh9:
	adrp	x20, _SDDMA_CCR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SDDMA_CCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh11:
	adrp	x8, _PDMA_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PDMA_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _DMA_CCR_PERIPHERAL_TO_IF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_CCR_PERIPHERAL_TO_IF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh17:
	adrp	x9, _DMA_CCR_IF_TO_PERIPHERAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DMA_CCR_IF_TO_PERIPHERAL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w9, w9, w0
	cmp	x22, x19
	csel	w0, w9, w8, eq
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_IER_INT_EN,4,2             ; @DMA_IER_INT_EN
	.comm	_SDDMA_IER,8,3                  ; @SDDMA_IER
	.comm	_SDDMA_DESPR,8,3                ; @SDDMA_DESPR
	.comm	_SDDMA_CCR,8,3                  ; @SDDMA_CCR
	.comm	_PDMA_WRITE,8,3                 ; @PDMA_WRITE
	.comm	_DMA_CCR_IF_TO_PERIPHERAL,4,2   ; @DMA_CCR_IF_TO_PERIPHERAL
	.comm	_DMA_CCR_PERIPHERAL_TO_IF,4,2   ; @DMA_CCR_PERIPHERAL_TO_IF
	.no_dead_strip	_wmt_dma_config
.subsections_via_symbols
