	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_fw_reporter_diagnose
_bnxt_fw_reporter_diagnose:             ## @bnxt_fw_reporter_diagnose
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_devlink_health_reporter_priv
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movq	_BNXT_STATE_IN_FW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	_BNXT_FW_HEALTH_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnxt_fw_health_readl
	movl	%eax, %r15d
	movzwl	%r15w, %eax
	movq	_BNXT_FW_STATUS_HEALTHY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	jle	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	movq	%r14, %rdi
	callq	_devlink_fmsg_string_pair_put
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	cmpl	$65536, %r15d                   ## imm = 0x10000
	jb	LBB0_10
## %bb.8:
	sarl	$16, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_devlink_fmsg_u32_pair_put
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_BNXT_FW_RESET_CNT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnxt_fw_health_readl
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devlink_fmsg_u32_pair_put      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ## @BNXT_STATE_IN_FW_RESET
	.comm	_BNXT_FW_HEALTH_REG,4,2         ## @BNXT_FW_HEALTH_REG
	.comm	_BNXT_FW_STATUS_HEALTHY,4,2     ## @BNXT_FW_STATUS_HEALTHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Description"

L_.str.1:                               ## @.str.1
	.asciz	"Not yet completed initialization"

L_.str.2:                               ## @.str.2
	.asciz	"Encountered fatal error and cannot recover"

L_.str.3:                               ## @.str.3
	.asciz	"Error code"

	.comm	_BNXT_FW_RESET_CNT_REG,4,2      ## @BNXT_FW_RESET_CNT_REG
L_.str.4:                               ## @.str.4
	.asciz	"Reset count"

	.no_dead_strip	_bnxt_fw_reporter_diagnose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_fw_reporter_diagnose
_bnxt_fw_reporter_diagnose:             ; @bnxt_fw_reporter_diagnose
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_devlink_health_reporter_priv
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _BNXT_STATE_IN_FW_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_STATE_IN_FW_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _BNXT_FW_HEALTH_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_FW_HEALTH_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnxt_fw_health_readl
	mov	x21, x0
	and	w8, w0, #0xffff
Lloh6:
	adrp	x9, _BNXT_FW_STATUS_HEALTHY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_FW_STATUS_HEALTHY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	b.le	LBB0_9
; %bb.7:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_devlink_fmsg_string_pair_put
	cbnz	w0, LBB0_3
LBB0_9:
	cmp	w21, #16, lsl #12               ; =65536
	b.lo	LBB0_11
; %bb.10:
	asr	w2, w21, #16
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devlink_fmsg_u32_pair_put
	cbnz	w0, LBB0_3
LBB0_11:
Lloh19:
	adrp	x8, _BNXT_FW_RESET_CNT_REG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BNXT_FW_RESET_CNT_REG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnxt_fw_health_readl
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_devlink_fmsg_u32_pair_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ; @BNXT_STATE_IN_FW_RESET
	.comm	_BNXT_FW_HEALTH_REG,4,2         ; @BNXT_FW_HEALTH_REG
	.comm	_BNXT_FW_STATUS_HEALTHY,4,2     ; @BNXT_FW_STATUS_HEALTHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Description"

l_.str.1:                               ; @.str.1
	.asciz	"Not yet completed initialization"

l_.str.2:                               ; @.str.2
	.asciz	"Encountered fatal error and cannot recover"

l_.str.3:                               ; @.str.3
	.asciz	"Error code"

	.comm	_BNXT_FW_RESET_CNT_REG,4,2      ; @BNXT_FW_RESET_CNT_REG
l_.str.4:                               ; @.str.4
	.asciz	"Reset count"

	.no_dead_strip	_bnxt_fw_reporter_diagnose
.subsections_via_symbols
