	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_msm_probe
_sdhci_msm_probe:                       ## @sdhci_msm_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_sdhci_msm_pdata@GOTPCREL(%rip), %rsi
	movl	$96, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	$0, 24(%r12)
	movq	%r12, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movl	16(%r12), %edi
	movl	%edi, 88(%rax)
	movq	%r15, 80(%rax)
	callq	_mmc_of_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movl	16(%rax), %ecx
	movl	%ecx, 32(%r14)
	movl	12(%rax), %ecx
	movl	%ecx, 76(%r14)
	movl	8(%rax), %ecx
	movl	%ecx, 72(%r14)
	movq	(%rax), %r13
	movq	%r13, 64(%r14)
	movq	%r15, %rdi
	callq	_sdhci_get_of_property
	movq	_INVALID_TUNING_PHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	movq	16(%r14), %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clk_set_rate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	16(%r14), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_4
LBB0_8:
	movq	24(%r14), %rax
	movq	%rbx, 8(%rax)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_11:
	movq	16(%r14), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	16(%r14), %rdi
	callq	_clk_disable_unprepare
LBB0_13:
	movq	%r15, %rdi
	callq	_sdhci_pltfm_free
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rax
	movq	%rbx, (%rax)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%r13d, %r13d
	testq	%rax, %rax
	cmovneq	%r13, %rbx
	movq	24(%r14), %rax
	movq	%rbx, 16(%rax)
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	movq	24(%r14), %rdi
	movq	%r13, 24(%rdi)
	callq	_ARRAY_SIZE
	movq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_clk_bulk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	48(%r14), %rdi
	callq	_PTR_ERR
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_20:
	cmpl	$0, 32(%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_35
LBB0_21:
	movq	_CORE_VENDOR_SPEC_POR_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r13), %rsi
	addq	8(%r12), %rsi
	callq	_writel_relaxed
	cmpl	$0, 32(%r14)
	jne	LBB0_23
