	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_idc_check_fan_failure
_qlcnic_83xx_idc_check_fan_failure:     ## @qlcnic_83xx_idc_check_fan_failure
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_QLCNIC_PEG_HALT_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLC_SHARED_REG_RD32
	movl	%eax, %ebx
	movq	_QLCNIC_RCODE_FATAL_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %edi
	callq	_QLCNIC_FWERROR_CODE
	movq	_QLCNIC_FWERROR_FAN_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_PEG_HALT_STATUS1,4,2    ## @QLCNIC_PEG_HALT_STATUS1
	.comm	_QLCNIC_RCODE_FATAL_ERROR,4,2   ## @QLCNIC_RCODE_FATAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"peg halt status1=0x%x\n"

	.comm	_QLCNIC_FWERROR_FAN_FAILURE,8,3 ## @QLCNIC_FWERROR_FAN_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"On board active cooling fan failed. Device has been halted.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Replace the adapter.\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_83xx_idc_check_fan_failure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_idc_check_fan_failure
_qlcnic_83xx_idc_check_fan_failure:     ; @qlcnic_83xx_idc_check_fan_failure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _QLCNIC_PEG_HALT_STATUS1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_PEG_HALT_STATUS1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLC_SHARED_REG_RD32
Lloh3:
	adrp	x8, _QLCNIC_RCODE_FATAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_RCODE_FATAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_QLCNIC_FWERROR_CODE
Lloh8:
	adrp	x8, _QLCNIC_FWERROR_FAN_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_FWERROR_FAN_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_PEG_HALT_STATUS1,4,2    ; @QLCNIC_PEG_HALT_STATUS1
	.comm	_QLCNIC_RCODE_FATAL_ERROR,4,2   ; @QLCNIC_RCODE_FATAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"peg halt status1=0x%x\n"

	.comm	_QLCNIC_FWERROR_FAN_FAILURE,8,3 ; @QLCNIC_FWERROR_FAN_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"On board active cooling fan failed. Device has been halted.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Replace the adapter.\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_83xx_idc_check_fan_failure
.subsections_via_symbols
