	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_validate_nvm_checksum     ## -- Begin function i40e_validate_nvm_checksum
	.p2align	4, 0x90
_i40e_validate_nvm_checksum:            ## @i40e_validate_nvm_checksum
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	_I40E_RESOURCE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i40e_acquire_nvm
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i40e_calc_nvm_checksum
	movq	%rax, %rbx
	movq	_I40E_SR_SW_CHECKSUM_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	___i40e_read_nvm_word
	movq	%r15, %rdi
	callq	_i40e_release_nvm
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.2:
	movq	-32(%rbp), %rax
	cmpq	-40(%rbp), %rax
	je	LBB0_3
## %bb.4:
	movq	_I40E_ERR_NVM_CHECKSUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_7
LBB0_6:
	movq	%rax, (%r14)
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_RESOURCE_READ,4,2         ## @I40E_RESOURCE_READ
	.comm	_I40E_SR_SW_CHECKSUM_WORD,4,2   ## @I40E_SR_SW_CHECKSUM_WORD
	.comm	_I40E_ERR_NVM_CHECKSUM,8,3      ## @I40E_ERR_NVM_CHECKSUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_validate_nvm_checksum     ; -- Begin function i40e_validate_nvm_checksum
	.p2align	2
_i40e_validate_nvm_checksum:            ; @i40e_validate_nvm_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _I40E_RESOURCE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_RESOURCE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i40e_acquire_nvm
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x1, sp
	mov	x0, x20
	bl	_i40e_calc_nvm_checksum
	mov	x21, x0
Lloh3:
	adrp	x8, _I40E_SR_SW_CHECKSUM_WORD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_SR_SW_CHECKSUM_WORD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	___i40e_read_nvm_word
	mov	x0, x20
	bl	_i40e_release_nvm
	cbnz	x21, LBB0_4
; %bb.2:
	ldp	x8, x9, [sp]
Lloh6:
	adrp	x10, _I40E_ERR_NVM_CHECKSUM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I40E_ERR_NVM_CHECKSUM@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x21, xzr, x10, eq
	cbz	x19, LBB0_4
; %bb.3:
	str	x8, [x19]
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_RESOURCE_READ,4,2         ; @I40E_RESOURCE_READ
	.comm	_I40E_SR_SW_CHECKSUM_WORD,4,2   ; @I40E_SR_SW_CHECKSUM_WORD
	.comm	_I40E_ERR_NVM_CHECKSUM,8,3      ; @I40E_ERR_NVM_CHECKSUM
.subsections_via_symbols
