	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_phy_xusb_utmi_pad_power_on
_tegra_phy_xusb_utmi_pad_power_on:      ## @tegra_phy_xusb_utmi_pad_power_on
	.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, %rbx
	callq	_phy_get_drvdata
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	8(%rax), %rcx
	movq	(%rcx), %r12
	movq	(%r12), %r15
	movl	(%rax), %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_tegra_xusb_find_usb2_port
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_tegra186_utmi_bias_pad_power_on
	movl	$2, %edi
	callq	_udelay
	movl	%r14d, %edi
	callq	_XUSB_PADCTL_USB2_OTG_PADX_CTL0
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_padctl_readl
	movq	_USB2_OTG_PD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r14d, %edi
	callq	_XUSB_PADCTL_USB2_OTG_PADX_CTL0
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_padctl_writel
	movl	%r14d, %edi
	callq	_XUSB_PADCTL_USB2_OTG_PADX_CTL1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_padctl_readl
	movq	_USB2_OTG_PD_DR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r14d, %edi
	callq	_XUSB_PADCTL_USB2_OTG_PADX_CTL1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_padctl_writel                  ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no port found for USB2 lane %u\n"

	.comm	_USB2_OTG_PD,4,2                ## @USB2_OTG_PD
	.comm	_USB2_OTG_PD_DR,4,2             ## @USB2_OTG_PD_DR
	.no_dead_strip	_tegra_phy_xusb_utmi_pad_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_phy_xusb_utmi_pad_power_on
_tegra_phy_xusb_utmi_pad_power_on:      ; @tegra_phy_xusb_utmi_pad_power_on
	.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
	bl	_phy_get_drvdata
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	ldr	x21, [x19]
	ldr	w20, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_tegra_xusb_find_usb2_port
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_tegra186_utmi_bias_pad_power_on
	mov	w0, #2
	bl	_udelay
	mov	x0, x20
	bl	_XUSB_PADCTL_USB2_OTG_PADX_CTL0
	mov	x1, x0
	mov	x0, x19
	bl	_padctl_readl
Lloh0:
	adrp	x8, _USB2_OTG_PD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB2_OTG_PD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w21, w0, w8
	mov	x0, x20
	bl	_XUSB_PADCTL_USB2_OTG_PADX_CTL0
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_padctl_writel
	mov	x0, x20
	bl	_XUSB_PADCTL_USB2_OTG_PADX_CTL1
	mov	x1, x0
	mov	x0, x19
	bl	_padctl_readl
Lloh3:
	adrp	x8, _USB2_OTG_PD_DR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB2_OTG_PD_DR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w21, w0, w8
	mov	x0, x20
	bl	_XUSB_PADCTL_USB2_OTG_PADX_CTL1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	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	_padctl_writel
LBB0_3:
	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_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	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	_dev_err
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no port found for USB2 lane %u\n"

	.comm	_USB2_OTG_PD,4,2                ; @USB2_OTG_PD
	.comm	_USB2_OTG_PD_DR,4,2             ; @USB2_OTG_PD_DR
	.no_dead_strip	_tegra_phy_xusb_utmi_pad_power_on
.subsections_via_symbols
