	.file	"extr_ixgbe_main.c_ixgbe_io_slot_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cannot re-enable PCI device after reset.\n"
	.align 8
.LC1:
	.string	"pci_cleanup_aer_uncorrect_error_status failed 0x%0x\n"
	.text
	.p2align 4
	.type	ixgbe_io_slot_reset, @function
ixgbe_io_slot_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	pci_get_drvdata@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	pci_enable_device_mem@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR probe[rip]
	lea	rsi, .LC0[rip]
	call	e_err@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR PCI_ERS_RESULT_DISCONNECT[rip]
	call	pci_cleanup_aer_uncorrect_error_status@PLT
	test	eax, eax
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	pci_set_master@PLT
	mov	rdi, rbp
	call	pci_restore_state@PLT
	mov	rdi, rbp
	call	pci_save_state@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	pci_wake_from_d3@PLT
	mov	rdi, r12
	call	ixgbe_reset@PLT
	mov	esi, DWORD PTR IXGBE_WUS[rip]
	mov	rdi, r12
	mov	edx, -1
	call	IXGBE_WRITE_REG@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR PCI_ERS_RESULT_RECOVERED[rip]
	call	pci_cleanup_aer_uncorrect_error_status@PLT
	test	eax, eax
	je	.L1
.L10:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	e_dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgbe_io_slot_reset, .-ixgbe_io_slot_reset
	.comm	probe,4,4
	.comm	PCI_ERS_RESULT_RECOVERED,4,4
	.comm	PCI_ERS_RESULT_DISCONNECT,4,4
	.comm	IXGBE_WUS,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_ixgbe_main.c_ixgbe_io_slot_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot re-enable PCI device after reset.\012\000"
	.align	2
.LC1:
	.ascii	"pci_cleanup_aer_uncorrect_error_status failed 0x%0x"
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_io_slot_reset, %function
ixgbe_io_slot_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	pci_get_drvdata
	mov	r6, r0
	mov	r0, r4
	bl	pci_enable_device_mem
	subs	r5, r0, #0
	beq	.L2
	ldr	r3, .L11
	ldr	r1, .L11+4
	ldr	r0, [r3]
	bl	e_err
	ldr	r3, .L11+8
	mov	r0, r4
	ldr	r5, [r3]
	bl	pci_cleanup_aer_uncorrect_error_status
	subs	r1, r0, #0
	bne	.L10
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	pci_set_master
	mov	r0, r4
	bl	pci_restore_state
	mov	r0, r4
	bl	pci_save_state
	mov	r1, r5
	mov	r0, r4
	bl	pci_wake_from_d3
	mov	r0, r6
	bl	ixgbe_reset
	ldr	r3, .L11+12
	mvn	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	IXGBE_WRITE_REG
	ldr	r3, .L11+16
	mov	r0, r4
	ldr	r5, [r3]
	bl	pci_cleanup_aer_uncorrect_error_status
	subs	r1, r0, #0
	beq	.L1
.L10:
	ldr	r0, .L11+20
	bl	e_dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	probe
	.word	.LC0
	.word	PCI_ERS_RESULT_DISCONNECT
	.word	IXGBE_WUS
	.word	PCI_ERS_RESULT_RECOVERED
	.word	.LC1
	.size	ixgbe_io_slot_reset, .-ixgbe_io_slot_reset
	.comm	probe,4,4
	.comm	PCI_ERS_RESULT_RECOVERED,4,4
	.comm	PCI_ERS_RESULT_DISCONNECT,4,4
	.comm	IXGBE_WUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
