	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_dma_init
_wmt_dma_init:                          ## @wmt_dma_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	_DMA_GCR_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDDMA_GCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_DMA_GCR_DMA_EN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	xorl	%ecx, %ecx
	testl	%eax, (%r15)
	sete	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_GCR_SOFT_RESET,4,2         ## @DMA_GCR_SOFT_RESET
	.comm	_SDDMA_GCR,8,3                  ## @SDDMA_GCR
	.comm	_DMA_GCR_DMA_EN,4,2             ## @DMA_GCR_DMA_EN
	.no_dead_strip	_wmt_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_dma_init
_wmt_dma_init:                          ; @wmt_dma_init
	.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
	bl	_mmc_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _DMA_GCR_SOFT_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_GCR_SOFT_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _SDDMA_GCR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SDDMA_GCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh5:
	adrp	x21, _DMA_GCR_DMA_EN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DMA_GCR_DMA_EN@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	tst	w8, w0
	cset	w0, eq
	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
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_GCR_SOFT_RESET,4,2         ; @DMA_GCR_SOFT_RESET
	.comm	_SDDMA_GCR,8,3                  ; @SDDMA_GCR
	.comm	_DMA_GCR_DMA_EN,4,2             ; @DMA_GCR_DMA_EN
	.no_dead_strip	_wmt_dma_init
.subsections_via_symbols
