	.file	"extr_lpfc_sli.c_lpfc_sli4_brdreset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"0295 Reset HBA Data: x%x x%x x%x\n"
	.align 8
.LC1:
	.string	"0389 Performing PCI function reset!\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"3205 PCI read Config failed\n"
	.text
	.p2align 4
	.globl	lpfc_sli4_brdreset
	.type	lpfc_sli4_brdreset, @function
lpfc_sli4_brdreset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rcx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	r12, 8[rbp]
	sub	rsp, 32
	.cfi_def_cfa_offset 56
	mov	edx, DWORD PTR LOG_SLI[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rdi]
	mov	r8d, DWORD PTR 16[rax]
	mov	eax, DWORD PTR [rdi]
	push	rax
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR 48[rdi]
	xor	eax, eax
	call	lpfc_printf_log@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 40[rbp], 0
	mov	rdi, r12
	mov	QWORD PTR 32[rbp], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR LPFC_PROCESS_LA[rip]
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, r12
	not	eax
	and	DWORD PTR 48[rbp], eax
	call	spin_unlock_irq@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR HBA_FW_DUMP_OP[rip]
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	test	edx, eax
	je	.L2
	not	eax
	xor	r12d, r12d
	and	eax, edx
	mov	DWORD PTR 0[rbp], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.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	edx, DWORD PTR LOG_INIT[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC1[rip]
	call	lpfc_printf_log@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	lea	rdx, 4[rsp]
	call	pci_read_config_word@PLT
	test	rax, rax
	jne	.L9
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	mov	edx, DWORD PTR PCI_COMMAND_PARITY[rip]
	or	edx, DWORD PTR PCI_COMMAND_SERR[rip]
	not	edx
	and	edx, DWORD PTR 4[rsp]
	call	pci_write_config_word@PLT
	mov	rdi, rbp
	call	lpfc_pci_function_reset@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	mov	r12d, eax
	call	pci_write_config_word@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR LOG_INIT[rip]
	mov	esi, DWORD PTR KERN_INFO[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC2[rip]
	call	lpfc_printf_log@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lpfc_sli4_brdreset, .-lpfc_sli4_brdreset
	.comm	PCI_COMMAND_SERR,4,4
	.comm	PCI_COMMAND_PARITY,4,4
	.comm	PCI_COMMAND,4,4
	.comm	LPFC_PROCESS_LA,4,4
	.comm	LOG_SLI,4,4
	.comm	LOG_INIT,4,4
	.comm	KERN_INFO,4,4
	.comm	HBA_FW_DUMP_OP,4,4
	.comm	EIO,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_lpfc_sli.c_lpfc_sli4_brdreset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0295 Reset HBA Data: x%x x%x x%x\012\000"
	.align	2
.LC1:
	.ascii	"0389 Performing PCI function reset!\012\000"
	.align	2
.LC2:
	.ascii	"3205 PCI read Config failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lpfc_sli4_brdreset
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli4_brdreset, %function
lpfc_sli4_brdreset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r5, #0
	ldr	r1, [r0]
	ldr	r2, [r0, #28]
	sub	sp, sp, #28
	ldr	r3, [r0, #16]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	ldr	r2, [r3, #8]
	ldr	r7, .L11
	ldr	r3, .L11+4
	ldr	ip, .L11+8
	str	r2, [sp]
	ldr	r2, [r3]
	ldr	r1, [r7]
	ldr	r3, .L11+12
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	lpfc_printf_log
	ldr	r3, [r4, #16]
	add	r6, r4, #8
	str	r5, [r4, #24]
	str	r5, [r4, #20]
	mov	r0, r6
	str	r5, [r3, #4]
	str	r5, [r3]
	bl	spin_lock_irq
	ldr	r2, .L11+16
	ldr	r3, [r4, #28]
	ldr	r2, [r2]
	mov	r0, r6
	bic	r3, r3, r2
	str	r3, [r4, #28]
	str	r5, [r4, #12]
	bl	spin_unlock_irq
	ldr	r2, .L11+20
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bicne	r3, r3, r2
	strne	r3, [r4]
	beq	.L8
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r5, .L11+24
	ldr	r6, .L11+28
	ldr	r2, [r5]
	ldr	r3, .L11+32
	ldr	r1, [r7]
	mov	r0, r4
	bl	lpfc_printf_log
	ldr	r1, [r6]
	ldr	r0, [r4, #4]
	add	r2, sp, #16
	bl	pci_read_config_word
	cmp	r0, #0
	bne	.L10
	ldr	r2, .L11+36
	ldr	r3, .L11+40
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp, #16]
	orr	r3, r3, r1
	bic	r2, r2, r3
	ldr	r1, [r6]
	ldr	r0, [r4, #4]
	bl	pci_write_config_word
	mov	r0, r4
	bl	lpfc_pci_function_reset
	ldr	r1, [r6]
	mov	r5, r0
	ldr	r2, [sp, #16]
	ldr	r0, [r4, #4]
	bl	pci_write_config_word
	b	.L1
.L10:
	ldr	r2, [r5]
	ldr	r3, .L11+44
	mov	r0, r4
	ldr	r1, [r7]
	bl	lpfc_printf_log
	ldr	r3, .L11+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	KERN_INFO
	.word	LOG_SLI
	.word	.LC3
	.word	.LC0
	.word	LPFC_PROCESS_LA
	.word	HBA_FW_DUMP_OP
	.word	LOG_INIT
	.word	PCI_COMMAND
	.word	.LC1
	.word	PCI_COMMAND_SERR
	.word	PCI_COMMAND_PARITY
	.word	.LC2
	.word	EIO
	.size	lpfc_sli4_brdreset, .-lpfc_sli4_brdreset
	.comm	PCI_COMMAND_SERR,4,4
	.comm	PCI_COMMAND_PARITY,4,4
	.comm	PCI_COMMAND,4,4
	.comm	LPFC_PROCESS_LA,4,4
	.comm	LOG_SLI,4,4
	.comm	LOG_INIT,4,4
	.comm	KERN_INFO,4,4
	.comm	HBA_FW_DUMP_OP,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
