	.file	"extr_pcie.c_pcie_wr_conf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcie_wr_conf, @function
pcie_wr_conf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	PCI_SLOT@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	pcie_valid_config@PLT
	test	rax, rax
	jne	.L2
	mov	r12d, DWORD PTR PCIBIOS_DEVICE_NOT_FOUND[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	r15d, r15d
	lea	rdi, kirkwood_pcie_lock[rip]
	mov	rsi, r15
	call	spin_lock_irqsave@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	r9d, r14d
	mov	edi, DWORD PTR PCIE_BASE[rip]
	mov	r8d, ebx
	mov	ecx, r13d
	call	orion_pcie_wr_conf@PLT
	mov	rsi, r15
	lea	rdi, kirkwood_pcie_lock[rip]
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pcie_wr_conf, .-pcie_wr_conf
	.comm	kirkwood_pcie_lock,4,4
	.comm	PCIE_BASE,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,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.c_pcie_wr_conf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcie_wr_conf, %function
pcie_wr_conf:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	sub	sp, sp, #8
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	mov	r8, r2
	mov	r7, r3
	bl	PCI_SLOT
	mov	r1, r0
	mov	r0, r6
	bl	pcie_valid_config
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L6
	ldr	r4, [r3]
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, #0
	ldr	r0, .L6+4
	mov	r1, r6
	bl	spin_lock_irqsave
	ldr	r3, [sp, #32]
	ldr	r0, .L6+8
	str	r3, [sp, #4]
	str	r7, [sp]
	mov	r3, r8
	mov	r2, r5
	mov	r1, r4
	ldr	r0, [r0]
	bl	orion_pcie_wr_conf
	mov	r4, r0
	mov	r1, r6
	ldr	r0, .L6+4
	bl	spin_unlock_irqrestore
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	PCIBIOS_DEVICE_NOT_FOUND
	.word	kirkwood_pcie_lock
	.word	PCIE_BASE
	.size	pcie_wr_conf, .-pcie_wr_conf
	.comm	kirkwood_pcie_lock,4,4
	.comm	PCIE_BASE,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
