	.file	"extr_bfad.c_bfad_pci_error_detected.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error detected state: %d - flags: 0x%x\n"
	.text
	.p2align 4
	.type	bfad_pci_error_detected, @function
bfad_pci_error_detected:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	pci_get_drvdata@PLT
	mov	edi, DWORD PTR KERN_ERR[rip]
	mov	ecx, ebp
	mov	rsi, r12
	mov	r8d, DWORD PTR [rax]
	lea	rdx, .LC0[rip]
	mov	r13d, DWORD PTR PCI_ERS_RESULT_NONE[rip]
	mov	rbx, rax
	call	dev_printk@PLT
	cmp	ebp, 129
	je	.L2
	cmp	ebp, 130
	je	.L3
	cmp	ebp, 128
	je	.L10
	mov	edi, 1
	call	WARN_ON@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r12, 4[rbx]
	xor	ebp, ebp
	mov	rsi, rbp
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR BFAD_EEH_BUSY[rip]
	lea	rdi, 20[rbx]
	not	eax
	and	DWORD PTR [rbx], eax
	call	bfa_ioc_suspend@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	lea	rdi, 8[rbx]
	call	del_timer_sync@PLT
	mov	r13d, DWORD PTR PCI_ERS_RESULT_CAN_RECOVER[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	r12, 4[rbx]
	xor	ebp, ebp
	mov	rsi, rbp
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR BFAD_EEH_BUSY[rip]
	mov	rsi, rbp
	mov	rdi, r12
	or	eax, DWORD PTR BFAD_EEH_PCI_CHANNEL_IO_PERM_FAILURE[rip]
	or	DWORD PTR [rbx], eax
	call	spin_unlock_irqrestore@PLT
	mov	r13d, DWORD PTR PCI_ERS_RESULT_DISCONNECT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	r13, 12[rbx]
	lea	r14, 4[rbx]
	xor	ebp, ebp
	mov	rdi, r13
	call	init_completion@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR BFAD_EEH_BUSY[rip]
	or	DWORD PTR [rbx], eax
	lea	rdi, 20[rbx]
	call	bfa_ioc_suspend@PLT
	lea	rdi, 16[rbx]
	call	bfa_fcs_stop@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r13
	call	wait_for_completion@PLT
	mov	rdi, rbx
	call	bfad_remove_intr@PLT
	lea	rdi, 8[rbx]
	call	del_timer_sync@PLT
	mov	rdi, r12
	call	pci_disable_device@PLT
	mov	r13d, DWORD PTR PCI_ERS_RESULT_NEED_RESET[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfad_pci_error_detected, .-bfad_pci_error_detected
	.comm	PCI_ERS_RESULT_NONE,4,4
	.comm	PCI_ERS_RESULT_NEED_RESET,4,4
	.comm	PCI_ERS_RESULT_DISCONNECT,4,4
	.comm	PCI_ERS_RESULT_CAN_RECOVER,4,4
	.comm	KERN_ERR,4,4
	.comm	BFAD_EEH_PCI_CHANNEL_IO_PERM_FAILURE,4,4
	.comm	BFAD_EEH_BUSY,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_bfad.c_bfad_pci_error_detected.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error detected state: %d - flags: 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfad_pci_error_detected, %function
bfad_pci_error_detected:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r5, r1
	mov	r6, r0
	bl	pci_get_drvdata
	ldr	r3, [r0]
	ldr	r2, .L11
	str	r3, [sp]
	ldr	ip, .L11+4
	mov	r4, r0
	mov	r3, r5
	ldr	r0, [r2]
	mov	r1, r6
	ldr	r2, .L11+8
	ldr	r7, [ip]
	bl	dev_printk
	cmp	r5, #129
	beq	.L2
	cmp	r5, #130
	beq	.L3
	cmp	r5, #128
	beq	.L10
	mov	r0, #1
	bl	WARN_ON
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, #0
	add	r6, r4, #4
	mov	r1, r5
	mov	r0, r6
	bl	spin_lock_irqsave
	mov	r0, r4
	ldr	r2, .L11+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r0], #20
	bl	bfa_ioc_suspend
	mov	r1, r5
	mov	r0, r6
	bl	spin_unlock_irqrestore
	add	r0, r4, #8
	bl	del_timer_sync
	ldr	r3, .L11+16
	ldr	r7, [r3]
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r5, #0
	add	r6, r4, #4
	mov	r1, r5
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r3, .L11+20
	ldr	r2, .L11+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	orr	r2, r2, r1
	orr	r3, r3, r2
	str	r3, [r4]
	mov	r1, r5
	mov	r0, r6
	bl	spin_unlock_irqrestore
	ldr	r3, .L11+24
	ldr	r7, [r3]
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r5, #0
	add	r7, r4, #12
	add	r8, r4, #4
	mov	r0, r7
	bl	init_completion
	mov	r1, r5
	mov	r0, r8
	bl	spin_lock_irqsave
	mov	r0, r4
	ldr	r2, .L11+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r0], #20
	bl	bfa_ioc_suspend
	add	r0, r4, #16
	bl	bfa_fcs_stop
	mov	r1, r5
	mov	r0, r8
	bl	spin_unlock_irqrestore
	mov	r0, r7
	bl	wait_for_completion
	mov	r0, r4
	bl	bfad_remove_intr
	add	r0, r4, #8
	bl	del_timer_sync
	mov	r0, r6
	bl	pci_disable_device
	ldr	r3, .L11+28
	ldr	r7, [r3]
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	KERN_ERR
	.word	PCI_ERS_RESULT_NONE
	.word	.LC0
	.word	BFAD_EEH_BUSY
	.word	PCI_ERS_RESULT_CAN_RECOVER
	.word	BFAD_EEH_PCI_CHANNEL_IO_PERM_FAILURE
	.word	PCI_ERS_RESULT_DISCONNECT
	.word	PCI_ERS_RESULT_NEED_RESET
	.size	bfad_pci_error_detected, .-bfad_pci_error_detected
	.comm	PCI_ERS_RESULT_NONE,4,4
	.comm	PCI_ERS_RESULT_NEED_RESET,4,4
	.comm	PCI_ERS_RESULT_DISCONNECT,4,4
	.comm	PCI_ERS_RESULT_CAN_RECOVER,4,4
	.comm	KERN_ERR,4,4
	.comm	BFAD_EEH_PCI_CHANNEL_IO_PERM_FAILURE,4,4
	.comm	BFAD_EEH_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
