	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_st_probe
_sdhci_st_probe:                        ## @sdhci_st_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.22:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%ecx, %ecx
	testq	%rax, %rax
	movl	$0, %r14d
	cmovneq	%rcx, %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_reset_control_get_exclusive
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_reset_control_deassert
	movq	%rbx, %r14
LBB0_3:
	movq	_sdhci_st_pdata@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	testq	%r14, %r14
	jne	LBB0_20
	jmp	LBB0_21
LBB0_5:
	movq	%r12, %rdi
	callq	_sdhci_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, 16(%rax)
	movl	8(%r12), %edi
	callq	_mmc_of_parse
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_7:
	movq	%r13, %rdi
	callq	_dev_err
LBB0_18:
	movq	%r13, %rdi
	callq	_sdhci_pltfm_free
	testq	%r14, %r14
	je	LBB0_21
LBB0_20:
	movq	%r14, %rdi
	callq	_reset_control_assert
LBB0_21:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_12:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r13, %rdi
	callq	_platform_get_resource_byname
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
	movq	$0, 8(%rbx)
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_st_mmcss_cconfig
	movq	%r12, %rdi
	callq	_sdhci_add_host
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_clk_disable_unprepare
LBB0_17:
	movq	%r15, %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_18
LBB0_15:
	movq	_SDHCI_HOST_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readw_relaxed
	movq	_SDHCI_SPEC_VER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_SDHCI_SPEC_VER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_SDHCI_VENDOR_VER_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SDHCI_VENDOR_VER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %ecx
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmc"

L_.str.1:                               ## @.str.1
	.asciz	"Peripheral clk not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"icn"

	.comm	_sdhci_st_pdata,4,2             ## @sdhci_st_pdata
L_.str.3:                               ## @.str.3
	.asciz	"Failed sdhci_pltfm_init\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed mmc_of_parse\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to prepare clock\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to prepare icn clock\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.7:                               ## @.str.7
	.asciz	"top-mmc-delay"

L_.str.8:                               ## @.str.8
	.asciz	"FlashSS Top Dly registers not available"

	.comm	_SDHCI_HOST_VERSION,8,3         ## @SDHCI_HOST_VERSION
L_.str.9:                               ## @.str.9
	.asciz	"SDHCI ST Initialised: Host Version: 0x%x Vendor Version 0x%x\n"

	.comm	_SDHCI_SPEC_VER_MASK,4,2        ## @SDHCI_SPEC_VER_MASK
	.comm	_SDHCI_SPEC_VER_SHIFT,4,2       ## @SDHCI_SPEC_VER_SHIFT
	.comm	_SDHCI_VENDOR_VER_MASK,4,2      ## @SDHCI_VENDOR_VER_MASK
	.comm	_SDHCI_VENDOR_VER_SHIFT,4,2     ## @SDHCI_VENDOR_VER_SHIFT
	.no_dead_strip	_sdhci_st_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_st_probe
_sdhci_st_probe:                        ; @sdhci_st_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_clk_get
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cmp	x0, #0
	csel	x23, x21, xzr, eq
	mov	x0, x19
	mov	x1, #0
	bl	_devm_reset_control_get_exclusive
	mov	x24, x0
	bl	_IS_ERR
	mov	x21, #0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x24
	bl	_reset_control_deassert
	mov	x21, x24
LBB0_4:
Lloh6:
	adrp	x1, _sdhci_st_pdata@GOTPAGE
Lloh7:
	ldr	x1, [x1, _sdhci_st_pdata@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #24
	bl	_sdhci_pltfm_init
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x24
	bl	_PTR_ERR
	mov	x25, x0
	cbnz	x21, LBB0_12
	b	LBB0_13
LBB0_6:
	mov	x0, x24
	bl	_sdhci_priv
	mov	x26, x0
	bl	_sdhci_pltfm_priv
	mov	x27, x0
	str	x21, [x0, #16]
	ldr	w0, [x24, #8]
	bl	_mmc_of_parse
	cbz	w0, LBB0_8
; %bb.7:
	mov	x25, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_clk_prepare_enable
	cbz	w0, LBB0_14
; %bb.9:
	mov	x25, x0
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x19
	bl	_sdhci_pltfm_free
	cbz	x21, LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_reset_control_assert
LBB0_13:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x23
	bl	_clk_prepare_enable
	cbz	w0, LBB0_16
; %bb.15:
	mov	x25, x0
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_20
LBB0_16:
Lloh16:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.7@PAGE
Lloh20:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x27, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	str	xzr, [x27, #8]
LBB0_18:
	str	x20, [x26]
	str	x23, [x27]
	mov	x0, x22
	mov	x1, x24
	bl	_st_mmcss_cconfig
	mov	x0, x24
	bl	_sdhci_add_host
	mov	x25, x0
	cbz	w0, LBB0_21
; %bb.19:
	mov	x0, x23
	bl	_clk_disable_unprepare
LBB0_20:
	mov	x0, x20
	bl	_clk_disable_unprepare
	b	LBB0_11
LBB0_21:
	ldr	x8, [x24]
Lloh23:
	adrp	x9, _SDHCI_HOST_VERSION@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SDHCI_HOST_VERSION@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw_relaxed
Lloh26:
	adrp	x8, _SDHCI_SPEC_VER_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SDHCI_SPEC_VER_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh29:
	adrp	x9, _SDHCI_SPEC_VER_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SDHCI_SPEC_VER_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh32:
	adrp	x8, _SDHCI_VENDOR_VER_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SDHCI_VENDOR_VER_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh35:
	adrp	x9, _SDHCI_VENDOR_VER_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SDHCI_VENDOR_VER_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	asr	w3, w8, w9
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmc"

l_.str.1:                               ; @.str.1
	.asciz	"Peripheral clk not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"icn"

	.comm	_sdhci_st_pdata,4,2             ; @sdhci_st_pdata
l_.str.3:                               ; @.str.3
	.asciz	"Failed sdhci_pltfm_init\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed mmc_of_parse\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to prepare clock\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to prepare icn clock\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.7:                               ; @.str.7
	.asciz	"top-mmc-delay"

l_.str.8:                               ; @.str.8
	.asciz	"FlashSS Top Dly registers not available"

	.comm	_SDHCI_HOST_VERSION,8,3         ; @SDHCI_HOST_VERSION
l_.str.9:                               ; @.str.9
	.asciz	"SDHCI ST Initialised: Host Version: 0x%x Vendor Version 0x%x\n"

	.comm	_SDHCI_SPEC_VER_MASK,4,2        ; @SDHCI_SPEC_VER_MASK
	.comm	_SDHCI_SPEC_VER_SHIFT,4,2       ; @SDHCI_SPEC_VER_SHIFT
	.comm	_SDHCI_VENDOR_VER_MASK,4,2      ; @SDHCI_VENDOR_VER_MASK
	.comm	_SDHCI_VENDOR_VER_SHIFT,4,2     ; @SDHCI_VENDOR_VER_SHIFT
	.no_dead_strip	_sdhci_st_probe
.subsections_via_symbols
