	.file	"extr_sdhci-of-esdhc.c_sdhci_esdhc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"little-endian"
.LC1:
	.string	"fsl,p2020-esdhc"
.LC2:
	.string	"fsl,p5040-esdhc"
.LC3:
	.string	"fsl,p5020-esdhc"
.LC4:
	.string	"fsl,p4080-esdhc"
.LC5:
	.string	"fsl,p1020-esdhc"
.LC6:
	.string	"fsl,t1040-esdhc"
.LC7:
	.string	"fsl,ls1021a-esdhc"
	.text
	.p2align 4
	.type	sdhci_esdhc_probe, @function
sdhci_esdhc_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r13
	call	of_property_read_bool@PLT
	mov	edx, 24
	test	rax, rax
	je	.L2
	mov	rdi, r12
	lea	rsi, sdhci_esdhc_le_pdata[rip]
	call	sdhci_pltfm_init@PLT
	mov	rbp, rax
	mov	rdi, rbp
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L29
.L4:
	mov	eax, DWORD PTR esdhc_signal_voltage_switch[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR esdhc_execute_tuning[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR esdhc_hs400_prepare_ddr[rip]
	mov	DWORD PTR 0[rbp], 1
	mov	DWORD PTR 20[rbp], eax
	call	esdhc_init@PLT
	mov	rdi, r12
	call	sdhci_get_of_property@PLT
	mov	rdi, rbp
	call	sdhci_priv@PLT
	mov	rdi, rax
	call	sdhci_pltfm_priv@PLT
	mov	edi, DWORD PTR soc_fixup_tuning[rip]
	mov	r14, rax
	call	soc_device_match@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR [r14], eax
	mov	rax, QWORD PTR VENDOR_V_22[rip]
	cmp	QWORD PTR 8[r14], rax
	je	.L30
	jle	.L6
	mov	eax, DWORD PTR SDHCI_QUIRK_NO_BUSY_IRQ[rip]
	not	eax
	and	DWORD PTR 16[rbp], eax
.L6:
	xor	esi, esi
	xor	edi, edi
	lea	rdx, .LC1[rip]
	call	of_find_compatible_node@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR SDHCI_QUIRK_RESET_AFTER_REQUEST[rip]
	or	eax, DWORD PTR SDHCI_QUIRK_BROKEN_TIMEOUT_VAL[rip]
	or	DWORD PTR 12[rbp], eax
.L7:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	je	.L8
.L10:
	mov	eax, DWORD PTR SDHCI_QUIRK_BROKEN_CARD_DETECTION[rip]
	not	eax
	and	DWORD PTR 16[rbp], eax
.L9:
	lea	rsi, .LC7[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR SDHCI_QUIRK_BROKEN_TIMEOUT_VAL[rip]
	or	DWORD PTR 16[rbp], eax
.L11:
	mov	DWORD PTR 16[r14], 0
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR SDHCI_QUIRK2_BROKEN_HOST_CONTROL[rip]
	or	DWORD PTR 12[rbp], eax
	mov	DWORD PTR 16[r14], 1
.L12:
	mov	edi, DWORD PTR 8[rbp]
	call	mmc_of_parse@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L13
	lea	rsi, 4[rbp]
	mov	rdi, r13
	call	mmc_of_parse_voltage@PLT
	mov	rdi, rbp
	call	sdhci_add_host@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	eax, DWORD PTR SDHCI_QUIRK2_HOST_NO_CMD23[rip]
	or	DWORD PTR 12[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r12
	lea	rsi, sdhci_esdhc_be_pdata[rip]
	call	sdhci_pltfm_init@PLT
	mov	rbp, rax
	mov	rdi, rbp
	call	IS_ERR@PLT
	test	rax, rax
	je	.L4
.L29:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	sdhci_pltfm_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	jne	.L10
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	jne	.L10
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	jne	.L10
	lea	rsi, .LC6[rip]
	mov	rdi, r13
	call	of_device_is_compatible@PLT
	test	rax, rax
	jne	.L10
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	sdhci_esdhc_probe, .-sdhci_esdhc_probe
	.comm	soc_fixup_tuning,4,4
	.comm	sdhci_esdhc_le_pdata,4,4
	.comm	sdhci_esdhc_be_pdata,4,4
	.comm	esdhc_signal_voltage_switch,4,4
	.comm	esdhc_hs400_prepare_ddr,4,4
	.comm	esdhc_execute_tuning,4,4
	.comm	VENDOR_V_22,8,8
	.comm	SDHCI_QUIRK_RESET_AFTER_REQUEST,4,4
	.comm	SDHCI_QUIRK_NO_BUSY_IRQ,4,4
	.comm	SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,4
	.comm	SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,4
	.comm	SDHCI_QUIRK2_HOST_NO_CMD23,4,4
	.comm	SDHCI_QUIRK2_BROKEN_HOST_CONTROL,4,4
	.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-of-esdhc.c_sdhci_esdhc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"little-endian\000"
	.align	2
.LC1:
	.ascii	"fsl,p2020-esdhc\000"
	.align	2
.LC2:
	.ascii	"fsl,p5040-esdhc\000"
	.align	2
.LC3:
	.ascii	"fsl,p5020-esdhc\000"
	.align	2
.LC4:
	.ascii	"fsl,p4080-esdhc\000"
	.align	2
.LC5:
	.ascii	"fsl,p1020-esdhc\000"
	.align	2
.LC6:
	.ascii	"fsl,t1040-esdhc\000"
	.align	2
.LC7:
	.ascii	"fsl,ls1021a-esdhc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdhci_esdhc_probe, %function
sdhci_esdhc_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	ldr	r1, .L31
	mov	r5, r0
	mov	r0, r6
	bl	of_property_read_bool
	cmp	r0, #0
	ldrne	r1, .L31+4
	ldreq	r1, .L31+8
	mov	r2, #12
	mov	r0, r5
	bl	sdhci_pltfm_init
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L29
	mov	r3, #1
	ldr	r0, .L31+12
	ldr	r1, .L31+16
	ldr	r2, .L31+20
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r2, [r4, #20]
	str	r3, [r4]
	str	r0, [r4, #28]
	str	r1, [r4, #24]
	mov	r0, r5
	mov	r1, r4
	bl	esdhc_init
	mov	r0, r5
	bl	sdhci_get_of_property
	mov	r0, r4
	bl	sdhci_priv
	bl	sdhci_pltfm_priv
	ldr	r3, .L31+24
	mov	r7, r0
	ldr	r0, [r3]
	bl	soc_device_match
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, .L31+28
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	str	r0, [r7]
	cmp	r2, r3
	beq	.L30
	ldrgt	r2, .L31+32
	ldrgt	r3, [r4, #16]
	ldrgt	r2, [r2]
	bicgt	r3, r3, r2
	strgt	r3, [r4, #16]
.L6:
	mov	r1, #0
	ldr	r2, .L31+36
	mov	r0, r1
	bl	of_find_compatible_node
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L31+40
	ldr	r2, .L31+44
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #12]
	orr	r2, r2, r1
	orr	r3, r3, r2
	str	r3, [r4, #12]
.L7:
	mov	r0, r6
	ldr	r1, .L31+48
	bl	of_device_is_compatible
	cmp	r0, #0
	beq	.L8
.L10:
	ldr	r2, .L31+52
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r4, #16]
.L9:
	ldr	r1, .L31+56
	mov	r0, r6
	bl	of_device_is_compatible
	cmp	r0, #0
	ldrne	r2, .L31+40
	ldrne	r3, [r4, #16]
	ldrne	r2, [r2]
	mov	r0, r6
	orrne	r3, r3, r2
	strne	r3, [r4, #16]
	mov	r3, #0
	ldr	r1, .L31+36
	str	r3, [r7, #8]
	bl	of_device_is_compatible
	cmp	r0, #0
	beq	.L12
	mov	r2, #1
	ldr	r1, .L31+60
	ldr	r3, [r4, #12]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r4, #12]
	str	r2, [r7, #8]
.L12:
	ldr	r0, [r4, #8]
	bl	mmc_of_parse
	subs	r7, r0, #0
	bne	.L13
	add	r1, r4, #4
	mov	r0, r6
	bl	mmc_of_parse_voltage
	mov	r0, r4
	bl	sdhci_add_host
	subs	r7, r0, #0
	bne	.L13
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	ldr	r2, .L31+64
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #12]
	b	.L6
.L13:
	mov	r0, r5
	bl	sdhci_pltfm_free
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L8:
	mov	r0, r6
	ldr	r1, .L31+68
	bl	of_device_is_compatible
	cmp	r0, #0
	bne	.L10
	mov	r0, r6
	ldr	r1, .L31+72
	bl	of_device_is_compatible
	cmp	r0, #0
	bne	.L10
	mov	r0, r6
	ldr	r1, .L31+76
	bl	of_device_is_compatible
	cmp	r0, #0
	bne	.L10
	mov	r0, r6
	ldr	r1, .L31+80
	bl	of_device_is_compatible
	cmp	r0, #0
	bne	.L10
	b	.L9
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	sdhci_esdhc_le_pdata
	.word	sdhci_esdhc_be_pdata
	.word	esdhc_signal_voltage_switch
	.word	esdhc_execute_tuning
	.word	esdhc_hs400_prepare_ddr
	.word	soc_fixup_tuning
	.word	VENDOR_V_22
	.word	SDHCI_QUIRK_NO_BUSY_IRQ
	.word	.LC1
	.word	SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
	.word	SDHCI_QUIRK_RESET_AFTER_REQUEST
	.word	.LC2
	.word	SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.word	.LC7
	.word	SDHCI_QUIRK2_BROKEN_HOST_CONTROL
	.word	SDHCI_QUIRK2_HOST_NO_CMD23
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	sdhci_esdhc_probe, .-sdhci_esdhc_probe
	.comm	soc_fixup_tuning,4,4
	.comm	sdhci_esdhc_le_pdata,4,4
	.comm	sdhci_esdhc_be_pdata,4,4
	.comm	esdhc_signal_voltage_switch,4,4
	.comm	esdhc_hs400_prepare_ddr,4,4
	.comm	esdhc_execute_tuning,4,4
	.comm	VENDOR_V_22,4,4
	.comm	SDHCI_QUIRK_RESET_AFTER_REQUEST,4,4
	.comm	SDHCI_QUIRK_NO_BUSY_IRQ,4,4
	.comm	SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,4
	.comm	SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,4
	.comm	SDHCI_QUIRK2_HOST_NO_CMD23,4,4
	.comm	SDHCI_QUIRK2_BROKEN_HOST_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