## %bb.22:
	movq	_HC_MODE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r13), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_msm_host_writel
	movl	20(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_msm_host_readl
	movq	_FF_CLK_SW_RST_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	20(%r13), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_msm_host_writel
LBB0_23:
	movq	_SDHCI_HOST_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readw_relaxed
	movq	_SDHCI_VENDOR_VER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_SDHCI_VENDOR_VER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	16(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_msm_host_readl
	movq	_CORE_VERSION_MAJOR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_CORE_VERSION_MAJOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movq	_CORE_VERSION_MINOR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	%eax, %r13d
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$1, %ebx
	jne	LBB0_26
## %bb.24:
	cmpl	$66, %r13d
	jl	LBB0_26
## %bb.25:
	movl	$1, (%r14)
	jmp	LBB0_29
LBB0_26:
	cmpl	$1, %ebx
	jne	LBB0_29
## %bb.27:
	cmpl	$51, %r13d
	jg	LBB0_29
## %bb.28:
	movl	$1, 4(%r14)
LBB0_29:
	testl	%ebx, %ebx
	jle	LBB0_32
## %bb.30:
	addl	$-19, %r13d
	cmpl	$-3, %r13d
	ja	LBB0_32
## %bb.31:
	movq	_SDHCI_CAPABILITIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	movq	_SDHCI_CAN_VDD_300@GOTPCREL(%rip), %rcx
	movq	_SDHCI_CAN_DO_8BIT@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rsi
	addq	8(%r12), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
LBB0_32:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sdhci_msm_handle_pwr_irq
	xorl	%eax, %eax
	callq	_mb
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	js	LBB0_37
## %bb.33:
	movq	%r14, %rdi
	callq	_sdhci_msm_init_pwr_irq_wait
	movq	_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_msm_host_writel
	movl	8(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_sdhci_msm_pwr_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r12, (%rsp)
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_38
## %bb.34:
	movl	%eax, %ebx
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_40
LBB0_35:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.36:
	movq	40(%r14), %rdi
	callq	_PTR_ERR
LBB0_37:
	movl	%eax, %ebx
LBB0_40:
	movq	24(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_clk_bulk_disable_unprepare
	jmp	LBB0_11
LBB0_38:
	movq	%r15, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	_MSM_MMC_AUTOSUSPEND_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r15, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	_sdhci_msm_execute_tuning@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_sdhci_add_host
	testl	%eax, %eax
	je	LBB0_41
## %bb.39:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	movq	%r15, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r15, %rdi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_40
LBB0_41:
	movq	%r14, %rdi
	callq	_sdhci_msm_set_regulator_caps
	movq	%r15, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r15, %rdi
	callq	_pm_runtime_put_autosuspend
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_msm_pdata,4,2            ## @sdhci_msm_pdata
	.comm	_INVALID_TUNING_PHASE,4,2       ## @INVALID_TUNING_PHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"iface"

L_.str.2:                               ## @.str.2
	.asciz	"Peripheral clk setup failed (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"core"

L_.str.4:                               ## @.str.4
	.asciz	"SDC MMC clk setup failed (%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"core clock boost failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"cal"

L_.str.7:                               ## @.str.7
	.asciz	"sleep"

L_.str.8:                               ## @.str.8
	.asciz	"xo"

L_.str.9:                               ## @.str.9
	.asciz	"TCXO clk not present (%d)\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_CORE_VENDOR_SPEC_POR_VAL,4,2   ## @CORE_VENDOR_SPEC_POR_VAL
	.comm	_HC_MODE_EN,4,2                 ## @HC_MODE_EN
	.comm	_FF_CLK_SW_RST_DIS,4,2          ## @FF_CLK_SW_RST_DIS
	.comm	_SDHCI_HOST_VERSION,8,3         ## @SDHCI_HOST_VERSION
L_.str.10:                              ## @.str.10
	.asciz	"Host Version: 0x%x Vendor Version 0x%x\n"

	.comm	_SDHCI_VENDOR_VER_MASK,4,2      ## @SDHCI_VENDOR_VER_MASK
	.comm	_SDHCI_VENDOR_VER_SHIFT,4,2     ## @SDHCI_VENDOR_VER_SHIFT
	.comm	_CORE_VERSION_MAJOR_MASK,4,2    ## @CORE_VERSION_MAJOR_MASK
	.comm	_CORE_VERSION_MAJOR_SHIFT,4,2   ## @CORE_VERSION_MAJOR_SHIFT
	.comm	_CORE_VERSION_MINOR_MASK,4,2    ## @CORE_VERSION_MINOR_MASK
L_.str.11:                              ## @.str.11
	.asciz	"MCI Version: 0x%08x, major: 0x%04x, minor: 0x%02x\n"

	.comm	_SDHCI_CAPABILITIES,8,3         ## @SDHCI_CAPABILITIES
	.comm	_SDHCI_CAN_VDD_300,4,2          ## @SDHCI_CAN_VDD_300
	.comm	_SDHCI_CAN_DO_8BIT,4,2          ## @SDHCI_CAN_DO_8BIT
L_.str.12:                              ## @.str.12
	.asciz	"pwr_irq"

	.comm	_INT_MASK,4,2                   ## @INT_MASK
	.comm	_sdhci_msm_pwr_irq,4,2          ## @sdhci_msm_pwr_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.13:                              ## @.str.13
	.asciz	"Request IRQ failed (%d)\n"

	.comm	_MSM_MMC_AUTOSUSPEND_DELAY_MS,4,2 ## @MSM_MMC_AUTOSUSPEND_DELAY_MS
	.comm	_sdhci_msm_execute_tuning,4,2   ## @sdhci_msm_execute_tuning
	.no_dead_strip	_sdhci_msm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_msm_probe
_sdhci_msm_probe:                       ; @sdhci_msm_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x1, _sdhci_msm_pdata@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sdhci_msm_pdata@GOTPAGEOFF]
	mov	w2, #96
	bl	_sdhci_pltfm_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_2:
	str	xzr, [x21, #24]
	mov	x0, x21
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	ldr	w0, [x21, #16]
	str	w0, [x20, #88]
	str	x19, [x20, #80]
	bl	_mmc_of_parse
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_of_device_get_match_data
	ldr	w8, [x0, #16]
	str	w8, [x20, #32]
	ldr	d0, [x0, #8]
	str	d0, [x20, #72]
	ldr	x23, [x0]
	str	x23, [x20, #64]
	mov	x0, x19
	bl	_sdhci_get_of_property
Lloh2:
	adrp	x8, _INVALID_TUNING_PHASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INVALID_TUNING_PHASE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #56]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
LBB0_4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	x0, [x20, #16]
Lloh11:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_clk_set_rate
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	x0, [x20, #16]
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_13
	b	LBB0_4
LBB0_8:
	ldr	x8, [x20, #24]
	str	x22, [x8, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.9:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
LBB0_11:
	ldr	x0, [x20, #16]
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x20, #16]
	bl	_clk_disable_unprepare
LBB0_13:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	x8, [x20, #24]
	str	x22, [x8]
Lloh18:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_clk_set_rate
	cbz	w0, LBB0_17
; %bb.16:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_17:
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cmp	x0, #0
	csel	x8, x22, xzr, eq
	ldr	x9, [x20, #24]
	str	x8, [x9, #16]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cmp	x0, #0
	csel	x8, x22, xzr, eq
	ldr	x0, [x20, #24]
	str	x8, [x0, #24]
	bl	_ARRAY_SIZE
	ldr	x1, [x20, #24]
	bl	_clk_bulk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.18:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_20:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_35
LBB0_21:
Lloh31:
	adrp	x8, _CORE_VENDOR_SPEC_POR_VAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CORE_VENDOR_SPEC_POR_VAL@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	x9, [x23, #24]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_23
; %bb.22:
Lloh34:
	adrp	x8, _HC_MODE_EN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HC_MODE_EN@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w3, [x23, #20]
	mov	x0, x20
	mov	x2, x21
	bl	_msm_host_writel
	ldr	w2, [x23, #20]
	mov	x0, x20
	mov	x1, x21
	bl	_msm_host_readl
Lloh37:
	adrp	x8, _FF_CLK_SW_RST_DIS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FF_CLK_SW_RST_DIS@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w3, [x23, #20]
	mov	x0, x20
	mov	x2, x21
	bl	_msm_host_writel
LBB0_23:
	ldr	x8, [x21, #8]
Lloh40:
	adrp	x9, _SDHCI_HOST_VERSION@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SDHCI_HOST_VERSION@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw_relaxed
	mov	x2, x0
Lloh43:
	adrp	x8, _SDHCI_VENDOR_VER_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SDHCI_VENDOR_VER_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh46:
	adrp	x9, _SDHCI_VENDOR_VER_SHIFT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SDHCI_VENDOR_VER_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	asr	w3, w8, w9
Lloh49:
	adrp	x1, l_.str.10@PAGE
Lloh50:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w2, [x23, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_msm_host_readl
	mov	x2, x0
Lloh51:
	adrp	x8, _CORE_VERSION_MAJOR_MASK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CORE_VERSION_MAJOR_MASK@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh54:
	adrp	x9, _CORE_VERSION_MAJOR_SHIFT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _CORE_VERSION_MAJOR_SHIFT@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	asr	w22, w8, w9
Lloh57:
	adrp	x8, _CORE_VERSION_MINOR_MASK@GOTPAGE
Lloh58:
	ldr	x8, [x8, _CORE_VERSION_MINOR_MASK@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	and	w24, w8, w0
	str	x24, [sp]
Lloh60:
	adrp	x1, l_.str.11@PAGE
Lloh61:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_dev_dbg
	cmp	w22, #1
	b.ne	LBB0_26
; %bb.24:
	cmp	w24, #66
	b.lt	LBB0_26
; %bb.25:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_29
LBB0_26:
	cmp	w22, #1
	b.ne	LBB0_29
; %bb.27:
	cmp	w24, #51
	b.gt	LBB0_29
; %bb.28:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_29:
	cmp	w22, #1
	b.lt	LBB0_32
; %bb.30:
	sub	w8, w24, #19
	cmn	w8, #3
	b.hi	LBB0_32
; %bb.31:
	ldr	x8, [x21, #8]
Lloh62:
	adrp	x9, _SDHCI_CAPABILITIES@GOTPAGE
Lloh63:
	ldr	x9, [x9, _SDHCI_CAPABILITIES@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh65:
	adrp	x8, _SDHCI_CAN_VDD_300@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SDHCI_CAN_VDD_300@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
Lloh68:
	adrp	x9, _SDHCI_CAN_DO_8BIT@GOTPAGE
Lloh69:
	ldr	x9, [x9, _SDHCI_CAN_DO_8BIT@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x21, #8]
	ldr	x9, [x23, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_32:
	mov	x0, x21
	mov	w1, #0
	bl	_sdhci_msm_handle_pwr_irq
	bl	_mb
Lloh71:
	adrp	x1, l_.str.12@PAGE
Lloh72:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	str	w0, [x20, #8]
	tbnz	w0, #31, LBB0_37
; %bb.33:
	mov	x0, x20
	bl	_sdhci_msm_init_pwr_irq_wait
Lloh73:
	adrp	x8, _INT_MASK@GOTPAGE
Lloh74:
	ldr	x8, [x8, _INT_MASK@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_msm_host_writel
	ldr	w22, [x20, #8]
Lloh76:
	adrp	x8, _sdhci_msm_pwr_irq@GOTPAGE
Lloh77:
	ldr	x8, [x8, _sdhci_msm_pwr_irq@GOTPAGEOFF]
Lloh78:
	ldr	w23, [x8]
Lloh79:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh80:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh81:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	mov	x3, x23
	mov	x4, x24
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_39
; %bb.34:
	mov	x22, x0
Lloh82:
	adrp	x1, l_.str.13@PAGE
Lloh83:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_38
LBB0_35:
Lloh84:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh85:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.36:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
LBB0_37:
	mov	x22, x0
LBB0_38:
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	ldr	x1, [x20, #24]
	bl	_clk_bulk_disable_unprepare
	b	LBB0_11
LBB0_39:
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
Lloh87:
	adrp	x8, _MSM_MMC_AUTOSUSPEND_DELAY_MS@GOTPAGE
Lloh88:
	ldr	x8, [x8, _MSM_MMC_AUTOSUSPEND_DELAY_MS@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
Lloh90:
	adrp	x8, _sdhci_msm_execute_tuning@GOTPAGE
Lloh91:
	ldr	x8, [x8, _sdhci_msm_execute_tuning@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x21
	bl	_sdhci_add_host
	mov	x22, x0
	cbz	w0, LBB0_41
; %bb.40:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	b	LBB0_38
LBB0_41:
	mov	x0, x20
	bl	_sdhci_msm_set_regulator_caps
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_msm_pdata,4,2            ; @sdhci_msm_pdata
	.comm	_INVALID_TUNING_PHASE,4,2       ; @INVALID_TUNING_PHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"iface"

l_.str.2:                               ; @.str.2
	.asciz	"Peripheral clk setup failed (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"core"

l_.str.4:                               ; @.str.4
	.asciz	"SDC MMC clk setup failed (%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"core clock boost failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"cal"

l_.str.7:                               ; @.str.7
	.asciz	"sleep"

l_.str.8:                               ; @.str.8
	.asciz	"xo"

l_.str.9:                               ; @.str.9
	.asciz	"TCXO clk not present (%d)\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_CORE_VENDOR_SPEC_POR_VAL,4,2   ; @CORE_VENDOR_SPEC_POR_VAL
	.comm	_HC_MODE_EN,4,2                 ; @HC_MODE_EN
	.comm	_FF_CLK_SW_RST_DIS,4,2          ; @FF_CLK_SW_RST_DIS
	.comm	_SDHCI_HOST_VERSION,8,3         ; @SDHCI_HOST_VERSION
l_.str.10:                              ; @.str.10
	.asciz	"Host Version: 0x%x Vendor Version 0x%x\n"

	.comm	_SDHCI_VENDOR_VER_MASK,4,2      ; @SDHCI_VENDOR_VER_MASK
	.comm	_SDHCI_VENDOR_VER_SHIFT,4,2     ; @SDHCI_VENDOR_VER_SHIFT
	.comm	_CORE_VERSION_MAJOR_MASK,4,2    ; @CORE_VERSION_MAJOR_MASK
	.comm	_CORE_VERSION_MAJOR_SHIFT,4,2   ; @CORE_VERSION_MAJOR_SHIFT
	.comm	_CORE_VERSION_MINOR_MASK,4,2    ; @CORE_VERSION_MINOR_MASK
l_.str.11:                              ; @.str.11
	.asciz	"MCI Version: 0x%08x, major: 0x%04x, minor: 0x%02x\n"

	.comm	_SDHCI_CAPABILITIES,8,3         ; @SDHCI_CAPABILITIES
	.comm	_SDHCI_CAN_VDD_300,4,2          ; @SDHCI_CAN_VDD_300
	.comm	_SDHCI_CAN_DO_8BIT,4,2          ; @SDHCI_CAN_DO_8BIT
l_.str.12:                              ; @.str.12
	.asciz	"pwr_irq"

	.comm	_INT_MASK,4,2                   ; @INT_MASK
	.comm	_sdhci_msm_pwr_irq,4,2          ; @sdhci_msm_pwr_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.13:                              ; @.str.13
	.asciz	"Request IRQ failed (%d)\n"

	.comm	_MSM_MMC_AUTOSUSPEND_DELAY_MS,4,2 ; @MSM_MMC_AUTOSUSPEND_DELAY_MS
	.comm	_sdhci_msm_execute_tuning,4,2   ; @sdhci_msm_execute_tuning
	.no_dead_strip	_sdhci_msm_probe
.subsections_via_symbols
