	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_fw_health_check
_bnxt_fw_health_check:                  ## @bnxt_fw_health_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	cmpl	$0, 32(%rbx)
	je	LBB0_9
## %bb.2:
	movq	%rdi, %r14
	movq	_BNXT_STATE_IN_FW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	decq	%rax
LBB0_8:
	movq	%rax, 24(%rbx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_BNXT_FW_HEARTBEAT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bnxt_fw_health_readl
	cmpq	(%rbx), %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, (%rbx)
	movq	_BNXT_FW_RESET_CNT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bnxt_fw_health_readl
	cmpq	8(%rbx), %rax
	jne	LBB0_10
## %bb.7:
	movq	16(%rbx), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_BNXT_FW_EXCEPTION_SP_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bnxt_queue_sp_work             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ## @BNXT_STATE_IN_FW_RESET
	.comm	_BNXT_FW_HEARTBEAT_REG,4,2      ## @BNXT_FW_HEARTBEAT_REG
	.comm	_BNXT_FW_RESET_CNT_REG,4,2      ## @BNXT_FW_RESET_CNT_REG
	.comm	_BNXT_FW_EXCEPTION_SP_EVENT,4,2 ## @BNXT_FW_EXCEPTION_SP_EVENT
	.no_dead_strip	_bnxt_fw_health_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_fw_health_check
_bnxt_fw_health_check:                  ; @bnxt_fw_health_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_6
; %bb.1:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _BNXT_STATE_IN_FW_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_STATE_IN_FW_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.4:
	sub	x8, x8, #1
LBB0_5:
	str	x8, [x20, #24]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh3:
	adrp	x8, _BNXT_FW_HEARTBEAT_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_FW_HEARTBEAT_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnxt_fw_health_readl
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.8:
	str	x0, [x20]
Lloh6:
	adrp	x8, _BNXT_FW_RESET_CNT_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNXT_FW_RESET_CNT_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnxt_fw_health_readl
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20, #16]
	b	LBB0_5
LBB0_10:
Lloh9:
	adrp	x8, _BNXT_FW_EXCEPTION_SP_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNXT_FW_EXCEPTION_SP_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bnxt_queue_sp_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ; @BNXT_STATE_IN_FW_RESET
	.comm	_BNXT_FW_HEARTBEAT_REG,4,2      ; @BNXT_FW_HEARTBEAT_REG
	.comm	_BNXT_FW_RESET_CNT_REG,4,2      ; @BNXT_FW_RESET_CNT_REG
	.comm	_BNXT_FW_EXCEPTION_SP_EVENT,4,2 ; @BNXT_FW_EXCEPTION_SP_EVENT
	.no_dead_strip	_bnxt_fw_health_check
.subsections_via_symbols
