	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_ehci_attach
_tegra_ehci_attach:                     ## @tegra_ehci_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_device_get_softc
	movq	%rax, %r14
	movq	%r13, (%rax)
	movq	%r13, %rdi
	callq	_ofw_bus_get_node
	movl	$0, -44(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rbx
	movq	_RF_SHAREABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%rbx), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_bus_alloc_resource_any
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$0, -44(%rbp)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_bus_alloc_resource_any
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	36(%r14), %r12
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_hwreset_get_by_ofw_name
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r13, %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_device_printf
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
LBB0_10:
	movq	%r13, %rdi
	callq	_tegra_ehci_detach
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r14), %rdi
	leaq	32(%r14), %rbx
	leaq	L_.str.4(%rip), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_phy_get_by_ofw_property
	movq	(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
LBB0_14:
	leaq	40(%r14), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_clk_get_by_ofw_index
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	movq	$0, -64(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_clk_get_freq
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
LBB0_20:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_10
LBB0_21:
	movl	(%r12), %edi
	callq	_hwreset_deassert
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_8
LBB0_23:
	movl	(%rbx), %edi
	callq	_phy_enable
	testl	%eax, %eax
	je	LBB0_26
## %bb.24:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rsi
LBB0_25:
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_10
LBB0_26:
	leaq	48(%r14), %r12
	movq	_ehci_get_port_speed_hostc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r14)
	movq	_tegra_ehci_post_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	movq	24(%r14), %rdi
	callq	_rman_get_bustag
	movl	%eax, 100(%r14)
	movq	%r13, 72(%r14)
	movl	104(%r14), %eax
	movl	%eax, 68(%r14)
	movq	_EHCI_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movl	$32, 48(%r14)
	movq	%r13, %rdi
	callq	_USB_GET_DMA_TAG
	movq	_ehci_iterate_hw_softc@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_usb_bus_mem_alloc_all
	movl	$1, 8(%r14)
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_28:
	movl	100(%r14), %r15d
	movq	24(%r14), %rdi
	callq	_rman_get_bushandle
	movq	_TEGRA_EHCI_REG_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TEGRA_EHCI_REG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	96(%r14), %r8
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_space_subregion
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_6
LBB0_30:
	movq	_INTR_TYPE_BIO@GOTPCREL(%rip), %rax
	movq	_INTR_MPSAFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	16(%r14), %rsi
	movq	_ehci_interrupt@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rax
	addq	$92, %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_bus_setup_intr
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %r15d
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_20
LBB0_32:
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_device_add_child
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_device_set_ivars
	movq	_USB_VENDOR_FREESCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movl	84(%r14), %edi
	leaq	L_.str.16(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_EHCI_SCFLG_TT@GOTPCREL(%rip), %rax
	movl	80(%r14), %ecx
	orl	(%rax), %ecx
	movq	_EHCI_SCFLG_NORESTERM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 80(%r14)
	movq	%r12, %rdi
	callq	_ehci_init
	testl	%eax, %eax
	je	LBB0_36
## %bb.34:
	movl	%eax, %r15d
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_25
LBB0_35:
	leaq	L_.str.15(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_36:
	movq	_EHCI_SCFLG_DONEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 80(%r14)
	movq	56(%r14), %rdi
	callq	_device_probe_and_attach
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	movl	%eax, %r15d
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_20
LBB0_38:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.comm	_RF_SHAREABLE,4,2               ## @RF_SHAREABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate memory resources\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Cannot get reset\n"

L_.str.4:                               ## @.str.4
	.asciz	"nvidia,phy"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot get 'nvidia,phy' phy\n"

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"Cannot clear reset: %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"Cannot enable phy: %d\n"

	.comm	_ehci_get_port_speed_hostc,4,2  ## @ehci_get_port_speed_hostc
	.comm	_tegra_ehci_post_reset,4,2      ## @tegra_ehci_post_reset
	.comm	_EHCI_MAX_DEVICES,4,2           ## @EHCI_MAX_DEVICES
	.comm	_ehci_iterate_hw_softc,4,2      ## @ehci_iterate_hw_softc
L_.str.11:                              ## @.str.11
	.asciz	"usb_bus_mem_alloc_all() failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TEGRA_EHCI_REG_OFF,4,2         ## @TEGRA_EHCI_REG_OFF
	.comm	_TEGRA_EHCI_REG_SIZE,4,2        ## @TEGRA_EHCI_REG_SIZE
L_.str.12:                              ## @.str.12
	.asciz	"Could not create USB memory subregion\n"

	.comm	_INTR_TYPE_BIO,4,2              ## @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ## @INTR_MPSAFE
	.comm	_ehci_interrupt,8,3             ## @ehci_interrupt
L_.str.13:                              ## @.str.13
	.asciz	"Could not setup IRQ\n"

L_.str.14:                              ## @.str.14
	.asciz	"usbus"

L_.str.15:                              ## @.str.15
	.asciz	"Could not add USB device\n"

	.comm	_USB_VENDOR_FREESCALE,4,2       ## @USB_VENDOR_FREESCALE
L_.str.16:                              ## @.str.16
	.asciz	"Nvidia"

	.comm	_EHCI_SCFLG_TT,4,2              ## @EHCI_SCFLG_TT
	.comm	_EHCI_SCFLG_NORESTERM,4,2       ## @EHCI_SCFLG_NORESTERM
L_.str.17:                              ## @.str.17
	.asciz	"USB init failed: %d\n"

	.comm	_EHCI_SCFLG_DONEINIT,4,2        ## @EHCI_SCFLG_DONEINIT
L_.str.18:                              ## @.str.18
	.asciz	"device_probe_and_attach() failed\n"

	.no_dead_strip	_tegra_ehci_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_ehci_attach
_tegra_ehci_attach:                     ; @tegra_ehci_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_device_get_softc
	mov	x20, x0
	str	x19, [x0]
	mov	x0, x19
	bl	_ofw_bus_get_node
	str	wzr, [sp, #28]
Lloh0:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh2:
	adrp	x21, _RF_ACTIVE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RF_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _RF_SHAREABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RF_SHAREABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #28
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #24]
	cbz	x0, LBB0_4
; %bb.1:
	str	wzr, [sp, #28]
Lloh8:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w3, [x21]
	add	x2, sp, #28
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.2:
	add	x22, x20, #36
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	bl	_hwreset_get_by_ofw_name
	cbz	w0, LBB0_11
; %bb.3:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
LBB0_7:
	bl	_device_printf
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x19
	bl	_tegra_ehci_detach
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x0, [x20]
	add	x23, x20, #32
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #0
	mov	x3, x23
	bl	_phy_get_by_ofw_property
	mov	x8, x0
	ldr	x0, [x20]
	cbz	w8, LBB0_13
; %bb.12:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_13:
	add	x24, x20, #40
	mov	w1, #0
	mov	w2, #0
	mov	x3, x24
	bl	_clk_get_by_ofw_index
	cbz	w0, LBB0_15
; %bb.14:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_15:
	ldr	w0, [x24]
	bl	_clk_enable
	cbz	w0, LBB0_17
; %bb.16:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_17:
	str	xzr, [sp, #16]
	ldr	w0, [x24]
	add	x1, sp, #16
	bl	_clk_get_freq
	cbz	w0, LBB0_20
; %bb.18:
	mov	x21, x0
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_device_printf
	b	LBB0_9
LBB0_20:
	ldr	w0, [x22]
	bl	_hwreset_deassert
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_22
; %bb.21:
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_6
LBB0_22:
	ldr	w0, [x23]
	bl	_phy_enable
	cbz	w0, LBB0_24
; %bb.23:
	mov	x21, x0
	str	x21, [sp]
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_19
LBB0_24:
	add	x21, x20, #48
Lloh35:
	adrp	x8, _ehci_get_port_speed_hostc@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ehci_get_port_speed_hostc@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _tegra_ehci_post_reset@GOTPAGE
Lloh39:
	ldr	x9, [x9, _tegra_ehci_post_reset@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #108]
	ldr	x0, [x20, #24]
	bl	_rman_get_bustag
	str	w0, [x20, #100]
	str	x19, [x20, #72]
Lloh41:
	adrp	x8, _EHCI_MAX_DEVICES@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EHCI_MAX_DEVICES@GOTPAGEOFF]
	ldr	w9, [x20, #104]
Lloh43:
	ldr	w8, [x8]
	stp	w8, w9, [x20, #64]
	mov	w8, #32
	str	w8, [x20, #48]
	mov	x0, x19
	bl	_USB_GET_DMA_TAG
	mov	x1, x0
Lloh44:
	adrp	x2, _ehci_iterate_hw_softc@GOTPAGE
Lloh45:
	ldr	x2, [x2, _ehci_iterate_hw_softc@GOTPAGEOFF]
	mov	x0, x21
	bl	_usb_bus_mem_alloc_all
	mov	w8, #1
	str	w8, [x20, #8]
	cbz	w0, LBB0_26
; %bb.25:
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_device_printf
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_26:
	ldr	w22, [x20, #100]
	ldr	x0, [x20, #24]
	bl	_rman_get_bushandle
	mov	x1, x0
Lloh50:
	adrp	x8, _TEGRA_EHCI_REG_OFF@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TEGRA_EHCI_REG_OFF@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _TEGRA_EHCI_REG_SIZE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TEGRA_EHCI_REG_SIZE@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	add	x4, x20, #96
	mov	x0, x22
	bl	_bus_space_subregion
	cbz	w0, LBB0_28
; %bb.27:
Lloh56:
	adrp	x1, l_.str.12@PAGE
Lloh57:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_6
LBB0_28:
	ldr	x1, [x20, #16]
Lloh58:
	adrp	x8, _INTR_TYPE_BIO@GOTPAGE
Lloh59:
	ldr	x8, [x8, _INTR_TYPE_BIO@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
Lloh61:
	adrp	x9, _INTR_MPSAFE@GOTPAGE
Lloh62:
	ldr	x9, [x9, _INTR_MPSAFE@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh64:
	adrp	x8, _ehci_interrupt@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ehci_interrupt@GOTPAGEOFF]
Lloh66:
	ldr	x4, [x8]
	add	x6, x20, #92
	mov	x0, x19
	mov	x3, #0
	mov	x5, x21
	bl	_bus_setup_intr
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_30
; %bb.29:
	mov	x22, x0
Lloh67:
	adrp	x1, l_.str.13@PAGE
Lloh68:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	x21, x22
	b	LBB0_9
LBB0_30:
Lloh69:
	adrp	x1, l_.str.14@PAGE
Lloh70:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	bl	_device_add_child
	str	x0, [x20, #56]
	cbz	x0, LBB0_33
; %bb.31:
	mov	x1, x21
	bl	_device_set_ivars
Lloh71:
	adrp	x8, _USB_VENDOR_FREESCALE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _USB_VENDOR_FREESCALE@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	str	w8, [x20, #88]
	ldr	w0, [x20, #84]
Lloh74:
	adrp	x1, l_.str.16@PAGE
Lloh75:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh76:
	adrp	x8, _EHCI_SCFLG_TT@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EHCI_SCFLG_TT@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	ldr	w9, [x20, #80]
	orr	w8, w9, w8
Lloh79:
	adrp	x9, _EHCI_SCFLG_NORESTERM@GOTPAGE
Lloh80:
	ldr	x9, [x9, _EHCI_SCFLG_NORESTERM@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #80]
	mov	x0, x21
	bl	_ehci_init
	cbz	w0, LBB0_34
; %bb.32:
	mov	x21, x0
	str	x21, [sp]
Lloh82:
	adrp	x1, l_.str.17@PAGE
Lloh83:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_device_printf
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_9
LBB0_33:
Lloh84:
	adrp	x1, l_.str.15@PAGE
Lloh85:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	w21, #0
	b	LBB0_9
LBB0_34:
Lloh86:
	adrp	x8, _EHCI_SCFLG_DONEINIT@GOTPAGE
Lloh87:
	ldr	x8, [x8, _EHCI_SCFLG_DONEINIT@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	ldr	w9, [x20, #80]
	orr	w8, w9, w8
	str	w8, [x20, #80]
	ldr	x0, [x20, #56]
	bl	_device_probe_and_attach
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_36
; %bb.35:
	mov	x21, x0
Lloh89:
	adrp	x1, l_.str.18@PAGE
Lloh90:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_19
LBB0_36:
	mov	w21, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.comm	_RF_SHAREABLE,4,2               ; @RF_SHAREABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate memory resources\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Cannot get reset\n"

l_.str.4:                               ; @.str.4
	.asciz	"nvidia,phy"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot get 'nvidia,phy' phy\n"

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"Cannot clear reset: %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"Cannot enable phy: %d\n"

	.comm	_ehci_get_port_speed_hostc,4,2  ; @ehci_get_port_speed_hostc
	.comm	_tegra_ehci_post_reset,4,2      ; @tegra_ehci_post_reset
	.comm	_EHCI_MAX_DEVICES,4,2           ; @EHCI_MAX_DEVICES
	.comm	_ehci_iterate_hw_softc,4,2      ; @ehci_iterate_hw_softc
l_.str.11:                              ; @.str.11
	.asciz	"usb_bus_mem_alloc_all() failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TEGRA_EHCI_REG_OFF,4,2         ; @TEGRA_EHCI_REG_OFF
	.comm	_TEGRA_EHCI_REG_SIZE,4,2        ; @TEGRA_EHCI_REG_SIZE
l_.str.12:                              ; @.str.12
	.asciz	"Could not create USB memory subregion\n"

	.comm	_INTR_TYPE_BIO,4,2              ; @INTR_TYPE_BIO
	.comm	_INTR_MPSAFE,4,2                ; @INTR_MPSAFE
	.comm	_ehci_interrupt,8,3             ; @ehci_interrupt
l_.str.13:                              ; @.str.13
	.asciz	"Could not setup IRQ\n"

l_.str.14:                              ; @.str.14
	.asciz	"usbus"

l_.str.15:                              ; @.str.15
	.asciz	"Could not add USB device\n"

	.comm	_USB_VENDOR_FREESCALE,4,2       ; @USB_VENDOR_FREESCALE
l_.str.16:                              ; @.str.16
	.asciz	"Nvidia"

	.comm	_EHCI_SCFLG_TT,4,2              ; @EHCI_SCFLG_TT
	.comm	_EHCI_SCFLG_NORESTERM,4,2       ; @EHCI_SCFLG_NORESTERM
l_.str.17:                              ; @.str.17
	.asciz	"USB init failed: %d\n"

	.comm	_EHCI_SCFLG_DONEINIT,4,2        ; @EHCI_SCFLG_DONEINIT
l_.str.18:                              ; @.str.18
	.asciz	"device_probe_and_attach() failed\n"

	.no_dead_strip	_tegra_ehci_attach
.subsections_via_symbols
