	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_tegra_probe
_sdhci_tegra_probe:                     ## @sdhci_tegra_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, %r15
	movq	_sdhci_tegra_dt_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rbx
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	$40, %edx
	callq	_sdhci_pltfm_init
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.28:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_3:
	movq	%r13, %rdi
	callq	_sdhci_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r12
	movq	$0, (%rax)
	movl	$0, 8(%rax)
	movq	%rbx, 32(%rax)
	movq	_NVQUIRK_NEEDS_PAD_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tegra_sdhci_init_pinctrl_info
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_sdhci_tegra_start_signal_voltage_switch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
LBB0_6:
	movq	_NVQUIRK_HAS_PADCALIB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	_tegra_sdhci_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
LBB0_8:
	movq	_tegra_sdhci_hs400_enhanced_strobe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	24(%r13), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_tegra_sdhci_execute_hw_tuning@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
LBB0_10:
	movq	(%r13), %rdi
	callq	_mmc_of_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.11:
	movq	32(%r12), %rax
	movq	_NVQUIRK_ENABLE_DDR50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_MMC_CAP_1_8V_DDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	orl	%eax, (%rcx)
LBB0_13:
	movq	%r13, %rdi
	callq	_tegra_sdhci_parse_dt
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_26:
	movq	%r15, %rdi
	callq	_sdhci_pltfm_free
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	(%r13), %rdi
	callq	_mmc_dev
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_26
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_26
LBB0_18:
	movq	%rbx, %rdi
	callq	_clk_prepare_enable
	movq	%rbx, (%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_reset_control_get_exclusive
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_25
LBB0_20:
	callq	_reset_control_assert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movq	16(%r12), %rdi
	callq	_reset_control_deassert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movq	%r13, %rdi
	callq	_sdhci_tegra_add_host
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:
	movl	%eax, %ebx
	movq	16(%r12), %rdi
	callq	_reset_control_assert
LBB0_25:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_26
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_sdhci_tegra_dt_match,4,2       ## @sdhci_tegra_dt_match
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NVQUIRK_NEEDS_PAD_CONTROL,4,2  ## @NVQUIRK_NEEDS_PAD_CONTROL
	.comm	_sdhci_tegra_start_signal_voltage_switch,4,2 ## @sdhci_tegra_start_signal_voltage_switch
	.comm	_NVQUIRK_HAS_PADCALIB,4,2       ## @NVQUIRK_HAS_PADCALIB
	.comm	_tegra_sdhci_request,4,2        ## @tegra_sdhci_request
	.comm	_tegra_sdhci_hs400_enhanced_strobe,4,2 ## @tegra_sdhci_hs400_enhanced_strobe
	.comm	_tegra_sdhci_execute_hw_tuning,4,2 ## @tegra_sdhci_execute_hw_tuning
	.comm	_NVQUIRK_ENABLE_DDR50,4,2       ## @NVQUIRK_ENABLE_DDR50
	.comm	_MMC_CAP_1_8V_DDR,4,2           ## @MMC_CAP_1_8V_DDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"failed to get clock: %d\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"failed to get reset control: %d\n"

	.no_dead_strip	_sdhci_tegra_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_tegra_probe
_sdhci_tegra_probe:                     ; @sdhci_tegra_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	x8, _sdhci_tegra_dt_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdhci_tegra_dt_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x23, [x0]
	ldr	w1, [x23, #4]
	mov	x0, x19
	mov	w2, #40
	bl	_sdhci_pltfm_init
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	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_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_4:
	mov	x0, x21
	bl	_sdhci_priv
	mov	x20, x0
	bl	_sdhci_pltfm_priv
	mov	x22, x0
	str	xzr, [x0]
	str	wzr, [x0, #8]
	str	x23, [x0, #32]
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _NVQUIRK_NEEDS_PAD_CONTROL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVQUIRK_NEEDS_PAD_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	bl	_tegra_sdhci_init_pinctrl_info
	cbnz	w0, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _sdhci_tegra_start_signal_voltage_switch@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sdhci_tegra_start_signal_voltage_switch@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #20]
LBB0_7:
	ldr	w8, [x23]
Lloh12:
	adrp	x9, _NVQUIRK_HAS_PADCALIB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NVQUIRK_HAS_PADCALIB@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _tegra_sdhci_request@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tegra_sdhci_request@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #16]
LBB0_9:
Lloh18:
	adrp	x8, _tegra_sdhci_hs400_enhanced_strobe@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tegra_sdhci_hs400_enhanced_strobe@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _tegra_sdhci_execute_hw_tuning@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tegra_sdhci_execute_hw_tuning@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #8]
LBB0_11:
	ldr	x0, [x21]
	bl	_mmc_of_parse
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	x8, [x22, #32]
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _NVQUIRK_ENABLE_DDR50@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NVQUIRK_ENABLE_DDR50@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh27:
	adrp	x8, _MMC_CAP_1_8V_DDR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MMC_CAP_1_8V_DDR@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [x21]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_14:
	mov	x0, x21
	bl	_tegra_sdhci_parse_dt
Lloh30:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x22, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.15:
	ldr	x0, [x22, #24]
	bl	_PTR_ERR
	mov	x23, x0
LBB0_16:
	mov	x0, x19
	bl	_sdhci_pltfm_free
LBB0_17:
	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_18:
	ldr	x0, [x21]
	bl	_mmc_dev
	mov	x1, #0
	bl	_devm_clk_get
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x23, x0
Lloh35:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_16
; %bb.20:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_16
LBB0_21:
	mov	x0, x23
	bl	_clk_prepare_enable
	str	x23, [x20]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get_exclusive
	str	x0, [x22, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x22, #16]
	cbz	x8, LBB0_23
; %bb.22:
	bl	_PTR_ERR
	mov	x23, x0
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_27
LBB0_23:
	bl	_reset_control_assert
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.24:
	mov	w0, #2000
	mov	w1, #4000
	bl	_usleep_range
	ldr	x0, [x22, #16]
	bl	_reset_control_deassert
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.25:
	mov	w0, #2000
	mov	w1, #4000
	bl	_usleep_range
	mov	x0, x21
	bl	_sdhci_tegra_add_host
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.26:
	ldr	x0, [x22, #16]
	bl	_reset_control_assert
LBB0_27:
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_sdhci_tegra_dt_match,4,2       ; @sdhci_tegra_dt_match
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NVQUIRK_NEEDS_PAD_CONTROL,4,2  ; @NVQUIRK_NEEDS_PAD_CONTROL
	.comm	_sdhci_tegra_start_signal_voltage_switch,4,2 ; @sdhci_tegra_start_signal_voltage_switch
	.comm	_NVQUIRK_HAS_PADCALIB,4,2       ; @NVQUIRK_HAS_PADCALIB
	.comm	_tegra_sdhci_request,4,2        ; @tegra_sdhci_request
	.comm	_tegra_sdhci_hs400_enhanced_strobe,4,2 ; @tegra_sdhci_hs400_enhanced_strobe
	.comm	_tegra_sdhci_execute_hw_tuning,4,2 ; @tegra_sdhci_execute_hw_tuning
	.comm	_NVQUIRK_ENABLE_DDR50,4,2       ; @NVQUIRK_ENABLE_DDR50
	.comm	_MMC_CAP_1_8V_DDR,4,2           ; @MMC_CAP_1_8V_DDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"failed to get clock: %d\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"failed to get reset control: %d\n"

	.no_dead_strip	_sdhci_tegra_probe
.subsections_via_symbols
