	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_test_nvram_dir
_bnx2x_test_nvram_dir:                  ## @bnx2x_test_nvram_dir
	.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	%rdx, %rcx
	movq	(%rsi), %rbx
	movq	_CODE_IMAGE_LENGTH_MASK@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movq	(%rax), %rdx
	andq	%rbx, %rdx
	je	LBB0_4
## %bb.1:
	movq	_CODE_IMAGE_TYPE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_CODE_IMAGE_VNTAG_PROFILES_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.2:
	movl	8(%rsi), %esi
	callq	_bnx2x_nvram_crc
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movq	_BNX2X_MSG_NVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_DP
	movl	%r15d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODE_IMAGE_LENGTH_MASK,8,3     ## @CODE_IMAGE_LENGTH_MASK
	.comm	_CODE_IMAGE_TYPE_MASK,8,3       ## @CODE_IMAGE_TYPE_MASK
	.comm	_CODE_IMAGE_VNTAG_PROFILES_DATA,8,3 ## @CODE_IMAGE_VNTAG_PROFILES_DATA
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.comm	_BNX2X_MSG_NVM,4,2              ## @BNX2X_MSG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"image %x has failed crc test (rc %d)\n"

	.no_dead_strip	_bnx2x_test_nvram_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_test_nvram_dir
_bnx2x_test_nvram_dir:                  ; @bnx2x_test_nvram_dir
	.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	x3, x2
Lloh0:
	adrp	x8, _CODE_IMAGE_LENGTH_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CODE_IMAGE_LENGTH_MASK@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	x8, [x8]
	and	x2, x8, x9
Lloh3:
	adrp	x8, _CODE_IMAGE_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CODE_IMAGE_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x19, x8, x9
Lloh6:
	adrp	x8, _CODE_IMAGE_VNTAG_PROFILES_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CODE_IMAGE_VNTAG_PROFILES_DATA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, #0
	ccmp	x19, x8, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_4
LBB0_2:
	ldr	w1, [x1, #8]
	bl	_bnx2x_nvram_crc
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BNX2X_MSG_NVM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_DP
LBB0_4:
	mov	x0, x20
	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 AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CODE_IMAGE_LENGTH_MASK,8,3     ; @CODE_IMAGE_LENGTH_MASK
	.comm	_CODE_IMAGE_TYPE_MASK,8,3       ; @CODE_IMAGE_TYPE_MASK
	.comm	_CODE_IMAGE_VNTAG_PROFILES_DATA,8,3 ; @CODE_IMAGE_VNTAG_PROFILES_DATA
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.comm	_BNX2X_MSG_NVM,4,2              ; @BNX2X_MSG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"image %x has failed crc test (rc %d)\n"

	.no_dead_strip	_bnx2x_test_nvram_dir
.subsections_via_symbols
