	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_esdhc_probe
_sdhci_esdhc_probe:                     ## @sdhci_esdhc_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_sdhci_esdhc_be_pdata@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_sdhci_esdhc_le_pdata@GOTPCREL(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.25:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_esdhc_signal_voltage_switch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_esdhc_execute_tuning@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_esdhc_hs400_prepare_ddr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movl	$1, (%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_esdhc_init
	movq	%r15, %rdi
	callq	_sdhci_get_of_property
	movq	%r13, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r12
	movq	_soc_fixup_tuning@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_soc_device_match
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, (%r12)
	movq	8(%r12), %rax
	movq	_VENDOR_V_22@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movq	_SDHCI_QUIRK2_HOST_NO_CMD23@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 12(%r13)
LBB0_6:
	cmpq	%rcx, %rax
	jle	LBB0_8
## %bb.7:
	movq	_SDHCI_QUIRK_NO_BUSY_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r13)
LBB0_8:
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_of_find_compatible_node
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPCREL(%rip), %rax
	movl	12(%r13), %ecx
	orl	(%rax), %ecx
	movq	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%r13)
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	_SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r13)
LBB0_16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
LBB0_18:
	movl	$0, 16(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_SDHCI_QUIRK2_BROKEN_HOST_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r13)
	movl	$1, 16(%r12)
LBB0_20:
	movl	8(%r13), %edi
	callq	_mmc_of_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	movq	%r13, %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_mmc_of_parse_voltage
	movq	%r13, %rdi
	callq	_sdhci_add_host
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_22
LBB0_23:
	movq	%r15, %rdi
	callq	_sdhci_pltfm_free
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"little-endian"

	.comm	_sdhci_esdhc_le_pdata,4,2       ## @sdhci_esdhc_le_pdata
	.comm	_sdhci_esdhc_be_pdata,4,2       ## @sdhci_esdhc_be_pdata
	.comm	_esdhc_signal_voltage_switch,4,2 ## @esdhc_signal_voltage_switch
	.comm	_esdhc_execute_tuning,4,2       ## @esdhc_execute_tuning
	.comm	_esdhc_hs400_prepare_ddr,4,2    ## @esdhc_hs400_prepare_ddr
	.comm	_soc_fixup_tuning,4,2           ## @soc_fixup_tuning
	.comm	_VENDOR_V_22,8,3                ## @VENDOR_V_22
	.comm	_SDHCI_QUIRK2_HOST_NO_CMD23,4,2 ## @SDHCI_QUIRK2_HOST_NO_CMD23
	.comm	_SDHCI_QUIRK_NO_BUSY_IRQ,4,2    ## @SDHCI_QUIRK_NO_BUSY_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"fsl,p2020-esdhc"

	.comm	_SDHCI_QUIRK_RESET_AFTER_REQUEST,4,2 ## @SDHCI_QUIRK_RESET_AFTER_REQUEST
	.comm	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,2 ## @SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
L_.str.2:                               ## @.str.2
	.asciz	"fsl,p5040-esdhc"

L_.str.3:                               ## @.str.3
	.asciz	"fsl,p5020-esdhc"

L_.str.4:                               ## @.str.4
	.asciz	"fsl,p4080-esdhc"

L_.str.5:                               ## @.str.5
	.asciz	"fsl,p1020-esdhc"

L_.str.6:                               ## @.str.6
	.asciz	"fsl,t1040-esdhc"

	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ## @SDHCI_QUIRK_BROKEN_CARD_DETECTION
L_.str.7:                               ## @.str.7
	.asciz	"fsl,ls1021a-esdhc"

	.comm	_SDHCI_QUIRK2_BROKEN_HOST_CONTROL,4,2 ## @SDHCI_QUIRK2_BROKEN_HOST_CONTROL
	.no_dead_strip	_sdhci_esdhc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_esdhc_probe
_sdhci_esdhc_probe:                     ; @sdhci_esdhc_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
Lloh2:
	adrp	x8, _sdhci_esdhc_le_pdata@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sdhci_esdhc_le_pdata@GOTPAGEOFF]
Lloh4:
	adrp	x9, _sdhci_esdhc_be_pdata@GOTPAGE
Lloh5:
	ldr	x9, [x9, _sdhci_esdhc_be_pdata@GOTPAGEOFF]
	cmp	x0, #0
	csel	x1, x9, x8, eq
	mov	x0, x19
	mov	w2, #24
	bl	_sdhci_pltfm_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh6:
	adrp	x8, _esdhc_signal_voltage_switch@GOTPAGE
