	.file	"extr_eeh_pe.c_eeh_restore_device_bars.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	eeh_restore_device_bars, @function
eeh_restore_device_bars:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, 16
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	eeh_dev_to_pdn@PLT
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR [r12]
	mov	esi, ebx
	mov	edx, 4
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rax+rbx]
	mov	rax, QWORD PTR eeh_ops[rip]
	add	rbx, 4
	call	[QWORD PTR [rax]]
	cmp	rbx, 40
	jne	.L2
	mov	rax, QWORD PTR [r12]
	mov	edx, 4
	mov	esi, 48
	mov	rdi, rbp
	mov	ecx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR eeh_ops[rip]
	call	[QWORD PTR [rax]]
	mov	rax, QWORD PTR eeh_ops[rip]
	mov	edi, DWORD PTR PCI_CACHE_LINE_SIZE[rip]
	mov	rbx, QWORD PTR [rax]
	call	SAVED_BYTE@PLT
	mov	esi, DWORD PTR PCI_CACHE_LINE_SIZE[rip]
	mov	edx, 1
	mov	rdi, rbp
	mov	ecx, eax
	call	rbx
	mov	rax, QWORD PTR eeh_ops[rip]
	mov	edi, DWORD PTR PCI_LATENCY_TIMER[rip]
	mov	rbx, QWORD PTR [rax]
	call	SAVED_BYTE@PLT
	mov	esi, DWORD PTR PCI_LATENCY_TIMER[rip]
	mov	edx, 1
	mov	rdi, rbp
	mov	ecx, eax
	call	rbx
	mov	rax, QWORD PTR [r12]
	mov	edx, 4
	mov	esi, 60
	mov	rdi, rbp
	mov	ecx, DWORD PTR 60[rax]
	mov	rax, QWORD PTR eeh_ops[rip]
	call	[QWORD PTR [rax]]
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	lea	rcx, 4[rsp]
	mov	rdi, rbp
	mov	rax, QWORD PTR eeh_ops[rip]
	mov	edx, 4
	call	[QWORD PTR 8[rax]]
	mov	rax, QWORD PTR [r12]
	mov	ecx, DWORD PTR PCI_COMMAND_PARITY[rip]
	mov	esi, DWORD PTR 4[rax]
	test	esi, ecx
	je	.L3
	mov	eax, DWORD PTR 4[rsp]
	or	eax, ecx
.L4:
	mov	edx, DWORD PTR PCI_COMMAND_SERR[rip]
	mov	ecx, edx
	mov	edi, edx
	not	ecx
	or	edi, eax
	and	ecx, eax
	test	esi, edx
	mov	rax, QWORD PTR eeh_ops[rip]
	mov	edx, 4
	cmovne	ecx, edi
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], ecx
	call	[QWORD PTR [rax]]
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rsp]
	not	ecx
	and	eax, ecx
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eeh_restore_device_bars, .-eeh_restore_device_bars
	.comm	eeh_ops,8,8
	.comm	PCI_LATENCY_TIMER,4,4
	.comm	PCI_COMMAND_SERR,4,4
	.comm	PCI_COMMAND_PARITY,4,4
	.comm	PCI_COMMAND,4,4
	.comm	PCI_CACHE_LINE_SIZE,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_eeh_pe.c_eeh_restore_device_bars.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eeh_restore_device_bars, %function
eeh_restore_device_bars:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L12
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r0
	bl	eeh_dev_to_pdn
	mov	r4, #16
	mov	r5, r0
	ldr	r6, .L12+4
.L2:
	ldr	r2, [r6]
	ldr	r3, [r8]
	ldr	r7, [r2]
	mov	r2, #4
	mov	r1, r4
	ldr	r3, [r3, r4]
	mov	r0, r5
	add	r4, r4, r2
	blx	r7
	cmp	r4, #40
	bne	.L2
	ldr	r2, [r6]
	ldr	r3, [r8]
	mov	r1, #48
	ldr	r4, [r2]
	ldr	r3, [r3, #48]
	mov	r2, #4
	mov	r0, r5
	blx	r4
	ldr	r2, .L12+8
	ldr	r3, [r6]
	ldr	r4, [r2]
	ldr	r7, [r3]
	mov	r0, r4
	bl	SAVED_BYTE
	mov	r1, r4
	mov	r3, r0
	mov	r2, #1
	mov	r0, r5
	blx	r7
	ldr	r2, .L12+12
	ldr	r3, [r6]
	ldr	r4, [r2]
	ldr	r7, [r3]
	mov	r0, r4
	bl	SAVED_BYTE
	mov	r1, r4
	mov	r3, r0
	mov	r2, #1
	mov	r0, r5
	blx	r7
	ldr	r2, [r6]
	ldr	r3, [r8]
	ldr	r4, [r2]
	mov	r1, #60
	mov	r2, #4
	ldr	r3, [r3, #60]
	mov	r0, r5
	blx	r4
	ldr	r3, [r6]
	ldr	r4, .L12+16
	mov	r2, #4
	ldr	r1, [r4]
	ldr	r7, [r3, #4]
	mov	r0, r5
	mov	r3, sp
	blx	r7
	ldr	r2, [r8]
	ldr	r3, .L12+20
	ldr	r1, [r2, #4]
	ldr	r3, [r3]
	ldr	r2, [sp]
	tst	r1, r3
	orrne	r3, r3, r2
	biceq	r3, r2, r3
	ldr	r2, .L12+24
	mov	r0, r5
	ldr	r2, [r2]
	tst	r1, r2
	orrne	r3, r2, r3
	biceq	r3, r3, r2
	ldr	r2, [r6]
	str	r3, [sp]
	ldr	r6, [r2]
	ldr	r1, [r4]
	mov	r2, #4
	blx	r6
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	eeh_ops
	.word	PCI_CACHE_LINE_SIZE
	.word	PCI_LATENCY_TIMER
	.word	PCI_COMMAND
	.word	PCI_COMMAND_PARITY
	.word	PCI_COMMAND_SERR
	.size	eeh_restore_device_bars, .-eeh_restore_device_bars
	.comm	eeh_ops,4,4
	.comm	PCI_LATENCY_TIMER,4,4
	.comm	PCI_COMMAND_SERR,4,4
	.comm	PCI_COMMAND_PARITY,4,4
	.comm	PCI_COMMAND,4,4
	.comm	PCI_CACHE_LINE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
