	.file	"extr_pci.c_rtl_pci_parse_configuration.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Link Control Register =%x\n"
	.text
	.p2align 4
	.type	rtl_pci_parse_configuration, @function
rtl_pci_parse_configuration:
.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, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	rtl_priv@PLT
	mov	rdi, r12
	mov	r13, rax
	call	rtl_pcipriv@PLT
	mov	esi, DWORD PTR PCI_EXP_LNKCTL[rip]
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	mov	r12, rax
	call	pcie_capability_read_word@PLT
	mov	r8, QWORD PTR 16[rsp]
	lea	rcx, .LC0[rip]
	mov	rdi, r13
	mov	DWORD PTR [r12], r8d
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	esi, DWORD PTR COMP_INIT[rip]
	call	RT_TRACE@PLT
	lea	rdx, 12[rsp]
	mov	esi, 152
	mov	rdi, rbp
	call	pci_read_config_byte@PLT
	mov	edi, 4
	call	BIT@PLT
	or	eax, DWORD PTR 12[rsp]
	mov	esi, 152
	mov	rdi, rbp
	mov	edx, eax
	mov	DWORD PTR 12[rsp], eax
	call	pci_write_config_byte@PLT
	mov	edx, 23
	mov	rdi, rbp
	mov	esi, 1807
	mov	DWORD PTR 12[rsp], 23
	call	pci_write_config_byte@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 32
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtl_pci_parse_configuration, .-rtl_pci_parse_configuration
	.comm	PCI_EXP_LNKCTL,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_INIT,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_pci.c_rtl_pci_parse_configuration.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Link Control Register =%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl_pci_parse_configuration, %function
rtl_pci_parse_configuration:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L6
	sub	sp, sp, #24
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	rtl_priv
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	rtl_pcipriv
	mov	r6, r0
	ldr	r3, .L6+4
	add	r2, sp, #16
	ldr	r1, [r3]
	mov	r0, r4
	bl	pcie_capability_read_word
	ldr	r3, [sp, #16]
	ldr	r2, .L6+8
	ldr	r1, .L6+12
	str	r3, [r6]
	str	r3, [sp]
	ldr	r2, [r2]
	ldr	r3, .L6+16
	ldr	r1, [r1]
	mov	r0, r5
	bl	RT_TRACE
	mov	r1, #152
	add	r2, sp, #12
	mov	r0, r4
	bl	pci_read_config_byte
	mov	r0, #4
	bl	BIT
	mov	r2, r0
	ldr	r3, [sp, #12]
	mov	r1, #152
	orr	r2, r2, r3
	mov	r0, r4
	str	r2, [sp, #12]
	bl	pci_write_config_byte
	mov	r2, #23
	mov	r0, r4
	ldr	r1, .L6+20
	str	r2, [sp, #12]
	bl	pci_write_config_byte
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	PCI_EXP_LNKCTL
	.word	DBG_TRACE
	.word	COMP_INIT
	.word	.LC0
	.word	1807
	.size	rtl_pci_parse_configuration, .-rtl_pci_parse_configuration
	.comm	PCI_EXP_LNKCTL,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
