	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_check_heartbeat
_qlcnic_83xx_check_heartbeat:           ## @qlcnic_83xx_check_heartbeat
	.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
	subq	$40, %rsp
	.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
	subl	(%rax), %r14d
	movl	$0, -52(%rbp)
	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
## %bb.4:
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_5:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_qlcnic_83xx_take_eport_out_of_reset
	movq	%r15, %rdi
	callq	_qlcnic_83xx_disable_pause_frames
	movq	_QLCNIC_PEG_HALT_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_QLC_SHARED_REG_RD32
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_QLCNIC_PEG_HALT_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_QLC_SHARED_REG_RD32
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_QLC_83XX_CRB_PEG_NET_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %r13
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_QLCRD32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_QLC_83XX_CRB_PEG_NET_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_QLCRD32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_QLC_83XX_CRB_PEG_NET_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_QLCRD32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_QLC_83XX_CRB_PEG_NET_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_QLCRD32
	movl	%eax, %r12d
	movq	_QLC_83XX_CRB_PEG_NET_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_QLCRD32
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_info
	addq	$32, %rsp
	movq	%rbx, %rdi
	callq	_QLCNIC_FWERROR_CODE
	cmpl	$103, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @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,4,2       ## @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware hang detected\n"

	.comm	_QLCNIC_PEG_HALT_STATUS1,4,2    ## @QLCNIC_PEG_HALT_STATUS1
L_.str.1:                               ## @.str.1
	.asciz	"Dumping HW/FW registers\nPEG_HALT_STATUS1: 0x%x, PEG_HALT_STATUS2: 0x%x,\nPEG_NET_0_PC: 0x%x, PEG_NET_1_PC: 0x%x,\nPEG_NET_2_PC: 0x%x, PEG_NET_3_PC: 0x%x,\nPEG_NET_4_PC: 0x%x\n"

	.comm	_QLCNIC_PEG_HALT_STATUS2,4,2    ## @QLCNIC_PEG_HALT_STATUS2
	.comm	_QLC_83XX_CRB_PEG_NET_0,4,2     ## @QLC_83XX_CRB_PEG_NET_0
	.comm	_QLC_83XX_CRB_PEG_NET_1,4,2     ## @QLC_83XX_CRB_PEG_NET_1
	.comm	_QLC_83XX_CRB_PEG_NET_2,4,2     ## @QLC_83XX_CRB_PEG_NET_2
	.comm	_QLC_83XX_CRB_PEG_NET_3,4,2     ## @QLC_83XX_CRB_PEG_NET_3
	.comm	_QLC_83XX_CRB_PEG_NET_4,4,2     ## @QLC_83XX_CRB_PEG_NET_4
L_.str.2:                               ## @.str.2
	.asciz	"Device is being reset err code 0x00006700.\n"

	.no_dead_strip	_qlcnic_83xx_check_heartbeat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_check_heartbeat
_qlcnic_83xx_check_heartbeat:           ; @qlcnic_83xx_check_heartbeat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	str	wzr, [sp, #12]
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_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_1
; %bb.3:
	cbnz	w19, LBB0_5
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	cbz	w19, LBB0_7
LBB0_5:
	ldr	x0, [x20, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_qlcnic_83xx_take_eport_out_of_reset
	mov	x0, x20
	bl	_qlcnic_83xx_disable_pause_frames
Lloh15:
	adrp	x8, _QLCNIC_PEG_HALT_STATUS1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_PEG_HALT_STATUS1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_QLC_SHARED_REG_RD32
	mov	x21, x0
	ldr	x22, [x20, #8]
Lloh18:
	adrp	x8, _QLCNIC_PEG_HALT_STATUS2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_PEG_HALT_STATUS2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_QLC_SHARED_REG_RD32
	mov	x23, x0
Lloh21:
	adrp	x8, _QLC_83XX_CRB_PEG_NET_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QLC_83XX_CRB_PEG_NET_0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	mov	x24, x0
Lloh24:
	adrp	x8, _QLC_83XX_CRB_PEG_NET_1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QLC_83XX_CRB_PEG_NET_1@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	mov	x25, x0
Lloh27:
	adrp	x8, _QLC_83XX_CRB_PEG_NET_2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _QLC_83XX_CRB_PEG_NET_2@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	mov	x26, x0
Lloh30:
	adrp	x8, _QLC_83XX_CRB_PEG_NET_3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _QLC_83XX_CRB_PEG_NET_3@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	mov	x27, x0
Lloh33:
	adrp	x8, _QLC_83XX_CRB_PEG_NET_4@GOTPAGE
Lloh34:
	ldr	x8, [x8, _QLC_83XX_CRB_PEG_NET_4@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	str	w0, [sp]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	mov	x6, x26
	mov	x7, x27
	bl	_dev_info
	mov	x0, x21
	bl	_QLCNIC_FWERROR_CODE
	cmp	w0, #103
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x20, #8]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @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,4,2       ; @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware hang detected\n"

	.comm	_QLCNIC_PEG_HALT_STATUS1,4,2    ; @QLCNIC_PEG_HALT_STATUS1
l_.str.1:                               ; @.str.1
	.asciz	"Dumping HW/FW registers\nPEG_HALT_STATUS1: 0x%x, PEG_HALT_STATUS2: 0x%x,\nPEG_NET_0_PC: 0x%x, PEG_NET_1_PC: 0x%x,\nPEG_NET_2_PC: 0x%x, PEG_NET_3_PC: 0x%x,\nPEG_NET_4_PC: 0x%x\n"

	.comm	_QLCNIC_PEG_HALT_STATUS2,4,2    ; @QLCNIC_PEG_HALT_STATUS2
	.comm	_QLC_83XX_CRB_PEG_NET_0,4,2     ; @QLC_83XX_CRB_PEG_NET_0
	.comm	_QLC_83XX_CRB_PEG_NET_1,4,2     ; @QLC_83XX_CRB_PEG_NET_1
	.comm	_QLC_83XX_CRB_PEG_NET_2,4,2     ; @QLC_83XX_CRB_PEG_NET_2
	.comm	_QLC_83XX_CRB_PEG_NET_3,4,2     ; @QLC_83XX_CRB_PEG_NET_3
	.comm	_QLC_83XX_CRB_PEG_NET_4,4,2     ; @QLC_83XX_CRB_PEG_NET_4
l_.str.2:                               ; @.str.2
	.asciz	"Device is being reset err code 0x00006700.\n"

	.no_dead_strip	_qlcnic_83xx_check_heartbeat
.subsections_via_symbols
