	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_idmac_stop_dma
_dw_mci_idmac_stop_dma:                 ## @dw_mci_idmac_stop_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_mci_readl
	movq	_SDMMC_CTRL_USE_IDMAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_SDMMC_CTRL_DMA_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mci_writel
	movq	_BMOD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mci_readl
	movq	_SDMMC_IDMAC_ENABLE@GOTPCREL(%rip), %rcx
	movq	_SDMMC_IDMAC_FB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_SDMMC_IDMAC_SWRESET@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mci_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_SDMMC_CTRL_USE_IDMAC,4,2       ## @SDMMC_CTRL_USE_IDMAC
	.comm	_SDMMC_CTRL_DMA_RESET,4,2       ## @SDMMC_CTRL_DMA_RESET
	.comm	_BMOD,4,2                       ## @BMOD
	.comm	_SDMMC_IDMAC_ENABLE,4,2         ## @SDMMC_IDMAC_ENABLE
	.comm	_SDMMC_IDMAC_FB,4,2             ## @SDMMC_IDMAC_FB
	.comm	_SDMMC_IDMAC_SWRESET,4,2        ## @SDMMC_IDMAC_SWRESET
	.no_dead_strip	_dw_mci_idmac_stop_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_idmac_stop_dma
_dw_mci_idmac_stop_dma:                 ; @dw_mci_idmac_stop_dma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_mci_readl
Lloh2:
	adrp	x8, _SDMMC_CTRL_USE_IDMAC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDMMC_CTRL_USE_IDMAC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _SDMMC_CTRL_DMA_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDMMC_CTRL_DMA_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mci_writel
Lloh8:
	adrp	x20, _BMOD@GOTPAGE
Lloh9:
	ldr	x20, [x20, _BMOD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mci_readl
Lloh10:
	adrp	x8, _SDMMC_IDMAC_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDMMC_IDMAC_ENABLE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _SDMMC_IDMAC_FB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDMMC_IDMAC_FB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh16:
	adrp	x9, _SDMMC_IDMAC_SWRESET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SDMMC_IDMAC_SWRESET@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mci_writel
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_SDMMC_CTRL_USE_IDMAC,4,2       ; @SDMMC_CTRL_USE_IDMAC
	.comm	_SDMMC_CTRL_DMA_RESET,4,2       ; @SDMMC_CTRL_DMA_RESET
	.comm	_BMOD,4,2                       ; @BMOD
	.comm	_SDMMC_IDMAC_ENABLE,4,2         ; @SDMMC_IDMAC_ENABLE
	.comm	_SDMMC_IDMAC_FB,4,2             ; @SDMMC_IDMAC_FB
	.comm	_SDMMC_IDMAC_SWRESET,4,2        ; @SDMMC_IDMAC_SWRESET
	.no_dead_strip	_dw_mci_idmac_stop_dma
.subsections_via_symbols
