	.file	"extr_lpfc_sli.c_lpfc_sli_chipset_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"0436 Adapter failed to init, timeout, status reg x%x, FW Data: A8 x%x AC x%x\n"
	.align 8
.LC1:
	.string	"0437 Adapter failed to init, chipset, status reg x%x, FW Data: A8 x%x AC x%x\n"
	.align 8
.LC2:
	.string	"0438 Adapter failed to init, chipset, status reg x%x, FW Data: A8 x%x AC x%x\n"
	.text
	.p2align 4
	.type	lpfc_sli_chipset_init, @function
lpfc_sli_chipset_init:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 32[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rsi, r12
	call	lpfc_readl@PLT
	test	rax, rax
	je	.L2
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, 100
	call	msleep@PLT
.L11:
	mov	edi, DWORD PTR 32[rbp]
	mov	rsi, r12
	call	lpfc_readl@PLT
	test	rax, rax
	jne	.L20
.L2:
	mov	eax, DWORD PTR HS_FFRDY[rip]
	mov	edx, DWORD PTR 4[rsp]
	or	eax, DWORD PTR HS_MBRDY[rip]
	mov	ecx, eax
	and	ecx, edx
	cmp	eax, ecx
	je	.L23
	add	ebx, 1
	cmp	ebx, 201
	je	.L24
	test	DWORD PTR HS_FFERM[rip], edx
	jne	.L25
	cmp	ebx, 10
	jle	.L26
	cmp	ebx, 100
	jle	.L27
	mov	edi, 1000
	call	msleep@PLT
	cmp	ebx, 150
	jne	.L11
	mov	rax, QWORD PTR 40[rbp]
	mov	edx, DWORD PTR LPFC_VPORT_UNKNOWN[rip]
	mov	rdi, rbp
	mov	DWORD PTR [rax], edx
	call	lpfc_sli_brdrestart@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	rsi, r12
	call	lpfc_readl@PLT
	test	rax, rax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L26:
	.cfi_restore_state
	mov	edi, 10
	call	msleep@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	and	edx, DWORD PTR HS_FFERM[rip]
	mov	r12d, edx
	jne	.L29
	mov	rsi, QWORD PTR 8[rbp]
	xor	edi, edi
	call	writel@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	readl@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, -1
	call	writel@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	readl@PLT
	jmp	.L1
.L29:
	mov	rax, QWORD PTR 24[rbp]
	lea	rdi, 172[rax]
	call	readl@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR 24[rbp]
	lea	rdi, 168[rax]
	call	readl@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rcx, .LC2[rip]
	push	rbx
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR 20[rsp]
	mov	r9d, eax
.L21:
	mov	edx, DWORD PTR LOG_INIT[rip]
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	rdi, rbp
	call	lpfc_printf_log@PLT
	mov	rax, QWORD PTR LPFC_HBA_ERROR[rip]
	mov	r12d, DWORD PTR EIO[rip]
	mov	QWORD PTR 16[rbp], rax
	neg	r12d
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR 24[rbp]
	lea	rdi, 172[rax]
	call	readl@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR 24[rbp]
	lea	rdi, 168[rax]
	call	readl@PLT
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rcx, .LC1[rip]
	push	rbx
	.cfi_def_cfa_offset 64
	mov	r9d, eax
	mov	r8d, DWORD PTR 20[rsp]
	jmp	.L21
.L24:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	lea	rdi, 172[rax]
	call	readl@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR 24[rbp]
	lea	rdi, 168[rax]
	call	readl@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	mov	esi, DWORD PTR KERN_ERR[rip]
	push	rbx
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR LOG_INIT[rip]
	lea	rcx, .LC0[rip]
	mov	r9d, eax
	mov	r8d, DWORD PTR 20[rsp]
	call	lpfc_printf_log@PLT
	mov	rax, QWORD PTR LPFC_HBA_ERROR[rip]
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	mov	QWORD PTR 16[rbp], rax
	neg	r12d
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lpfc_sli_chipset_init, .-lpfc_sli_chipset_init
	.comm	LPFC_VPORT_UNKNOWN,4,4
	.comm	LPFC_HBA_ERROR,8,8
	.comm	LOG_INIT,4,4
	.comm	KERN_ERR,4,4
	.comm	HS_MBRDY,4,4
	.comm	HS_FFRDY,4,4
	.comm	HS_FFERM,4,4
	.comm	ETIMEDOUT,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_sli_chipset_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0436 Adapter failed to init, timeout, status reg x%"
	.ascii	"x, FW Data: A8 x%x AC x%x\012\000"
	.align	2
.LC1:
	.ascii	"0437 Adapter failed to init, chipset, status reg x%"
	.ascii	"x, FW Data: A8 x%x AC x%x\012\000"
	.align	2
.LC2:
	.ascii	"0438 Adapter failed to init, chipset, status reg x%"
	.ascii	"x, FW Data: A8 x%x AC x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_sli_chipset_init, %function
lpfc_sli_chipset_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L28
	sub	sp, sp, #24
	mov	r5, r0
	add	r1, sp, #16
	ldr	r0, [r0, #16]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	lpfc_readl
	subs	r4, r0, #0
	bne	.L18
	ldr	r7, .L28+4
	ldr	r6, .L28+8
	ldr	r8, .L28+12
	ldr	r9, .L28+16
	b	.L2
.L25:
	mov	r0, #100
	bl	msleep
.L11:
	ldr	r0, [r5, #16]
	add	r1, sp, #16
	bl	lpfc_readl
	cmp	r0, #0
	bne	.L18
.L2:
	ldr	r3, [r7]
	ldr	r2, [r6]
	ldr	r10, [sp, #16]
	orr	r3, r3, r2
	bics	r3, r3, r10
	beq	.L21
	add	r4, r4, #1
	cmp	r4, #201
	beq	.L22
	ldr	r3, [r8]
	tst	r10, r3
	bne	.L23
	cmp	r4, #10
	ble	.L24
	cmp	r4, #100
	ble	.L25
	mov	r0, #1000
	bl	msleep
	cmp	r4, #150
	bne	.L11
	ldr	r2, [r9]
	ldr	r3, [r5, #20]
	mov	r0, r5
	str	r2, [r3]
	bl	lpfc_sli_brdrestart
	b	.L11
.L24:
	mov	r0, #10
	bl	msleep
	b	.L11
.L18:
	ldr	r3, .L28+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r3, .L28+12
	ldr	r4, [r3]
	ands	r4, r10, r4
	bne	.L27
	ldr	r1, [r5, #4]
	mov	r0, r4
	bl	writel
	ldr	r0, [r5, #4]
	bl	readl
	ldr	r1, [r5]
	mvn	r0, #0
	bl	writel
	ldr	r0, [r5]
	bl	readl
	b	.L1
.L27:
	ldr	r0, [r5, #12]
	ldr	r2, .L28+24
	ldr	r3, .L28+28
	add	r0, r0, #168
	ldr	r6, [r2]
	ldr	r7, [r3]
	bl	readl
	ldr	r3, [r5, #12]
	mov	r4, r0
	add	r0, r3, #172
	bl	readl
	mov	r2, r7
	mov	r1, r6
	ldr	r3, .L28+32
	str	r4, [sp, #4]
	str	r0, [sp, #8]
	str	r10, [sp]
.L19:
	mov	r0, r5
	bl	lpfc_printf_log
	ldr	r3, .L28+36
	ldr	r2, .L28+20
	ldr	r3, [r3]
	ldr	r4, [r2]
	str	r3, [r5, #8]
	rsb	r4, r4, #0
	b	.L1
.L23:
	ldr	r0, [r5, #12]
	ldr	r2, .L28+24
	ldr	r3, .L28+28
	add	r0, r0, #168
	ldr	r6, [r2]
	ldr	r7, [r3]
	bl	readl
	ldr	r3, [r5, #12]
	mov	r4, r0
	add	r0, r3, #172
	bl	readl
	mov	r2, r7
	mov	r1, r6
	ldr	r3, .L28+40
	str	r4, [sp, #4]
	str	r0, [sp, #8]
	str	r10, [sp]
	b	.L19
.L22:
	ldr	r0, [r5, #12]
	ldr	r2, .L28+24
	ldr	r3, .L28+28
	add	r0, r0, #168
	ldr	r6, [r2]
	ldr	r7, [r3]
	bl	readl
	ldr	r3, [r5, #12]
	mov	r4, r0
	add	r0, r3, #172
	bl	readl
	mov	r2, r7
	ldr	r3, .L28+44
	str	r4, [sp, #4]
	str	r0, [sp, #8]
	mov	r1, r6
	mov	r0, r5
	str	r10, [sp]
	bl	lpfc_printf_log
	ldr	r3, .L28+36
	ldr	r2, .L28+48
	ldr	r3, [r3]
	ldr	r4, [r2]
	str	r3, [r5, #8]
	rsb	r4, r4, #0
	b	.L1
.L26:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC3
	.word	HS_FFRDY
	.word	HS_MBRDY
	.word	HS_FFERM
	.word	LPFC_VPORT_UNKNOWN
	.word	EIO
	.word	KERN_ERR
	.word	LOG_INIT
	.word	.LC2
	.word	LPFC_HBA_ERROR
	.word	.LC1
	.word	.LC0
	.word	ETIMEDOUT
	.size	lpfc_sli_chipset_init, .-lpfc_sli_chipset_init
	.comm	LPFC_VPORT_UNKNOWN,4,4
	.comm	LPFC_HBA_ERROR,4,4
	.comm	LOG_INIT,4,4
	.comm	KERN_ERR,4,4
	.comm	HS_MBRDY,4,4
	.comm	HS_FFRDY,4,4
	.comm	HS_FFERM,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
