	.file	"extr_pci.c_pci_restore_config_dword.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"restoring config space at offset %#x (was %#x, writing %#x)\n"
	.text
	.p2align 4
	.type	pci_restore_config_dword, @function
pci_restore_config_dword:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 4[rsp]
	mov	rdx, r14
	call	pci_read_config_dword@PLT
	mov	ecx, DWORD PTR 4[rsp]
	test	r15d, r15d
	jne	.L3
	cmp	ecx, r13d
	je	.L1
.L3:
	lea	r15, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, r14
	mov	esi, r12d
	mov	rdi, rbp
	sub	ebx, 1
	call	pci_read_config_dword@PLT
	cmp	DWORD PTR 4[rsp], r13d
	je	.L1
	mov	edi, 1
	call	mdelay@PLT
	mov	ecx, DWORD PTR 4[rsp]
.L5:
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rbp
	mov	r8d, r13d
	call	pci_dbg@PLT
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	test	ebx, ebx
	jg	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pci_restore_config_dword, .-pci_restore_config_dword
	.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_pci_restore_config_dword.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"restoring config space at offset %#x (was %#x, writ"
	.ascii	"ing %#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	pci_restore_config_dword, %function
pci_restore_config_dword:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #16
	ldr	r8, [sp, #40]
	mov	r4, r3
	ldr	r3, .L11
	mov	r5, r2
	add	r2, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r0
	mov	r7, r1
	bl	pci_read_config_dword
	cmp	r8, #0
	ldr	r3, [sp, #8]
	bne	.L3
	cmp	r3, r5
	beq	.L1
.L3:
	ldr	r8, .L11+4
	b	.L5
.L9:
	mov	r1, r7
	mov	r0, r6
	add	r2, sp, #8
	bl	pci_read_config_dword
	ldr	r3, [sp, #8]
	sub	r4, r4, #1
	cmp	r3, r5
	beq	.L1
	mov	r0, #1
	bl	mdelay
	ldr	r3, [sp, #8]
.L5:
	mov	r2, r7
	mov	r1, r8
	mov	r0, r6
	str	r5, [sp]
	bl	pci_dbg
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	pci_write_config_dword
	cmp	r4, #0
	bgt	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.size	pci_restore_config_dword, .-pci_restore_config_dword
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
