	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_pxav3_probe
_sdhci_pxav3_probe:                     ## @sdhci_pxav3_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, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %r12
	movq	_sdhci_pxav3_pdata@GOTPCREL(%rip), %rsi
	movl	$16, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_sdhci_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %rdi
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %rdi
LBB0_5:
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_35
LBB0_7:
	movq	8(%rbx), %rdi
	movq	%rdi, (%r13)
	callq	_clk_prepare_enable
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	callq	_clk_prepare_enable
LBB0_9:
	movq	_MMC_CAP_1_8V_DDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	orl	%eax, (%rcx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_armada_38x_quirks
	testl	%eax, %eax
	js	LBB0_33
## %bb.11:
	xorl	%eax, %eax
	callq	_mv_mbus_dram_info
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mv_conf_mbus_windows
	testl	%eax, %eax
	js	LBB0_33
LBB0_12:
	movq	_sdhci_pxav3_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_ptr
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	8(%r15), %rdi
	callq	_mmc_of_parse
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.14:
	movq	%r14, %rdi
	callq	_sdhci_get_of_property
	movq	%r14, %rdi
	callq	_pxav3_get_mmc_pdata
	movq	%rax, (%r14)
	jmp	LBB0_31
LBB0_33:
	movl	%eax, %r12d
	jmp	LBB0_34
LBB0_16:
	testq	%r13, %r13
	je	LBB0_31
## %bb.17:
	movl	(%r13), %eax
	movq	_PXA_FLAG_CARD_PERMANENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	_MMC_CAP_NONREMOVABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%r15), %rdx
	orl	%ecx, (%rdx)
LBB0_19:
	movq	_PXA_FLAG_SD_8_BIT_CAPABLE_SLOT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	_MMC_CAP_8_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	orl	%eax, (%rcx)
LBB0_21:
	movl	4(%r13), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	orl	%eax, (%r15)
LBB0_23:
	movl	8(%r13), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	orl	%eax, 4(%r15)
LBB0_25:
	movl	12(%r13), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movq	8(%r15), %rcx
	orl	%eax, (%rcx)
LBB0_27:
	movl	16(%r13), %eax
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	movq	8(%r15), %rcx
	orl	%eax, 4(%rcx)
LBB0_29:
	movl	20(%r13), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movq	8(%r15), %rcx
	orl	%eax, 8(%rcx)
LBB0_31:
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	_PXAV3_RPM_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pm_suspend_ignore_children
	movq	%r15, %rdi
	callq	_sdhci_add_host
	testl	%eax, %eax
	je	LBB0_37
