	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_idmac_start_dma
_dw_mci_idmac_start_dma:                ## @dw_mci_idmac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	cmpl	$1, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_dw_mci_prepare_desc64
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_dw_mci_prepare_desc32
LBB0_3:
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_wmb
	movq	_SDMMC_CTRL_DMA_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dw_mci_ctrl_reset
	movq	%rbx, %rdi
	callq	_dw_mci_idmac_reset
	movq	_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mci_readl
	movq	_SDMMC_CTRL_USE_IDMAC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mci_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	_BMOD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mci_readl
	movq	_SDMMC_IDMAC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SDMMC_IDMAC_FB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mci_writel
	movq	_PLDMND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_mci_writel
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMMC_CTRL_DMA_RESET,4,2       ## @SDMMC_CTRL_DMA_RESET
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_SDMMC_CTRL_USE_IDMAC,4,2       ## @SDMMC_CTRL_USE_IDMAC
	.comm	_BMOD,4,2                       ## @BMOD
	.comm	_SDMMC_IDMAC_ENABLE,4,2         ## @SDMMC_IDMAC_ENABLE
	.comm	_SDMMC_IDMAC_FB,4,2             ## @SDMMC_IDMAC_FB
	.comm	_PLDMND,4,2                     ## @PLDMND
	.no_dead_strip	_dw_mci_idmac_start_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_start_dma
_dw_mci_idmac_start_dma:                ; @dw_mci_idmac_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	x2, x1
	mov	x19, x0
	ldp	w8, w1, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_dw_mci_prepare_desc64
	mov	x20, x0
	cbnz	w0, LBB0_4
	b	LBB0_3
LBB0_2:
	bl	_dw_mci_prepare_desc32
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_3:
	bl	_wmb
Lloh0:
	adrp	x8, _SDMMC_CTRL_DMA_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMMC_CTRL_DMA_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dw_mci_ctrl_reset
	mov	x0, x19
	bl	_dw_mci_idmac_reset
Lloh3:
	adrp	x21, _CTRL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mci_readl
Lloh5:
	adrp	x8, _SDMMC_CTRL_USE_IDMAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDMMC_CTRL_USE_IDMAC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mci_writel
	bl	_wmb
Lloh8:
	adrp	x21, _BMOD@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BMOD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mci_readl
Lloh10:
	adrp	x8, _SDMMC_IDMAC_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDMMC_IDMAC_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SDMMC_IDMAC_FB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDMMC_IDMAC_FB@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mci_writel
Lloh16:
	adrp	x8, _PLDMND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PLDMND@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mci_writel
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMMC_CTRL_DMA_RESET,4,2       ; @SDMMC_CTRL_DMA_RESET
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_SDMMC_CTRL_USE_IDMAC,4,2       ; @SDMMC_CTRL_USE_IDMAC
	.comm	_BMOD,4,2                       ; @BMOD
	.comm	_SDMMC_IDMAC_ENABLE,4,2         ; @SDMMC_IDMAC_ENABLE
	.comm	_SDMMC_IDMAC_FB,4,2             ; @SDMMC_IDMAC_FB
	.comm	_PLDMND,4,2                     ; @PLDMND
	.no_dead_strip	_dw_mci_idmac_start_dma
.subsections_via_symbols
