	.file	"extr_pcie-cadence-host.c_cdns_pcie_host_init_root_port.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cdns_pcie_host_init_root_port, @function
cdns_pcie_host_init_root_port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR CDNS_PCIE_LM_BAR_CFG_CTRL_DISABLED[rip]
	mov	edi, r13d
	call	CDNS_PCIE_LM_RC_BAR_CFG_BAR0_CTRL@PLT
	mov	edi, r13d
	mov	ebx, eax
	call	CDNS_PCIE_LM_RC_BAR_CFG_BAR1_CTRL@PLT
	mov	edx, DWORD PTR CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_ENABLE[rip]
	or	edx, DWORD PTR CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_64BITS[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR CDNS_PCIE_LM_RC_BAR_CFG_IO_ENABLE[rip]
	or	edx, DWORD PTR CDNS_PCIE_LM_RC_BAR_CFG_IO_32BITS[rip]
	mov	esi, DWORD PTR CDNS_PCIE_LM_RC_BAR_CFG[rip]
	or	edx, ebx
	or	edx, eax
	call	cdns_pcie_writel@PLT
	mov	edx, DWORD PTR [r12]
	cmp	edx, 65535
	je	.L2
	mov	esi, DWORD PTR PCI_VENDOR_ID[rip]
	mov	rdi, rbp
	call	cdns_pcie_rp_writew@PLT
.L2:
	mov	edx, DWORD PTR 4[r12]
	cmp	edx, 65535
	je	.L3
	mov	esi, DWORD PTR PCI_DEVICE_ID[rip]
	mov	rdi, rbp
	call	cdns_pcie_rp_writew@PLT
.L3:
	mov	esi, DWORD PTR PCI_CLASS_REVISION[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	cdns_pcie_rp_writeb@PLT
	mov	esi, DWORD PTR PCI_CLASS_PROG[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	cdns_pcie_rp_writeb@PLT
	mov	edx, DWORD PTR PCI_CLASS_BRIDGE_PCI[rip]
	mov	esi, DWORD PTR PCI_CLASS_DEVICE[rip]
	mov	rdi, rbp
	call	cdns_pcie_rp_writew@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cdns_pcie_host_init_root_port, .-cdns_pcie_host_init_root_port
	.comm	PCI_VENDOR_ID,4,4
	.comm	PCI_DEVICE_ID,4,4
	.comm	PCI_CLASS_REVISION,4,4
	.comm	PCI_CLASS_PROG,4,4
	.comm	PCI_CLASS_DEVICE,4,4
	.comm	PCI_CLASS_BRIDGE_PCI,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_ENABLE,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_64BITS,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_IO_ENABLE,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_IO_32BITS,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG,4,4
	.comm	CDNS_PCIE_LM_BAR_CFG_CTRL_DISABLED,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_pcie-cadence-host.c_cdns_pcie_host_init_root_port.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdns_pcie_host_init_root_port, %function
cdns_pcie_host_init_root_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r3]
	mov	r4, r0
	add	r5, r0, #8
	mov	r0, r7
	bl	CDNS_PCIE_LM_RC_BAR_CFG_BAR0_CTRL
	mov	r6, r0
	mov	r0, r7
	bl	CDNS_PCIE_LM_RC_BAR_CFG_BAR1_CTRL
	ldr	r2, .L6+4
	ldr	r3, .L6+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L6+12
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, .L6+16
	orr	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L6+20
	orr	r3, r3, r2
	orr	r3, r3, r6
	orr	r2, r3, r0
	ldr	r1, [r1]
	mov	r0, r5
	bl	cdns_pcie_writel
	ldr	r2, [r4]
	ldr	r3, .L6+24
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L6+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	cdns_pcie_rp_writew
.L2:
	ldr	r2, [r4, #4]
	ldr	r3, .L6+24
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L6+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	cdns_pcie_rp_writew
.L3:
	ldr	r3, .L6+36
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	cdns_pcie_rp_writeb
	ldr	r3, .L6+40
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	cdns_pcie_rp_writeb
	ldr	r3, .L6+44
	ldr	r2, .L6+48
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	cdns_pcie_rp_writew
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	CDNS_PCIE_LM_BAR_CFG_CTRL_DISABLED
	.word	CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_64BITS
	.word	CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_ENABLE
	.word	CDNS_PCIE_LM_RC_BAR_CFG_IO_ENABLE
	.word	CDNS_PCIE_LM_RC_BAR_CFG_IO_32BITS
	.word	CDNS_PCIE_LM_RC_BAR_CFG
	.word	65535
	.word	PCI_VENDOR_ID
	.word	PCI_DEVICE_ID
	.word	PCI_CLASS_REVISION
	.word	PCI_CLASS_PROG
	.word	PCI_CLASS_DEVICE
	.word	PCI_CLASS_BRIDGE_PCI
	.size	cdns_pcie_host_init_root_port, .-cdns_pcie_host_init_root_port
	.comm	PCI_VENDOR_ID,4,4
	.comm	PCI_DEVICE_ID,4,4
	.comm	PCI_CLASS_REVISION,4,4
	.comm	PCI_CLASS_PROG,4,4
	.comm	PCI_CLASS_DEVICE,4,4
	.comm	PCI_CLASS_BRIDGE_PCI,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_ENABLE,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_PREFETCH_MEM_64BITS,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_IO_ENABLE,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG_IO_32BITS,4,4
	.comm	CDNS_PCIE_LM_RC_BAR_CFG,4,4
	.comm	CDNS_PCIE_LM_BAR_CFG_CTRL_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