## %bb.32:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
LBB0_34:
	movq	8(%rbx), %rdi
	callq	_clk_disable_unprepare
	movq	(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_35:
	movq	%r14, %rdi
	callq	_sdhci_pltfm_free
LBB0_36:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	8(%r15), %rax
	movq	_MMC_PM_WAKE_SDIO_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_39
## %bb.38:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
LBB0_39:
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
	xorl	%r12d, %r12d
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_pxav3_pdata,4,2          ## @sdhci_pxav3_pdata
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"io"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get io clock\n"

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

	.comm	_MMC_CAP_1_8V_DDR,4,2           ## @MMC_CAP_1_8V_DDR
L_.str.3:                               ## @.str.3
	.asciz	"marvell,armada-380-sdhci"

	.comm	_sdhci_pxav3_of_match,4,2       ## @sdhci_pxav3_of_match
	.comm	_PXA_FLAG_CARD_PERMANENT,4,2    ## @PXA_FLAG_CARD_PERMANENT
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ## @MMC_CAP_NONREMOVABLE
	.comm	_PXA_FLAG_SD_8_BIT_CAPABLE_SLOT,4,2 ## @PXA_FLAG_SD_8_BIT_CAPABLE_SLOT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ## @MMC_CAP_8_BIT_DATA
	.comm	_PXAV3_RPM_DELAY_MS,4,2         ## @PXAV3_RPM_DELAY_MS
	.comm	_MMC_PM_WAKE_SDIO_IRQ,4,2       ## @MMC_PM_WAKE_SDIO_IRQ
	.no_dead_strip	_sdhci_pxav3_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_pxav3_probe
_sdhci_pxav3_probe:                     ; @sdhci_pxav3_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
	ldp	x24, x22, [x0]
Lloh0:
	adrp	x1, _sdhci_pxav3_pdata@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sdhci_pxav3_pdata@GOTPAGEOFF]
	mov	w2, #16
	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:
	mov	x0, x21
	bl	_sdhci_priv
	mov	x23, x0
	bl	_sdhci_pltfm_priv
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_33
LBB0_5:
	ldr	x0, [x20, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
LBB0_6:
	ldr	x0, [x20, #8]
	str	x0, [x23]
	bl	_clk_prepare_enable
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
	bl	_clk_prepare_enable
LBB0_8:
Lloh8:
	adrp	x8, _MMC_CAP_1_8V_DDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMC_CAP_1_8V_DDR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_armada_38x_quirks
	tbnz	w0, #31, LBB0_14
; %bb.10:
	bl	_mv_mbus_dram_info
	mov	x1, x0
	mov	x0, x19
	bl	_mv_conf_mbus_windows
	tbnz	w0, #31, LBB0_14
LBB0_11:
Lloh13:
	adrp	x8, _sdhci_pxav3_of_match@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sdhci_pxav3_of_match@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_of_match_ptr
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x0, [x21, #8]
	bl	_mmc_of_parse
	mov	x22, x0
	cbnz	w0, LBB0_32
; %bb.13:
	mov	x0, x19
	bl	_sdhci_get_of_property
	mov	x0, x19
	bl	_pxav3_get_mmc_pdata
	str	x0, [x19]
	b	LBB0_30
LBB0_14:
	mov	x22, x0
	b	LBB0_32
LBB0_15:
	cbz	x24, LBB0_30
; %bb.16:
	ldr	w8, [x24]
Lloh16:
	adrp	x9, _PXA_FLAG_CARD_PERMANENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PXA_FLAG_CARD_PERMANENT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh19:
	adrp	x9, _MMC_CAP_NONREMOVABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MMC_CAP_NONREMOVABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldr	x10, [x21, #8]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
LBB0_18:
Lloh22:
	adrp	x9, _PXA_FLAG_SD_8_BIT_CAPABLE_SLOT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PXA_FLAG_SD_8_BIT_CAPABLE_SLOT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
Lloh25:
	adrp	x8, _MMC_CAP_8_BIT_DATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMC_CAP_8_BIT_DATA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_20:
	ldr	w8, [x24, #4]
	cbz	w8, LBB0_22
; %bb.21:
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_22:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_24
; %bb.23:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
LBB0_24:
	ldr	w8, [x24, #12]
	cbz	w8, LBB0_26
; %bb.25:
	ldr	x9, [x21, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_26:
	ldr	w8, [x24, #16]
	cbz	w8, LBB0_28
; %bb.27:
	ldr	x9, [x21, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_28:
	ldr	w8, [x24, #20]
	cbz	w8, LBB0_30
; %bb.29:
	ldr	x9, [x21, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
LBB0_30:
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
Lloh28:
	adrp	x8, _PXAV3_RPM_DELAY_MS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PXAV3_RPM_DELAY_MS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	mov	w1, #1
	bl	_pm_suspend_ignore_children
	mov	x0, x21
	bl	_sdhci_add_host
	cbz	w0, LBB0_35
; %bb.31:
	mov	x22, x0
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_put_noidle
LBB0_32:
	ldr	x0, [x20, #8]
	bl	_clk_disable_unprepare
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
LBB0_33:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_34:
	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
LBB0_35:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, #8]
Lloh31:
	adrp	x9, _MMC_PM_WAKE_SDIO_IRQ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MMC_PM_WAKE_SDIO_IRQ@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.36:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
LBB0_37:
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	mov	w22, #0
	b	LBB0_34
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_pxav3_pdata,4,2          ; @sdhci_pxav3_pdata
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"io"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get io clock\n"

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

	.comm	_MMC_CAP_1_8V_DDR,4,2           ; @MMC_CAP_1_8V_DDR
l_.str.3:                               ; @.str.3
	.asciz	"marvell,armada-380-sdhci"

	.comm	_sdhci_pxav3_of_match,4,2       ; @sdhci_pxav3_of_match
	.comm	_PXA_FLAG_CARD_PERMANENT,4,2    ; @PXA_FLAG_CARD_PERMANENT
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ; @MMC_CAP_NONREMOVABLE
	.comm	_PXA_FLAG_SD_8_BIT_CAPABLE_SLOT,4,2 ; @PXA_FLAG_SD_8_BIT_CAPABLE_SLOT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ; @MMC_CAP_8_BIT_DATA
	.comm	_PXAV3_RPM_DELAY_MS,4,2         ; @PXAV3_RPM_DELAY_MS
	.comm	_MMC_PM_WAKE_SDIO_IRQ,4,2       ; @MMC_PM_WAKE_SDIO_IRQ
	.no_dead_strip	_sdhci_pxav3_probe
.subsections_via_symbols
