	.file	"extr_qla_os.c_qla83xx_check_nic_core_fw_alive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Nic Core f/w is not alive.\n"
	.text
	.p2align 4
	.type	qla83xx_check_nic_core_fw_alive, @function
qla83xx_check_nic_core_fw_alive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR jiffies[rip]
	mov	ebx, DWORD PTR HZ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r13d, DWORD PTR QLA_SUCCESS[rip]
	lea	r12, 8[rsp]
	add	ebx, edi
	movsx	rbx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	xor	esi, esi
	mov	rdi, rbp
	call	qla83xx_idc_lock@PLT
	mov	esi, DWORD PTR QLA83XX_FW_HEARTBEAT[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	qla83xx_rd_reg@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	qla83xx_idc_unlock@PLT
	mov	edi, 100
	call	msleep@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	qla83xx_idc_lock@PLT
	mov	esi, DWORD PTR QLA83XX_FW_HEARTBEAT[rip]
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	call	qla83xx_rd_reg@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	qla83xx_idc_unlock@PLT
	mov	rax, QWORD PTR 16[rsp]
	cmp	QWORD PTR 8[rsp], rax
	jne	.L1
	mov	edi, DWORD PTR jiffies[rip]
.L4:
	mov	rsi, rbx
	call	time_after@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR ql_dbg_p3p[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 45180
	mov	rsi, rbp
	call	ql_dbg@PLT
	mov	r13d, DWORD PTR QLA_FUNCTION_FAILED[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qla83xx_check_nic_core_fw_alive, .-qla83xx_check_nic_core_fw_alive
	.comm	ql_dbg_p3p,4,4
	.comm	jiffies,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	QLA83XX_FW_HEARTBEAT,4,4
	.comm	HZ,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_qla_os.c_qla83xx_check_nic_core_fw_alive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Nic Core f/w is not alive.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla83xx_check_nic_core_fw_alive, %function
qla83xx_check_nic_core_fw_alive:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L9
	ldr	r8, .L9+4
	ldr	r2, .L9+8
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	ldr	r3, .L9+12
	ldr	r0, [r8]
	ldr	r7, [r2]
	ldr	r9, [r3]
	ldr	r6, .L9+16
	add	r7, r0, r7
	b	.L4
.L2:
	mov	r1, r4
	mov	r0, r5
	bl	qla83xx_idc_lock
	add	r2, sp, #4
	ldr	r1, [r6]
	mov	r0, r5
	bl	qla83xx_rd_reg
	mov	r1, r4
	mov	r0, r5
	bl	qla83xx_idc_unlock
	mov	r0, #100
	bl	msleep
	mov	r1, r4
	mov	r0, r5
	bl	qla83xx_idc_lock
	add	r2, sp, #8
	ldr	r1, [r6]
	mov	r0, r5
	bl	qla83xx_rd_reg
	mov	r1, r4
	mov	r0, r5
	bl	qla83xx_idc_unlock
	ldmib	sp, {r2, r3}
	cmp	r2, r3
	bne	.L1
	ldr	r0, [r8]
.L4:
	mov	r1, r7
	bl	time_after
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L9+20
	mov	r1, r5
	ldr	r0, [r3]
	ldr	r2, .L9+24
	ldr	r3, .L9+28
	bl	ql_dbg
	ldr	r3, .L9+32
	ldr	r9, [r3]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	jiffies
	.word	HZ
	.word	QLA_SUCCESS
	.word	QLA83XX_FW_HEARTBEAT
	.word	ql_dbg_p3p
	.word	45180
	.word	.LC0
	.word	QLA_FUNCTION_FAILED
	.size	qla83xx_check_nic_core_fw_alive, .-qla83xx_check_nic_core_fw_alive
	.comm	ql_dbg_p3p,4,4
	.comm	jiffies,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	QLA83XX_FW_HEARTBEAT,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
