	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_probe
_xenon_probe:                           ## @xenon_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	_sdhci_xenon_pdata@GOTPCREL(%rip), %rsi
	movl	$8, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_sdhci_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_xenon_replace_mmc_host_ops
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_15
LBB0_3:
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	jne	LBB0_7
	jmp	LBB0_14
LBB0_6:
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_7:
	movl	(%rbx), %edi
	callq	_mmc_of_parse
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	callq	_sdhci_get_of_property
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xenon_set_acg
	movq	%r14, %rdi
	callq	_xenon_probe_dt
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%rbx, %rdi
	callq	_xenon_sdhc_prepare
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	movl	$50, %esi
	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	%rbx, %rdi
	callq	_sdhci_add_host
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	%rbx, %rdi
	callq	_xenon_sdhc_unprepare
LBB0_13:
	movq	(%r12), %rdi
	callq	_clk_disable_unprepare
LBB0_14:
	movq	(%r15), %rdi
	callq	_clk_disable_unprepare
LBB0_15:
	movq	%r14, %rdi
	callq	_sdhci_pltfm_free
LBB0_16:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_xenon_pdata,4,2          ## @sdhci_xenon_pdata
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to setup input clk: %d\n"

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

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_xenon_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon_probe
_xenon_probe:                           ; @xenon_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
Lloh0:
	adrp	x1, _sdhci_xenon_pdata@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sdhci_xenon_pdata@GOTPAGEOFF]
	mov	w2, #8
	bl	_sdhci_pltfm_init
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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, x20
	bl	_sdhci_priv
	mov	x21, x0
	bl	_sdhci_pltfm_priv
	mov	x22, x0
	mov	x0, x20
	bl	_xenon_replace_mmc_host_ops
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PTR_ERR
	mov	x23, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_15
LBB0_4:
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.5:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x22]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_PTR_ERR
	mov	x23, x0
Lloh8:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
	b	LBB0_14
LBB0_7:
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_14
LBB0_8:
	ldr	w0, [x20]
	bl	_mmc_of_parse
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_sdhci_get_of_property
	mov	x0, x20
	mov	w1, #0
	bl	_xenon_set_acg
	mov	x0, x19
	bl	_xenon_probe_dt
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_xenon_sdhc_prepare
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	mov	w1, #50
	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, x20
	bl	_sdhci_add_host
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.12:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	mov	x0, x20
	bl	_xenon_sdhc_unprepare
LBB0_13:
	ldr	x0, [x22]
	bl	_clk_disable_unprepare
LBB0_14:
	ldr	x0, [x21]
	bl	_clk_disable_unprepare
LBB0_15:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_16:
	mov	x0, x23
	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_17:
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_xenon_pdata,4,2          ; @sdhci_xenon_pdata
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to setup input clk: %d\n"

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

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_xenon_probe
.subsections_via_symbols
