	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esdhc_set_strobe_dll
_esdhc_set_strobe_dll:                  ## @esdhc_set_strobe_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ESDHC_VENDOR_SPEC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_ESDHC_VENDOR_SPEC_FRC_SDCLK_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_ESDHC_STROBE_DLL_CTRL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ESDHC_STROBE_DLL_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_ESDHC_STROBE_DLL_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movq	_ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$7, %edi
	shll	%cl, %edi
	orl	%edx, %edi
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	$5, %edi
	callq	_udelay
	movq	_ESDHC_STROBE_DLL_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_ESDHC_STROBE_DLL_STS_REF_LOCK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
LBB0_2:
	movq	_ESDHC_STROBE_DLL_STS_SLV_LOCK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %edi
	callq	_mmc_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ESDHC_VENDOR_SPEC,8,3          ## @ESDHC_VENDOR_SPEC
	.comm	_ESDHC_VENDOR_SPEC_FRC_SDCLK_ON,4,2 ## @ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
	.comm	_ESDHC_STROBE_DLL_CTRL_RESET,4,2 ## @ESDHC_STROBE_DLL_CTRL_RESET
	.comm	_ESDHC_STROBE_DLL_CTRL,8,3      ## @ESDHC_STROBE_DLL_CTRL
	.comm	_ESDHC_STROBE_DLL_CTRL_ENABLE,4,2 ## @ESDHC_STROBE_DLL_CTRL_ENABLE
	.comm	_ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT,4,2 ## @ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT
	.comm	_ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT,4,2 ## @ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT
	.comm	_ESDHC_STROBE_DLL_STATUS,8,3    ## @ESDHC_STROBE_DLL_STATUS
	.comm	_ESDHC_STROBE_DLL_STS_REF_LOCK,4,2 ## @ESDHC_STROBE_DLL_STS_REF_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning! HS400 strobe DLL status REF not lock!\n"

	.comm	_ESDHC_STROBE_DLL_STS_SLV_LOCK,4,2 ## @ESDHC_STROBE_DLL_STS_SLV_LOCK
L_.str.1:                               ## @.str.1
	.asciz	"warning! HS400 strobe DLL status SLV not lock!\n"

	.no_dead_strip	_esdhc_set_strobe_dll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esdhc_set_strobe_dll
_esdhc_set_strobe_dll:                  ; @esdhc_set_strobe_dll
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _ESDHC_VENDOR_SPEC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ESDHC_VENDOR_SPEC@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _ESDHC_VENDOR_SPEC_FRC_SDCLK_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESDHC_VENDOR_SPEC_FRC_SDCLK_ON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh5:
	adrp	x8, _ESDHC_STROBE_DLL_CTRL_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ESDHC_STROBE_DLL_CTRL_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x20, _ESDHC_STROBE_DLL_CTRL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _ESDHC_STROBE_DLL_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh10:
	adrp	x8, _ESDHC_STROBE_DLL_CTRL_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ESDHC_STROBE_DLL_CTRL_ENABLE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	w10, #7
	lsl	w9, w10, w9
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #5
	bl	_udelay
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _ESDHC_STROBE_DLL_STATUS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ESDHC_STROBE_DLL_STATUS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh22:
	adrp	x8, _ESDHC_STROBE_DLL_STS_REF_LOCK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ESDHC_STROBE_DLL_STS_REF_LOCK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
Lloh27:
	adrp	x8, _ESDHC_STROBE_DLL_STS_SLV_LOCK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ESDHC_STROBE_DLL_STS_SLV_LOCK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19]
	bl	_mmc_dev
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ESDHC_VENDOR_SPEC,8,3          ; @ESDHC_VENDOR_SPEC
	.comm	_ESDHC_VENDOR_SPEC_FRC_SDCLK_ON,4,2 ; @ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
	.comm	_ESDHC_STROBE_DLL_CTRL_RESET,4,2 ; @ESDHC_STROBE_DLL_CTRL_RESET
	.comm	_ESDHC_STROBE_DLL_CTRL,8,3      ; @ESDHC_STROBE_DLL_CTRL
	.comm	_ESDHC_STROBE_DLL_CTRL_ENABLE,4,2 ; @ESDHC_STROBE_DLL_CTRL_ENABLE
	.comm	_ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT,4,2 ; @ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT
	.comm	_ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT,4,2 ; @ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT
	.comm	_ESDHC_STROBE_DLL_STATUS,8,3    ; @ESDHC_STROBE_DLL_STATUS
	.comm	_ESDHC_STROBE_DLL_STS_REF_LOCK,4,2 ; @ESDHC_STROBE_DLL_STS_REF_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning! HS400 strobe DLL status REF not lock!\n"

	.comm	_ESDHC_STROBE_DLL_STS_SLV_LOCK,4,2 ; @ESDHC_STROBE_DLL_STS_SLV_LOCK
l_.str.1:                               ; @.str.1
	.asciz	"warning! HS400 strobe DLL status SLV not lock!\n"

	.no_dead_strip	_esdhc_set_strobe_dll
.subsections_via_symbols
