	.file	"extr_pinctrl-tegra-xusb.c_pcie_phy_power_on.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcie_phy_power_on, @function
pcie_phy_power_on:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	phy_get_drvdata@PLT
	mov	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1[rip]
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	mov	rdi, rax
	mov	rbx, rax
	call	padctl_readl@PLT
	mov	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1_REFCLK_SEL_MASK[rip]
	mov	edx, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1[rip]
	mov	rdi, rbx
	not	esi
	and	esi, eax
	call	padctl_writel@PLT
	mov	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL2[rip]
	mov	rdi, rbx
	call	padctl_readl@PLT
	mov	edx, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL2[rip]
	mov	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL2_REFCLKBUF_EN[rip]
	mov	rdi, rbx
	or	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_EN[rip]
	or	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_SEL[rip]
	or	esi, eax
	call	padctl_writel@PLT
	mov	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1[rip]
	mov	rdi, rbx
	call	padctl_readl@PLT
	mov	edx, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1[rip]
	or	eax, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL_RST[rip]
	mov	rdi, rbx
	mov	esi, eax
	call	padctl_writel@PLT
	mov	edi, 50
	call	msecs_to_jiffies@PLT
	mov	rdi, QWORD PTR jiffies[rip]
	lea	rbp, [rax+rdi]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1[rip]
	mov	rdi, rbx
	call	padctl_readl@PLT
	test	DWORD PTR XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL0_LOCKDET[rip], eax
	jne	.L5
	mov	edi, 100
	mov	esi, 200
	call	usleep_range@PLT
	mov	rdi, QWORD PTR jiffies[rip]
.L2:
	mov	rsi, rbp
	call	time_before@PLT
	test	rax, rax
	jne	.L4
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pcie_phy_power_on, .-pcie_phy_power_on
	.comm	jiffies,8,8
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_SEL,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_EN,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_REFCLKBUF_EN,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_REFCLK_SEL_MASK,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL_RST,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL0_LOCKDET,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pinctrl-tegra-xusb.c_pcie_phy_power_on.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcie_phy_power_on, %function
pcie_phy_power_on:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	phy_get_drvdata
	ldr	r5, .L8
	ldr	r3, .L8+4
	ldr	r1, [r5]
	mov	r4, r0
	ldr	r9, [r3]
	bl	padctl_readl
	mov	r3, r0
	ldr	r2, .L8+8
	ldr	r6, .L8+12
	ldr	r1, [r2]
	mov	r0, r4
	bic	r1, r3, r1
	ldr	r2, [r5]
	bl	padctl_writel
	ldr	r1, [r6]
	mov	r0, r4
	bl	padctl_readl
	ldr	r3, .L8+16
	ldr	r2, .L8+20
	ldr	r1, .L8+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	ldr	r2, [r6]
	orr	r1, r1, r0
	mov	r0, r4
	bl	padctl_writel
	ldr	r1, [r5]
	mov	r0, r4
	bl	padctl_readl
	mov	r1, r0
	ldr	r3, .L8+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	padctl_writel
	mov	r0, #50
	bl	msecs_to_jiffies
	mov	r6, r0
	ldr	r7, .L8+32
	ldr	r8, .L8+36
	ldr	r0, [r7]
	add	r6, r6, r0
	b	.L2
.L4:
	mov	r0, r4
	ldr	r1, [r5]
	bl	padctl_readl
	ldr	r3, [r8]
	tst	r0, r3
	bne	.L5
	mov	r1, #200
	mov	r0, #100
	bl	usleep_range
	ldr	r0, [r7]
.L2:
	mov	r1, r6
	bl	time_before
	cmp	r0, #0
	bne	.L4
	rsb	r0, r9, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL1
	.word	ETIMEDOUT
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_REFCLK_SEL_MASK
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL2
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_REFCLKBUF_EN
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_EN
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_SEL
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL_RST
	.word	jiffies
	.word	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL0_LOCKDET
	.size	pcie_phy_power_on, .-pcie_phy_power_on
	.comm	jiffies,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_SEL,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_TXCLKREF_EN,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2_REFCLKBUF_EN,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL2,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_REFCLK_SEL_MASK,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL_RST,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL0_LOCKDET,4,4
	.comm	XUSB_PADCTL_IOPHY_PLL_P0_CTL1,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
