	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_sdhci_attach
_tegra_sdhci_attach:                    ## @tegra_sdhci_attach
	.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
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r12
	movq	%rax, %r15
	movl	%r14d, 84(%rax)
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %r13d
	movl	$0, -44(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	$0, -44(%rbp)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_INTR_TYPE_BIO@GOTPCREL(%rip), %rcx
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_tegra_sdhci_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	56(%r12), %rcx
	movq	%rcx, (%rsp)
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	movq	%r15, %r9
	callq	_bus_setup_intr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_13:
	movq	64(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_sdhci_fdt_gpio_teardown
LBB0_15:
	movq	56(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:
	movq	24(%r15), %rsi
	movl	%r14d, %edi
	callq	_bus_teardown_intr
LBB0_17:
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_gpio_pin_release
LBB0_19:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_clk_release
LBB0_21:
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_hwreset_release
LBB0_23:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.24:
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_bus_release_resource
LBB0_25:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.26:
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_bus_release_resource
LBB0_27:
	movl	%r13d, %ebx
LBB0_49:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	84(%r15), %edi
	leaq	32(%r12), %rbx
	leaq	L_.str.3(%rip), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_hwreset_get_by_ofw_name
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movl	84(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	movq	(%rbx), %rdi
	callq	_hwreset_deassert
	testl	%eax, %eax
	je	LBB0_28
## %bb.10:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_28:
	movl	84(%r15), %edi
	leaq	48(%r12), %rcx
	leaq	L_.str.6(%rip), %rdx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_gpio_pin_get_by_ofw_property
	leaq	40(%r12), %rbx
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_clk_get_by_ofw_index
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_11
LBB0_30:
	movq	(%rbx), %rdi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %r13d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_11
LBB0_32:
	movq	(%rbx), %rdi
	movq	_CLK_SET_ROUND_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48000000, %esi                 ## imm = 0x2DC6C00
	callq	_clk_set_freq
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	leaq	L_.str.9(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_34:
	movq	(%rbx), %rdi
	leaq	-52(%rbp), %rsi
	callq	_clk_get_freq
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	%eax, %r13d
	leaq	L_.str.10(%rip), %rsi
LBB0_11:
	movl	%r14d, %edi
LBB0_12:
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_13
LBB0_36:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_38
## %bb.37:
	movl	-52(%rbp), %edx
	leaq	L_.str.11(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_38:
	movl	-52(%rbp), %eax
	movl	%eax, (%r15)
	movq	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPCREL(%rip), %rax
	movq	_SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SDHCI_QUIRK_MISSING_CAPS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, 4(%r15)
	movq	_SDHCI_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RD4
	movl	%eax, 8(%r15)
	leaq	L_.str.12(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_45
## %bb.39:
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MMC_CAP_8_BIT_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%eax, %ecx
	notl	%ecx
	andl	8(%r15), %ecx
	movl	%ecx, 8(%r15)
	movl	-56(%rbp), %edx
	cmpl	$1, %edx
	je	LBB0_45
## %bb.40:
	cmpl	$4, %edx
	je	LBB0_43
## %bb.41:
	cmpl	$8, %edx
	jne	LBB0_44
## %bb.42:
	orl	%esi, %ecx
LBB0_43:
	orl	%eax, %ecx
	movl	%ecx, 8(%r15)
	jmp	LBB0_45
LBB0_44:
	leaq	L_.str.13(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_45:
	leaq	L_.str.14(%rip), %rsi
	movl	%ebx, %edi
	callq	_OF_hasprop
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movl	$1, 12(%r15)
LBB0_47:
	movq	_SDHCI_CLOCK_V3_BASE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r15), %eax
	movl	%eax, 8(%r15)
	addq	$72, %r12
	movq	(%r15), %rcx
	rolq	$32, %rcx
	movq	%rcx, 72(%r15)
	movl	%eax, 80(%r15)
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sdhci_init_slot
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.48:
	movl	84(%r15), %edi
	movq	%r12, %rsi
	callq	_sdhci_fdt_gpio_setup
	movq	%rax, 64(%r15)
	movl	%r14d, %edi
	callq	_bus_generic_probe
	movl	%r14d, %edi
	callq	_bus_generic_attach
	movq	%r12, %rdi
	callq	_sdhci_start_slot
	jmp	LBB0_49
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate memory window\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate interrupt\n"

	.comm	_INTR_TYPE_BIO,4,2              ## @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_tegra_sdhci_intr,4,2           ## @tegra_sdhci_intr
L_.str.2:                               ## @.str.2
	.asciz	"cannot setup interrupt handler\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Cannot get 'sdhci' reset\n"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot unreset 'sdhci' reset\n"

L_.str.6:                               ## @.str.6
	.asciz	"power-gpios"

L_.str.7:                               ## @.str.7
	.asciz	"Cannot get clock\n"

L_.str.8:                               ## @.str.8
	.asciz	"Cannot enable clock\n"

	.comm	_CLK_SET_ROUND_DOWN,4,2         ## @CLK_SET_ROUND_DOWN
L_.str.9:                               ## @.str.9
	.asciz	"Cannot set clock\n"

L_.str.10:                              ## @.str.10
	.asciz	"Cannot get clock frequency\n"

	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.11:                              ## @.str.11
	.asciz	" Base MMC clock: %lld\n"

	.comm	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,2 ## @SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
	.comm	_SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,4,2 ## @SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK
	.comm	_SDHCI_QUIRK_MISSING_CAPS,4,2   ## @SDHCI_QUIRK_MISSING_CAPS
	.comm	_SDHCI_CAPABILITIES,4,2         ## @SDHCI_CAPABILITIES
L_.str.12:                              ## @.str.12
	.asciz	"bus-width"

	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ## @MMC_CAP_8_BIT_DATA
L_.str.13:                              ## @.str.13
	.asciz	"Bad bus-width value %u\n"

L_.str.14:                              ## @.str.14
	.asciz	"non-removable"

	.comm	_SDHCI_CLOCK_V3_BASE_MASK,4,2   ## @SDHCI_CLOCK_V3_BASE_MASK
	.no_dead_strip	_tegra_sdhci_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_sdhci_attach
_tegra_sdhci_attach:                    ; @tegra_sdhci_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #84]
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x21, x0
	str	wzr, [sp, #28]
Lloh0:
	adrp	x24, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SYS_RES_MEMORY@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x22, _RF_ACTIVE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RF_ACTIVE@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x2, sp, #28
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #16]
Lloh4:
	adrp	x25, _SYS_RES_IRQ@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SYS_RES_IRQ@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	str	wzr, [sp, #28]
	ldr	w1, [x25]
	ldr	w3, [x22]
	add	x2, sp, #28
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #24]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
Lloh6:
	adrp	x8, _INTR_TYPE_BIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTR_TYPE_BIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh12:
	adrp	x8, _tegra_sdhci_intr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tegra_sdhci_intr@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	add	x6, x20, #56
	mov	x0, x19
	mov	x3, #0
	mov	x5, x20
	bl	_bus_setup_intr
	cbz	x0, LBB0_22
; %bb.3:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_device_printf
Lloh21:
	adrp	x8, _ENXIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
LBB0_7:
	ldr	x0, [x20, #64]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_sdhci_fdt_gpio_teardown
LBB0_9:
	ldr	x2, [x20, #56]
	cbz	x2, LBB0_11
; %bb.10:
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_bus_teardown_intr
LBB0_11:
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_gpio_pin_release
LBB0_13:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_clk_release
LBB0_15:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_hwreset_release
LBB0_17:
	ldr	x3, [x20, #24]
	cbz	x3, LBB0_19
; %bb.18:
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #0
	bl	_bus_release_resource
LBB0_19:
	ldr	x3, [x20, #16]
	cbz	x3, LBB0_21
; %bb.20:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_bus_release_resource
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	ldr	w0, [x20, #84]
	add	x23, x20, #32
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #0
	mov	x3, x23
	bl	_hwreset_get_by_ofw_name
	cbz	w0, LBB0_24
; %bb.23:
	mov	x22, x0
	ldr	w0, [x20, #84]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_35
LBB0_24:
	ldr	x0, [x23]
	bl	_hwreset_deassert
	cbz	w0, LBB0_26
; %bb.25:
	mov	x22, x0
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_34
LBB0_26:
	ldr	w0, [x20, #84]
	add	x3, x20, #48
Lloh30:
	adrp	x2, l_.str.6@PAGE
Lloh31:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x1, x21
	bl	_gpio_pin_get_by_ofw_property
	add	x23, x20, #40
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, x23
	bl	_clk_get_by_ofw_index
	cbz	w0, LBB0_28
; %bb.27:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_34
LBB0_28:
	ldr	x0, [x23]
	bl	_clk_enable
	cbz	w0, LBB0_30
; %bb.29:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_34
LBB0_30:
	ldr	x0, [x23]
Lloh36:
	adrp	x8, _CLK_SET_ROUND_DOWN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CLK_SET_ROUND_DOWN@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	w1, #27648
	movk	w1, #732, lsl #16
	bl	_clk_set_freq
	cbz	w0, LBB0_32
; %bb.31:
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_32:
	ldr	x0, [x23]
	add	x1, sp, #24
	bl	_clk_get_freq
	cbz	w0, LBB0_36
; %bb.33:
	mov	x22, x0
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_34:
	mov	x0, x19
LBB0_35:
	bl	_device_printf
	b	LBB0_7
LBB0_36:
Lloh43:
	adrp	x8, _bootverbose@GOTPAGE
Lloh44:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cbz	x8, LBB0_38
; %bb.37:
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_38:
	ldr	w8, [sp, #24]
	str	w8, [x20]
Lloh48:
	adrp	x8, _SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SDHCI_QUIRK_BROKEN_TIMEOUT_VAL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh54:
	adrp	x9, _SDHCI_QUIRK_MISSING_CAPS@GOTPAGE
Lloh55:
	ldr	x9, [x9, _SDHCI_QUIRK_MISSING_CAPS@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20, #4]
	orr	w8, w8, w9
	str	w8, [x20, #4]
Lloh57:
	adrp	x8, _SDHCI_CAPABILITIES@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SDHCI_CAPABILITIES@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RD4
	str	w0, [x20, #8]
Lloh60:
	adrp	x1, l_.str.12@PAGE
Lloh61:
	add	x1, x1, l_.str.12@PAGEOFF
	add	x2, sp, #20
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmp	x0, #1
	b.lt	LBB0_45
; %bb.39:
Lloh62:
	adrp	x8, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _MMC_CAP_8_BIT_DATA@GOTPAGE
Lloh66:
	ldr	x9, [x9, _MMC_CAP_8_BIT_DATA@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x9]
	orr	w9, w10, w8
	ldr	w11, [x20, #8]
	bic	w9, w11, w9
	str	w9, [x20, #8]
	ldr	w11, [sp, #20]
	cmp	w11, #1
	b.eq	LBB0_45
; %bb.40:
	cmp	w11, #4
	b.eq	LBB0_43
; %bb.41:
	cmp	w11, #8
	b.ne	LBB0_44
; %bb.42:
	orr	w9, w9, w10
LBB0_43:
	orr	w8, w9, w8
	str	w8, [x20, #8]
	b	LBB0_45
LBB0_44:
	str	x11, [sp]
Lloh68:
	adrp	x1, l_.str.13@PAGE
Lloh69:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_45:
Lloh70:
	adrp	x1, l_.str.14@PAGE
Lloh71:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_OF_hasprop
	cbz	x0, LBB0_47
; %bb.46:
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_47:
Lloh72:
	adrp	x8, _SDHCI_CLOCK_V3_BASE_MASK@GOTPAGE
Lloh73:
	ldr	x8, [x8, _SDHCI_CLOCK_V3_BASE_MASK@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	ldr	d0, [x20]
	rev64.2s	v0, v0
	mov	x21, x20
	str	d0, [x21, #72]!
	ldur	w9, [x21, #-64]
	bic	w8, w9, w8
	stur	w8, [x21, #-64]
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_sdhci_init_slot
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.48:
	ldr	w0, [x20, #84]
	mov	x1, x21
	bl	_sdhci_fdt_gpio_setup
	str	x0, [x20, #64]
	mov	x0, x19
	bl	_bus_generic_probe
	mov	x0, x19
	bl	_bus_generic_attach
	mov	x0, x21
	bl	_sdhci_start_slot
	b	LBB0_21
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate memory window\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate interrupt\n"

	.comm	_INTR_TYPE_BIO,4,2              ; @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_tegra_sdhci_intr,4,2           ; @tegra_sdhci_intr
l_.str.2:                               ; @.str.2
	.asciz	"cannot setup interrupt handler\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Cannot get 'sdhci' reset\n"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot unreset 'sdhci' reset\n"

l_.str.6:                               ; @.str.6
	.asciz	"power-gpios"

l_.str.7:                               ; @.str.7
	.asciz	"Cannot get clock\n"

l_.str.8:                               ; @.str.8
	.asciz	"Cannot enable clock\n"

	.comm	_CLK_SET_ROUND_DOWN,4,2         ; @CLK_SET_ROUND_DOWN
l_.str.9:                               ; @.str.9
	.asciz	"Cannot set clock\n"

l_.str.10:                              ; @.str.10
	.asciz	"Cannot get clock frequency\n"

	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.11:                              ; @.str.11
	.asciz	" Base MMC clock: %lld\n"

	.comm	_SDHCI_QUIRK_BROKEN_TIMEOUT_VAL,4,2 ; @SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
	.comm	_SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,4,2 ; @SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK
	.comm	_SDHCI_QUIRK_MISSING_CAPS,4,2   ; @SDHCI_QUIRK_MISSING_CAPS
	.comm	_SDHCI_CAPABILITIES,4,2         ; @SDHCI_CAPABILITIES
l_.str.12:                              ; @.str.12
	.asciz	"bus-width"

	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ; @MMC_CAP_8_BIT_DATA
l_.str.13:                              ; @.str.13
	.asciz	"Bad bus-width value %u\n"

l_.str.14:                              ; @.str.14
	.asciz	"non-removable"

	.comm	_SDHCI_CLOCK_V3_BASE_MASK,4,2   ; @SDHCI_CLOCK_V3_BASE_MASK
	.no_dead_strip	_tegra_sdhci_attach
.subsections_via_symbols
