	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_check_fw_hearbeat
_qlcnic_check_fw_hearbeat:              ## @qlcnic_check_fw_hearbeat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	movq	_QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_QLCNIC_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_QLC_SHARED_REG_RD32
	movq	%rax, (%r15)
	movq	_QLCNIC_HEARTBEAT_PERIOD_MSECS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_QLC_SHARED_REG_RD32
	cmpq	%rax, (%r15)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_2:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,8,3                        ## @EIO
	.comm	_QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT,4,2 ## @QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT
	.comm	_QLCNIC_PEG_ALIVE_COUNTER,4,2   ## @QLCNIC_PEG_ALIVE_COUNTER
	.comm	_QLCNIC_HEARTBEAT_PERIOD_MSECS,4,2 ## @QLCNIC_HEARTBEAT_PERIOD_MSECS
	.comm	_QLCNIC_RCODE_SUCCESS,8,3       ## @QLCNIC_RCODE_SUCCESS
	.no_dead_strip	_qlcnic_check_fw_hearbeat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_check_fw_hearbeat
_qlcnic_check_fw_hearbeat:              ; @qlcnic_check_fw_hearbeat
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
Lloh3:
	adrp	x8, _QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x22, _QLCNIC_PEG_ALIVE_COUNTER@GOTPAGE
Lloh7:
	ldr	x22, [x22, _QLCNIC_PEG_ALIVE_COUNTER@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_QLC_SHARED_REG_RD32
	str	x0, [x20]
Lloh8:
	adrp	x23, _QLCNIC_HEARTBEAT_PERIOD_MSECS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _QLCNIC_HEARTBEAT_PERIOD_MSECS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x20
	bl	_QLC_SHARED_REG_RD32
	ldr	x8, [x20]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,8,3                        ; @EIO
	.comm	_QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT,4,2 ; @QLCNIC_HEARTBEAT_CHECK_RETRY_COUNT
	.comm	_QLCNIC_PEG_ALIVE_COUNTER,4,2   ; @QLCNIC_PEG_ALIVE_COUNTER
	.comm	_QLCNIC_HEARTBEAT_PERIOD_MSECS,4,2 ; @QLCNIC_HEARTBEAT_PERIOD_MSECS
	.comm	_QLCNIC_RCODE_SUCCESS,8,3       ; @QLCNIC_RCODE_SUCCESS
	.no_dead_strip	_qlcnic_check_fw_hearbeat
.subsections_via_symbols
