	.file	"extr_sdhci-esdhc-imx.c_esdhc_set_strobe_dll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"warning! HS400 strobe DLL status REF not lock!\n"
	.align 8
.LC1:
	.string	"warning! HS400 strobe DLL status SLV not lock!\n"
	.text
	.p2align 4
	.type	esdhc_set_strobe_dll, @function
esdhc_set_strobe_dll:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR ESDHC_VENDOR_SPEC[rip]
	add	rbp, QWORD PTR 8[rdi]
	mov	rdi, rbp
	call	readl@PLT
	mov	edi, DWORD PTR ESDHC_VENDOR_SPEC_FRC_SDCLK_ON[rip]
	mov	rsi, rbp
	not	edi
	and	edi, eax
	call	writel@PLT
	mov	edi, DWORD PTR ESDHC_STROBE_DLL_CTRL_RESET[rip]
	mov	rsi, QWORD PTR ESDHC_STROBE_DLL_CTRL[rip]
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR ESDHC_STROBE_DLL_CTRL[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	ecx, DWORD PTR ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT[rip]
	mov	eax, 7
	mov	edi, DWORD PTR ESDHC_STROBE_DLL_CTRL_ENABLE[rip]
	or	edi, DWORD PTR ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT[rip]
	mov	rsi, QWORD PTR ESDHC_STROBE_DLL_CTRL[rip]
	sal	eax, cl
	add	rsi, QWORD PTR 8[rbx]
	or	edi, eax
	call	writel@PLT
	mov	edi, 5
	call	udelay@PLT
	mov	rdi, QWORD PTR ESDHC_STROBE_DLL_STATUS[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	readl@PLT
	mov	ebp, eax
	test	DWORD PTR ESDHC_STROBE_DLL_STS_REF_LOCK[rip], eax
	je	.L6
	test	DWORD PTR ESDHC_STROBE_DLL_STS_SLV_LOCK[rip], ebp
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	mmc_dev@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_warn@PLT
	test	DWORD PTR ESDHC_STROBE_DLL_STS_SLV_LOCK[rip], ebp
	jne	.L1
.L7:
	mov	edi, DWORD PTR [rbx]
	call	mmc_dev@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dev_warn@PLT
	.cfi_endproc
.LFE0:
	.size	esdhc_set_strobe_dll, .-esdhc_set_strobe_dll
	.comm	ESDHC_VENDOR_SPEC_FRC_SDCLK_ON,4,4
	.comm	ESDHC_VENDOR_SPEC,8,8
	.comm	ESDHC_STROBE_DLL_STS_SLV_LOCK,4,4
	.comm	ESDHC_STROBE_DLL_STS_REF_LOCK,4,4
	.comm	ESDHC_STROBE_DLL_STATUS,8,8
	.comm	ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_RESET,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_ENABLE,4,4
	.comm	ESDHC_STROBE_DLL_CTRL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sdhci-esdhc-imx.c_esdhc_set_strobe_dll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"warning! HS400 strobe DLL status REF not lock!\012\000"
	.align	2
.LC1:
	.ascii	"warning! HS400 strobe DLL status SLV not lock!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esdhc_set_strobe_dll, %function
esdhc_set_strobe_dll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L7
	mov	r4, r0
	ldr	r3, [r6]
	ldr	r0, [r0, #4]
	ldr	r5, .L7+4
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L7+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	bic	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	ldr	r2, [r5]
	ldr	r3, .L7+12
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	add	r1, r1, r2
	bl	writel
	ldr	r3, [r5]
	ldr	r1, [r4, #4]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel
	mov	r0, #7
	ldr	r2, .L7+16
	ldr	r3, .L7+20
	ldr	lr, [r2]
	ldr	r2, .L7+24
	ldr	r3, [r3]
	ldr	ip, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [r5]
	orr	r3, r3, lr
	orr	r0, r3, r0, lsl r2
	add	r1, ip, r1
	bl	writel
	mov	r0, #5
	bl	udelay
	ldr	r3, .L7+28
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L7+32
	mov	r5, r0
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L6
.L2:
	ldr	r3, .L7+36
	ldr	r3, [r3]
	tst	r5, r3
	popne	{r4, r5, r6, pc}
	ldr	r0, [r4]
	bl	mmc_dev
	pop	{r4, r5, r6, lr}
	ldr	r1, .L7+40
	b	dev_warn
.L6:
	ldr	r0, [r4]
	bl	mmc_dev
	ldr	r1, .L7+44
	bl	dev_warn
	b	.L2
.L8:
	.align	2
.L7:
	.word	ESDHC_VENDOR_SPEC
	.word	ESDHC_STROBE_DLL_CTRL
	.word	ESDHC_VENDOR_SPEC_FRC_SDCLK_ON
	.word	ESDHC_STROBE_DLL_CTRL_RESET
	.word	ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT
	.word	ESDHC_STROBE_DLL_CTRL_ENABLE
	.word	ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT
	.word	ESDHC_STROBE_DLL_STATUS
	.word	ESDHC_STROBE_DLL_STS_REF_LOCK
	.word	ESDHC_STROBE_DLL_STS_SLV_LOCK
	.word	.LC1
	.word	.LC0
	.size	esdhc_set_strobe_dll, .-esdhc_set_strobe_dll
	.comm	ESDHC_VENDOR_SPEC_FRC_SDCLK_ON,4,4
	.comm	ESDHC_VENDOR_SPEC,4,4
	.comm	ESDHC_STROBE_DLL_STS_SLV_LOCK,4,4
	.comm	ESDHC_STROBE_DLL_STS_REF_LOCK,4,4
	.comm	ESDHC_STROBE_DLL_STATUS,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_SLV_UPDATE_INT_DEFAULT,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_RESET,4,4
	.comm	ESDHC_STROBE_DLL_CTRL_ENABLE,4,4
	.comm	ESDHC_STROBE_DLL_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
