	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_pcie_init_rc
_uniphier_pcie_init_rc:                 ## @uniphier_pcie_init_rc
	.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
	movq	_PCL_APP_PM0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_PCL_SYS_AUX_PWR_DET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_PCL_PINCTRL0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_PCL_PERST_NOE_REGVAL@GOTPCREL(%rip), %rcx
	movq	_PCL_PERST_OUT_REGVAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rcx), %edx
	movq	_PCL_PERST_PLDN_REGVAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_PCL_PERST_NOE_REGEN@GOTPCREL(%rip), %rax
	movq	_PCL_PERST_OUT_REGEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	orl	(%rax), %edi
	orl	%edx, %edi
	movq	_PCL_PERST_PLDN_REGEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_uniphier_pcie_ltssm_enable
	movl	$100000, %edi                   ## imm = 0x186A0
	movl	$200000, %esi                   ## imm = 0x30D40
	callq	_usleep_range
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	orl	(%r15), %eax
	orl	(%r12), %eax
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCL_APP_PM0,8,3                ## @PCL_APP_PM0
	.comm	_PCL_SYS_AUX_PWR_DET,4,2        ## @PCL_SYS_AUX_PWR_DET
	.comm	_PCL_PINCTRL0,8,3               ## @PCL_PINCTRL0
	.comm	_PCL_PERST_NOE_REGVAL,4,2       ## @PCL_PERST_NOE_REGVAL
	.comm	_PCL_PERST_OUT_REGVAL,4,2       ## @PCL_PERST_OUT_REGVAL
	.comm	_PCL_PERST_PLDN_REGVAL,4,2      ## @PCL_PERST_PLDN_REGVAL
	.comm	_PCL_PERST_NOE_REGEN,4,2        ## @PCL_PERST_NOE_REGEN
	.comm	_PCL_PERST_OUT_REGEN,4,2        ## @PCL_PERST_OUT_REGEN
	.comm	_PCL_PERST_PLDN_REGEN,4,2       ## @PCL_PERST_PLDN_REGEN
	.no_dead_strip	_uniphier_pcie_init_rc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_pcie_init_rc
_uniphier_pcie_init_rc:                 ; @uniphier_pcie_init_rc
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _PCL_APP_PM0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCL_APP_PM0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _PCL_SYS_AUX_PWR_DET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCL_SYS_AUX_PWR_DET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _PCL_PINCTRL0@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PCL_PINCTRL0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh7:
	adrp	x8, _PCL_PERST_NOE_REGVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCL_PERST_NOE_REGVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x21, _PCL_PERST_OUT_REGVAL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _PCL_PERST_OUT_REGVAL@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _PCL_PERST_PLDN_REGVAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCL_PERST_PLDN_REGVAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w8, w0, w8
Lloh15:
	adrp	x9, _PCL_PERST_NOE_REGEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCL_PERST_NOE_REGEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x22, _PCL_PERST_OUT_REGEN@GOTPAGE
Lloh19:
	ldr	x22, [x22, _PCL_PERST_OUT_REGEN@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w10, w9
Lloh20:
	adrp	x10, _PCL_PERST_PLDN_REGEN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PCL_PERST_PLDN_REGEN@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w0, w8, w10
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	mov	w1, #0
	bl	_uniphier_pcie_ltssm_enable
	mov	w0, #34464
	movk	w0, #1, lsl #16
	mov	w1, #3392
	movk	w1, #3, lsl #16
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCL_APP_PM0,8,3                ; @PCL_APP_PM0
	.comm	_PCL_SYS_AUX_PWR_DET,4,2        ; @PCL_SYS_AUX_PWR_DET
	.comm	_PCL_PINCTRL0,8,3               ; @PCL_PINCTRL0
	.comm	_PCL_PERST_NOE_REGVAL,4,2       ; @PCL_PERST_NOE_REGVAL
	.comm	_PCL_PERST_OUT_REGVAL,4,2       ; @PCL_PERST_OUT_REGVAL
	.comm	_PCL_PERST_PLDN_REGVAL,4,2      ; @PCL_PERST_PLDN_REGVAL
	.comm	_PCL_PERST_NOE_REGEN,4,2        ; @PCL_PERST_NOE_REGEN
	.comm	_PCL_PERST_OUT_REGEN,4,2        ; @PCL_PERST_OUT_REGEN
	.comm	_PCL_PERST_PLDN_REGEN,4,2       ; @PCL_PERST_PLDN_REGEN
	.no_dead_strip	_uniphier_pcie_init_rc
.subsections_via_symbols