Lloh7:
	ldr	x8, [x8, _esdhc_signal_voltage_switch@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21, #28]
Lloh9:
	adrp	x8, _esdhc_execute_tuning@GOTPAGE
Lloh10:
	ldr	x8, [x8, _esdhc_execute_tuning@GOTPAGEOFF]
Lloh11:
	adrp	x9, _esdhc_hs400_prepare_ddr@GOTPAGE
Lloh12:
	ldr	x9, [x9, _esdhc_hs400_prepare_ddr@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #20]
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_esdhc_init
	mov	x0, x19
	bl	_sdhci_get_of_property
	mov	x0, x21
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x22, x0
Lloh15:
	adrp	x8, _soc_fixup_tuning@GOTPAGE
Lloh16:
	ldr	x8, [x8, _soc_fixup_tuning@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_soc_device_match
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x22]
	ldr	x8, [x22, #8]
Lloh18:
	adrp	x9, _VENDOR_V_22@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VENDOR_V_22@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh21:
	adrp	x10, _SDHCI_QUIRK2_HOST_NO_CMD23@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SDHCI_QUIRK2_HOST_NO_CMD23@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	ldr	w11, [x21, #12]
	orr	w10, w11, w10
	str	w10, [x21, #12]
LBB0_4:
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _SDHCI_QUIRK_NO_BUSY_IRQ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SDHCI_QUIRK_NO_BUSY_IRQ@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	bic	w8, w9, w8
	str	w8, [x21, #16]
LBB0_6:
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x1, #0
	bl	_of_find_compatible_node
Lloh29:
	adrp	x23, _SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPAGE
Lloh30:
	ldr	x23, [x23, _SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPAGEOFF]
	cbz	x0, LBB0_8
; %bb.7:
Lloh31:
	adrp	x8, _SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SDHCI_QUIRK_RESET_AFTER_REQUEST@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x21, #12]
LBB0_8:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_13
; %bb.9:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_13
; %bb.10:
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_13
; %bb.11:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_13
; %bb.12:
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbz	x0, LBB0_14
LBB0_13:
Lloh44:
	adrp	x8, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	bic	w8, w9, w8
	str	w8, [x21, #16]
LBB0_14:
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w8, [x23]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
LBB0_16:
	str	wzr, [x22, #16]
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_device_is_compatible
	cbz	x0, LBB0_18
; %bb.17:
Lloh51:
	adrp	x8, _SDHCI_QUIRK2_BROKEN_HOST_CONTROL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SDHCI_QUIRK2_BROKEN_HOST_CONTROL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	str	w8, [x21, #12]
	mov	w8, #1
	str	w8, [x22, #16]
LBB0_18:
	ldr	w0, [x21, #8]
	bl	_mmc_of_parse
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.19:
	add	x1, x21, #4
	mov	x0, x20
	bl	_mmc_of_parse_voltage
	mov	x0, x21
	bl	_sdhci_add_host
	mov	x22, x0
	cbz	w0, LBB0_21
LBB0_20:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"little-endian"

	.comm	_sdhci_esdhc_le_pdata,4,2       ; @sdhci_esdhc_le_pdata
	.comm	_sdhci_esdhc_be_pdata,4,2       ; @sdhci_esdhc_be_pdata
	.comm	_esdhc_signal_voltage_switch,4,2 ; @esdhc_signal_voltage_switch
	.comm	_esdhc_execute_tuning,4,2       ; @esdhc_execute_tuning
	.comm	_esdhc_hs400_prepare_ddr,4,2    ; @esdhc_hs400_prepare_ddr
	.comm	_soc_fixup_tuning,4,2           ; @soc_fixup_tuning
	.comm	_VENDOR_V_22,8,3                ; @VENDOR_V_22
	.comm	_SDHCI_QUIRK2_HOST_NO_CMD23,4,2 ; @SDHCI_QUIRK2_HOST_NO_CMD23
	.comm	_SDHCI_QUIRK_NO_BUSY_IRQ,4,2    ; @SDHCI_QUIRK_NO_BUSY_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"fsl,p2020-esdhc"

	.comm	_SDHCI_QUIRK_RESET_AFTER_REQUEST,4,2 ; @SDHCI_QUIRK_RESET_AFTER_REQUEST
	.comm	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,2 ; @SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
l_.str.2:                               ; @.str.2
	.asciz	"fsl,p5040-esdhc"

l_.str.3:                               ; @.str.3
	.asciz	"fsl,p5020-esdhc"

l_.str.4:                               ; @.str.4
	.asciz	"fsl,p4080-esdhc"

l_.str.5:                               ; @.str.5
	.asciz	"fsl,p1020-esdhc"

l_.str.6:                               ; @.str.6
	.asciz	"fsl,t1040-esdhc"

	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ; @SDHCI_QUIRK_BROKEN_CARD_DETECTION
l_.str.7:                               ; @.str.7
	.asciz	"fsl,ls1021a-esdhc"

	.comm	_SDHCI_QUIRK2_BROKEN_HOST_CONTROL,4,2 ; @SDHCI_QUIRK2_BROKEN_HOST_CONTROL
	.no_dead_strip	_sdhci_esdhc_probe
.subsections_via_symbols
