	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_check_recovery_mode
_i40e_check_recovery_mode:              ## @i40e_check_recovery_mode
	.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
	addq	$16, %rdi
	movq	_I40E_GL_FWSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rd32
	movq	_I40E_GL_FWSTS_FWS1B_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	16(%r15), %rcx
	movq	_I40E_MAC_XL710@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dil
	movq	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%dl
	orb	%dil, %dl
	movq	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%sil
	movq	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	sete	%bl
	orb	%sil, %bl
	orb	%dl, %bl
	movzbl	%bl, %edx
LBB0_2:
	movq	_I40E_MAC_X722@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edx
LBB0_4:
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_notice
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_notice
	movq	___I40E_RECOVERY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_set_bit
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	___I40E_RECOVERY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_test_and_clear_bit
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_GL_FWSTS,4,2              ## @I40E_GL_FWSTS
	.comm	_I40E_GL_FWSTS_FWS1B_MASK,8,3   ## @I40E_GL_FWSTS_FWS1B_MASK
	.comm	_I40E_MAC_XL710,8,3             ## @I40E_MAC_XL710
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK,8,3 ## @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK,8,3 ## @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK,8,3 ## @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK,8,3 ## @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK
	.comm	_I40E_MAC_X722,8,3              ## @I40E_MAC_X722
	.comm	_I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK,8,3 ## @I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK
	.comm	_I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK,8,3 ## @I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware recovery mode detected. Limiting functionality.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Refer to the Intel(R) Ethernet Adapters and Devices User Guide for details on firmware recovery mode.\n"

	.comm	___I40E_RECOVERY_MODE,4,2       ## @__I40E_RECOVERY_MODE
L_.str.2:                               ## @.str.2
	.asciz	"Reinitializing in normal mode with full functionality.\n"

	.no_dead_strip	_i40e_check_recovery_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_check_recovery_mode
_i40e_check_recovery_mode:              ; @i40e_check_recovery_mode
	.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
	add	x0, x0, #16
Lloh0:
	adrp	x8, _I40E_GL_FWSTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_GL_FWSTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rd32
Lloh3:
	adrp	x8, _I40E_GL_FWSTS_FWS1B_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_GL_FWSTS_FWS1B_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
	ldr	x9, [x19, #16]
Lloh6:
	adrp	x10, _I40E_MAC_XL710@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I40E_MAC_XL710@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x10, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK@GOTPAGE
Lloh13:
	ldr	x11, [x11, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK@GOTPAGEOFF]
	cmp	x8, x10
Lloh14:
	ldr	x10, [x11]
	ccmp	x8, x10, #4, ne
Lloh15:
	adrp	x10, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ccmp	x8, x10, #4, ne
Lloh18:
	adrp	x10, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ccmp	x8, x10, #4, ne
	cset	w10, eq
	b	LBB0_3
LBB0_2:
	mov	w10, #0
LBB0_3:
Lloh21:
	adrp	x11, _I40E_MAC_X722@GOTPAGE
Lloh22:
	ldr	x11, [x11, _I40E_MAC_X722@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_5
; %bb.4:
Lloh24:
	adrp	x9, _I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh27:
	adrp	x9, _I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w10, eq
LBB0_5:
	cbz	w10, LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_notice
	ldr	x0, [x19]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_notice
Lloh34:
	adrp	x8, ___I40E_RECOVERY_MODE@GOTPAGE
Lloh35:
	ldr	x8, [x8, ___I40E_RECOVERY_MODE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_set_bit
	mov	w0, #1
	b	LBB0_9
LBB0_7:
Lloh37:
	adrp	x8, ___I40E_RECOVERY_MODE@GOTPAGE
Lloh38:
	ldr	x8, [x8, ___I40E_RECOVERY_MODE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_test_and_clear_bit
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_GL_FWSTS,4,2              ; @I40E_GL_FWSTS
	.comm	_I40E_GL_FWSTS_FWS1B_MASK,8,3   ; @I40E_GL_FWSTS_FWS1B_MASK
	.comm	_I40E_MAC_XL710,8,3             ; @I40E_MAC_XL710
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK,8,3 ; @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK,8,3 ; @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK,8,3 ; @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_TRANSITION_MASK
	.comm	_I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK,8,3 ; @I40E_XL710_GL_FWSTS_FWS1B_REC_MOD_NVM_MASK
	.comm	_I40E_MAC_X722,8,3              ; @I40E_MAC_X722
	.comm	_I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK,8,3 ; @I40E_X722_GL_FWSTS_FWS1B_REC_MOD_CORER_MASK
	.comm	_I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK,8,3 ; @I40E_X722_GL_FWSTS_FWS1B_REC_MOD_GLOBR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware recovery mode detected. Limiting functionality.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Refer to the Intel(R) Ethernet Adapters and Devices User Guide for details on firmware recovery mode.\n"

	.comm	___I40E_RECOVERY_MODE,4,2       ; @__I40E_RECOVERY_MODE
l_.str.2:                               ; @.str.2
	.asciz	"Reinitializing in normal mode with full functionality.\n"

	.no_dead_strip	_i40e_check_recovery_mode
.subsections_via_symbols
