	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sprd_enable_phy_dll
_sdhci_sprd_enable_phy_dll:             ## @sdhci_sprd_enable_phy_dll
	.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	%rdi, %rbx
	movq	_SDHCI_SPRD_REG_32_DLL_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_sdhci_readl
	movq	_SDHCI_SPRD_DLL_EN@GOTPCREL(%rip), %r15
	movq	_SDHCI_SPRD_DLL_ALL_CPST_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r15), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1250, %esi                     ## imm = 0x4E2
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_SPRD_DLL_SEARCH_MODE@GOTPCREL(%rip), %rcx
	movq	_SDHCI_SPRD_DLL_INIT_COUNT@GOTPCREL(%rip), %rdx
	orl	(%r12), %eax
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_SDHCI_SPRD_DLL_PHASE_INTERNAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1250, %esi                     ## imm = 0x4E2
	callq	_usleep_range
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	orl	(%r15), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1250, %esi                     ## imm = 0x4E2
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SPRD_REG_32_DLL_CFG,4,2  ## @SDHCI_SPRD_REG_32_DLL_CFG
	.comm	_SDHCI_SPRD_DLL_EN,4,2          ## @SDHCI_SPRD_DLL_EN
	.comm	_SDHCI_SPRD_DLL_ALL_CPST_EN,4,2 ## @SDHCI_SPRD_DLL_ALL_CPST_EN
	.comm	_SDHCI_SPRD_DLL_SEARCH_MODE,4,2 ## @SDHCI_SPRD_DLL_SEARCH_MODE
	.comm	_SDHCI_SPRD_DLL_INIT_COUNT,4,2  ## @SDHCI_SPRD_DLL_INIT_COUNT
	.comm	_SDHCI_SPRD_DLL_PHASE_INTERNAL,4,2 ## @SDHCI_SPRD_DLL_PHASE_INTERNAL
	.no_dead_strip	_sdhci_sprd_enable_phy_dll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_sprd_enable_phy_dll
_sdhci_sprd_enable_phy_dll:             ; @sdhci_sprd_enable_phy_dll
	.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, x0
Lloh0:
	adrp	x20, _SDHCI_SPRD_REG_32_DLL_CFG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDHCI_SPRD_REG_32_DLL_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_sdhci_readl
Lloh2:
	adrp	x21, _SDHCI_SPRD_DLL_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SDHCI_SPRD_DLL_EN@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x22, _SDHCI_SPRD_DLL_ALL_CPST_EN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SDHCI_SPRD_DLL_ALL_CPST_EN@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w2, [x20]
	mov	x0, x19
	bl	_sdhci_writel
	mov	w0, #1000
	mov	w1, #1250
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sdhci_readl
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _SDHCI_SPRD_DLL_SEARCH_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCI_SPRD_DLL_SEARCH_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SDHCI_SPRD_DLL_INIT_COUNT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SDHCI_SPRD_DLL_INIT_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _SDHCI_SPRD_DLL_PHASE_INTERNAL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SDHCI_SPRD_DLL_PHASE_INTERNAL@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w1, w8, w11
	ldr	w2, [x20]
	mov	x0, x19
	bl	_sdhci_writel
	mov	w0, #1000
	mov	w1, #1250
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sdhci_readl
	ldr	w8, [x21]
	orr	w1, w8, w0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_sdhci_writel
	mov	w0, #1000
	mov	w1, #1250
	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	_usleep_range
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SPRD_REG_32_DLL_CFG,4,2  ; @SDHCI_SPRD_REG_32_DLL_CFG
	.comm	_SDHCI_SPRD_DLL_EN,4,2          ; @SDHCI_SPRD_DLL_EN
	.comm	_SDHCI_SPRD_DLL_ALL_CPST_EN,4,2 ; @SDHCI_SPRD_DLL_ALL_CPST_EN
	.comm	_SDHCI_SPRD_DLL_SEARCH_MODE,4,2 ; @SDHCI_SPRD_DLL_SEARCH_MODE
	.comm	_SDHCI_SPRD_DLL_INIT_COUNT,4,2  ; @SDHCI_SPRD_DLL_INIT_COUNT
	.comm	_SDHCI_SPRD_DLL_PHASE_INTERNAL,4,2 ; @SDHCI_SPRD_DLL_PHASE_INTERNAL
	.no_dead_strip	_sdhci_sprd_enable_phy_dll
.subsections_via_symbols
