	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_report_fw_error
_t4_report_fw_error:                    ## @t4_report_fw_error
	.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	%rdi, %rbx
	movq	_PCIE_FW_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_t4_read_reg
	movq	_PCIE_FW_ERR_F@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %r14d
	movl	%eax, %edi
	callq	_PCIE_FW_EVAL_G
	leaq	_reltable.t4_report_fw_error(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edi
	callq	_dev_err
	movq	_CXGB4_FW_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.t4_report_fw_error
_reltable.t4_report_fw_error:
	.long	L_.str-_reltable.t4_report_fw_error
	.long	L_.str.1-_reltable.t4_report_fw_error
	.long	L_.str.2-_reltable.t4_report_fw_error
	.long	L_.str.3-_reltable.t4_report_fw_error
	.long	L_.str.4-_reltable.t4_report_fw_error
	.long	L_.str.5-_reltable.t4_report_fw_error
	.long	L_.str.6-_reltable.t4_report_fw_error
	.long	L_.str.7-_reltable.t4_report_fw_error

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Crash"

L_.str.1:                               ## @.str.1
	.asciz	"During Device Preparation"

L_.str.2:                               ## @.str.2
	.asciz	"During Device Configuration"

L_.str.3:                               ## @.str.3
	.asciz	"During Device Initialization"

L_.str.4:                               ## @.str.4
	.asciz	"Unexpected Event"

L_.str.5:                               ## @.str.5
	.asciz	"Insufficient Airflow"

L_.str.6:                               ## @.str.6
	.asciz	"Device Shutdown"

L_.str.7:                               ## @.str.7
	.asciz	"Reserved"

	.comm	_PCIE_FW_A,4,2                  ## @PCIE_FW_A
	.comm	_PCIE_FW_ERR_F,4,2              ## @PCIE_FW_ERR_F
L_.str.8:                               ## @.str.8
	.asciz	"Firmware reports adapter error: %s\n"

	.comm	_CXGB4_FW_OK,4,2                ## @CXGB4_FW_OK
	.no_dead_strip	_t4_report_fw_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_report_fw_error
_t4_report_fw_error:                    ; @t4_report_fw_error
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PCIE_FW_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_FW_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_t4_read_reg
Lloh3:
	adrp	x8, _PCIE_FW_ERR_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIE_FW_ERR_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w20, [x19, #4]
	bl	_PCIE_FW_EVAL_G
Lloh6:
	adrp	x8, _t4_report_fw_error.reason@PAGE
Lloh7:
	add	x8, x8, _t4_report_fw_error.reason@PAGEOFF
	ldr	x2, [x8, x0, lsl #3]
Lloh8:
	adrp	x1, l_.str.8@PAGE
Lloh9:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _CXGB4_FW_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CXGB4_FW_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @t4_report_fw_error.reason
_t4_report_fw_error.reason:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Crash"

l_.str.1:                               ; @.str.1
	.asciz	"During Device Preparation"

l_.str.2:                               ; @.str.2
	.asciz	"During Device Configuration"

l_.str.3:                               ; @.str.3
	.asciz	"During Device Initialization"

l_.str.4:                               ; @.str.4
	.asciz	"Unexpected Event"

l_.str.5:                               ; @.str.5
	.asciz	"Insufficient Airflow"

l_.str.6:                               ; @.str.6
	.asciz	"Device Shutdown"

l_.str.7:                               ; @.str.7
	.asciz	"Reserved"

	.comm	_PCIE_FW_A,4,2                  ; @PCIE_FW_A
	.comm	_PCIE_FW_ERR_F,4,2              ; @PCIE_FW_ERR_F
l_.str.8:                               ; @.str.8
	.asciz	"Firmware reports adapter error: %s\n"

	.comm	_CXGB4_FW_OK,4,2                ; @CXGB4_FW_OK
	.no_dead_strip	_t4_report_fw_error
.subsections_via_symbols
