	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_reset
_esdhc_reset:                           ## @esdhc_reset
	.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, %r15d
	movq	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sdhci_reset
	movl	(%rbx), %esi
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movl	(%rbx), %esi
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_of_find_compatible_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$5, %edi
	callq	_mdelay
LBB0_2:
	movq	_SDHCI_RESET_ALL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_ESDHC_TBCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_ESDHC_TB_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.5:
	movq	_ESDHC_DLLCFG1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_ESDHC_DLL_PD_PULSE_STRETCH_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_writel                   ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,p2020-esdhc"

	.comm	_SDHCI_RESET_ALL,4,2            ## @SDHCI_RESET_ALL
	.comm	_ESDHC_TBCTL,4,2                ## @ESDHC_TBCTL
	.comm	_ESDHC_TB_EN,4,2                ## @ESDHC_TB_EN
	.comm	_ESDHC_DLLCFG1,4,2              ## @ESDHC_DLLCFG1
	.comm	_ESDHC_DLL_PD_PULSE_STRETCH_SEL,4,2 ## @ESDHC_DLL_PD_PULSE_STRETCH_SEL
	.no_dead_strip	_esdhc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_reset
_esdhc_reset:                           ; @esdhc_reset
	.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	x21, x1
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_reset
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _SDHCI_INT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_INT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sdhci_writel
	ldr	w1, [x19]
Lloh3:
	adrp	x8, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sdhci_writel
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, #0
	bl	_of_find_compatible_node
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #5
	bl	_mdelay
LBB0_2:
Lloh8:
	adrp	x8, _SDHCI_RESET_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDHCI_RESET_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.3:
Lloh11:
	adrp	x21, _ESDHC_TBCTL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ESDHC_TBCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sdhci_readl
Lloh13:
	adrp	x8, _ESDHC_TB_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ESDHC_TB_EN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writel
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
Lloh16:
	adrp	x20, _ESDHC_DLLCFG1@GOTPAGE
Lloh17:
	ldr	x20, [x20, _ESDHC_DLLCFG1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sdhci_readl
Lloh18:
	adrp	x8, _ESDHC_DLL_PD_PULSE_STRETCH_SEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ESDHC_DLL_PD_PULSE_STRETCH_SEL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x20]
	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	_sdhci_writel
LBB0_5:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,p2020-esdhc"

	.comm	_SDHCI_RESET_ALL,4,2            ; @SDHCI_RESET_ALL
	.comm	_ESDHC_TBCTL,4,2                ; @ESDHC_TBCTL
	.comm	_ESDHC_TB_EN,4,2                ; @ESDHC_TB_EN
	.comm	_ESDHC_DLLCFG1,4,2              ; @ESDHC_DLLCFG1
	.comm	_ESDHC_DLL_PD_PULSE_STRETCH_SEL,4,2 ; @ESDHC_DLL_PD_PULSE_STRETCH_SEL
	.no_dead_strip	_esdhc_reset
.subsections_via_symbols
