	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_at91_probe
_sdhci_at91_probe:                      ## @sdhci_at91_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_sdhci_at91_dt_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	16(%r15), %rdi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	8(%r15), %rdi
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	24(%r15), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movq	%r12, %rdi
	callq	_sdhci_at91_set_clks_presets
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.12:
	movl	$0, (%r15)
	movq	(%r14), %rdi
	callq	_mmc_of_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.13:
	movq	%r12, %rdi
	callq	_sdhci_get_of_property
	movq	%r12, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r12, %rdi
	callq	_pm_runtime_set_active
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	movl	$50, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r12, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	_SDHCI_QUIRK2_BROKEN_HS200@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_sdhci_add_host
	testl	%eax, %eax
	je	LBB0_14
## %bb.20:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movq	%r12, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r12, %rdi
	callq	_pm_runtime_put_noidle
LBB0_21:
	movq	24(%r15), %rdi
	callq	_clk_disable_unprepare
	movq	16(%r15), %rdi
	callq	_clk_disable_unprepare
	movq	8(%r15), %rdi
	callq	_clk_disable_unprepare
LBB0_22:
	movq	%r12, %rdi
	callq	_sdhci_pltfm_free
	jmp	LBB0_23
LBB0_14:
	movq	(%r14), %rdi
	callq	_mmc_card_is_removable
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	(%r14), %rdi
	callq	_mmc_gpio_get_cd
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, (%rcx)
	movq	_SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
LBB0_17:
	movq	(%r14), %rax
	movq	_MMC_CAP_NONREMOVABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_sdhci_at91_set_force_card_detect
LBB0_19:
	movq	%r12, %rdi
	callq	_pm_runtime_put_autosuspend
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_at91_dt_match,4,2        ## @sdhci_at91_dt_match
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"baseclk"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"failed to get hclock\n"

L_.str.4:                               ## @.str.4
	.asciz	"multclk"

L_.str.5:                               ## @.str.5
	.asciz	"failed to get multclk\n"

	.comm	_SDHCI_QUIRK2_BROKEN_HS200,4,2  ## @SDHCI_QUIRK2_BROKEN_HS200
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ## @MMC_CAP_NEEDS_POLL
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ## @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ## @MMC_CAP_NONREMOVABLE
	.no_dead_strip	_sdhci_at91_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_at91_probe
_sdhci_at91_probe:                      ; @sdhci_at91_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _sdhci_at91_dt_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdhci_at91_dt_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x1, [x0]
	mov	x0, x19
	mov	w2, #32
	bl	_sdhci_pltfm_init
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	b	LBB0_11
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #16]
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #8]
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #24]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
	mov	x0, x19
	bl	_sdhci_at91_set_clks_presets
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.13:
	str	wzr, [x21]
	ldr	x0, [x20]
	bl	_mmc_of_parse
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_sdhci_get_of_property
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	mov	w1, #50
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
Lloh18:
	adrp	x8, _SDHCI_QUIRK2_BROKEN_HS200@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDHCI_QUIRK2_BROKEN_HS200@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_sdhci_add_host
	cbz	w0, LBB0_18
; %bb.15:
	mov	x22, x0
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_put_noidle
LBB0_16:
	ldr	x0, [x21, #24]
	bl	_clk_disable_unprepare
	ldr	x0, [x21, #16]
	bl	_clk_disable_unprepare
	ldr	x0, [x21, #8]
	bl	_clk_disable_unprepare
LBB0_17:
	mov	x0, x19
	bl	_sdhci_pltfm_free
	b	LBB0_4
LBB0_18:
	ldr	x0, [x20]
	bl	_mmc_card_is_removable
	cbz	x0, LBB0_21
; %bb.19:
	ldr	x0, [x20]
	bl	_mmc_gpio_get_cd
	tbz	x0, #63, LBB0_21
; %bb.20:
Lloh21:
	adrp	x8, _MMC_CAP_NEEDS_POLL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MMC_CAP_NEEDS_POLL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh24:
	adrp	x8, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SDHCI_QUIRK_BROKEN_CARD_DETECTION@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
LBB0_21:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _MMC_CAP_NONREMOVABLE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MMC_CAP_NONREMOVABLE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_sdhci_at91_set_force_card_detect
LBB0_23:
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	mov	w22, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_at91_dt_match,4,2        ; @sdhci_at91_dt_match
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"baseclk"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"failed to get hclock\n"

l_.str.4:                               ; @.str.4
	.asciz	"multclk"

l_.str.5:                               ; @.str.5
	.asciz	"failed to get multclk\n"

	.comm	_SDHCI_QUIRK2_BROKEN_HS200,4,2  ; @SDHCI_QUIRK2_BROKEN_HS200
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ; @MMC_CAP_NEEDS_POLL
	.comm	_SDHCI_QUIRK_BROKEN_CARD_DETECTION,4,2 ; @SDHCI_QUIRK_BROKEN_CARD_DETECTION
	.comm	_MMC_CAP_NONREMOVABLE,4,2       ; @MMC_CAP_NONREMOVABLE
	.no_dead_strip	_sdhci_at91_probe
.subsections_via_symbols
