	.file	"extr_pcie-tegra194.c_tegra_pcie_try_link_l2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tegra_pcie_try_link_l2, @function
tegra_pcie_try_link_l2:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	add	rdi, 8
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	tegra_pcie_dw_link_up@PLT
	test	eax, eax
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR APPL_RADM_STATUS[rip]
	mov	rdi, rbx
	call	appl_readl@PLT
	mov	edx, DWORD PTR APPL_RADM_STATUS[rip]
	or	eax, DWORD PTR APPL_PM_XMT_TURNOFF_STATE[rip]
	mov	rdi, rbx
	mov	esi, eax
	mov	ebp, eax
	call	appl_writel@PLT
	mov	edx, DWORD PTR APPL_DEBUG_PM_LINKST_IN_L2_LAT[rip]
	mov	rdi, QWORD PTR APPL_DEBUG[rip]
	mov	esi, ebp
	add	rdi, QWORD PTR [rbx]
	mov	r8d, DWORD PTR PME_ACK_TIMEOUT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	ecx, 1
	and	edx, ebp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	readl_poll_timeout_atomic@PLT
	.cfi_endproc
.LFE0:
	.size	tegra_pcie_try_link_l2, .-tegra_pcie_try_link_l2
	.comm	PME_ACK_TIMEOUT,4,4
	.comm	APPL_RADM_STATUS,4,4
	.comm	APPL_PM_XMT_TURNOFF_STATE,4,4
	.comm	APPL_DEBUG_PM_LINKST_IN_L2_LAT,4,4
	.comm	APPL_DEBUG,8,8
	.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_pcie-tegra194.c_tegra_pcie_try_link_l2.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_pcie_try_link_l2, %function
tegra_pcie_try_link_l2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #8
	add	r0, r0, #4
	bl	tegra_pcie_dw_link_up
	cmp	r0, #0
	beq	.L1
	ldr	r6, .L8
	mov	r0, r4
	ldr	r1, [r6]
	bl	appl_readl
	mov	r5, r0
	ldr	r3, .L8+4
	ldr	r2, [r6]
	ldr	r1, [r3]
	mov	r0, r4
	orr	r5, r5, r1
	mov	r1, r5
	bl	appl_writel
	ldr	r1, .L8+8
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r1, [r1]
	ldr	r0, [r4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r0, r0, r1
	str	r3, [sp]
	mov	r1, r5
	mov	r3, #1
	and	r2, r2, r5
	bl	readl_poll_timeout_atomic
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	APPL_RADM_STATUS
	.word	APPL_PM_XMT_TURNOFF_STATE
	.word	APPL_DEBUG
	.word	APPL_DEBUG_PM_LINKST_IN_L2_LAT
	.word	PME_ACK_TIMEOUT
	.size	tegra_pcie_try_link_l2, .-tegra_pcie_try_link_l2
	.comm	PME_ACK_TIMEOUT,4,4
	.comm	APPL_RADM_STATUS,4,4
	.comm	APPL_PM_XMT_TURNOFF_STATE,4,4
	.comm	APPL_DEBUG_PM_LINKST_IN_L2_LAT,4,4
	.comm	APPL_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
