	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_validate_nvm_checksum_ich8lan
_e1000_validate_nvm_checksum_ich8lan:   ## @e1000_validate_nvm_checksum_ich8lan
	.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, %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	_NVM_FUTURE_INIT_WORD1_VALID_CSUM@GOTPCREL(%rip), %rax
	cmovbq	_NVM_COMPAT_VALID_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_NVM_FUTURE_INIT_WORD1@GOTPCREL(%rip), %rax
	cmovbq	_NVM_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-28(%rbp), %rcx
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_e1000_read_nvm
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	-28(%rbp), %eax
	testl	%r15d, %eax
	je	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_e1000e_validate_nvm_checksum_generic
	jmp	LBB0_5
LBB0_2:
	orl	%r15d, %eax
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_e1000_write_nvm
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_e1000e_update_nvm_checksum
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_COMPAT,4,2                 ## @NVM_COMPAT
	.comm	_NVM_COMPAT_VALID_CSUM,4,2      ## @NVM_COMPAT_VALID_CSUM
	.comm	_NVM_FUTURE_INIT_WORD1,4,2      ## @NVM_FUTURE_INIT_WORD1
	.comm	_NVM_FUTURE_INIT_WORD1_VALID_CSUM,4,2 ## @NVM_FUTURE_INIT_WORD1_VALID_CSUM
	.no_dead_strip	_e1000_validate_nvm_checksum_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_validate_nvm_checksum_ich8lan
_e1000_validate_nvm_checksum_ich8lan:   ; @e1000_validate_nvm_checksum_ich8lan
	.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, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NVM_COMPAT_VALID_CSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVM_COMPAT_VALID_CSUM@GOTPAGEOFF]
	sub	w8, w8, #128
Lloh2:
	adrp	x10, _NVM_FUTURE_INIT_WORD1_VALID_CSUM@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NVM_FUTURE_INIT_WORD1_VALID_CSUM@GOTPAGEOFF]
	cmp	w8, #3
	csel	x8, x9, x10, lo
	ldr	w21, [x8]
Lloh4:
	adrp	x8, _NVM_COMPAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVM_COMPAT@GOTPAGEOFF]
Lloh6:
	adrp	x9, _NVM_FUTURE_INIT_WORD1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVM_FUTURE_INIT_WORD1@GOTPAGEOFF]
	csel	x8, x8, x9, lo
	ldr	w20, [x8]
	add	x3, sp, #12
	mov	x1, x20
	mov	w2, #1
	bl	_e1000_read_nvm
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
	tst	w8, w21
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_e1000e_validate_nvm_checksum_generic
	b	LBB0_5
LBB0_3:
	orr	w8, w8, w21
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_e1000_write_nvm
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_e1000e_update_nvm_checksum
	cbz	x0, LBB0_2
LBB0_5:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_COMPAT,4,2                 ; @NVM_COMPAT
	.comm	_NVM_COMPAT_VALID_CSUM,4,2      ; @NVM_COMPAT_VALID_CSUM
	.comm	_NVM_FUTURE_INIT_WORD1,4,2      ; @NVM_FUTURE_INIT_WORD1
	.comm	_NVM_FUTURE_INIT_WORD1_VALID_CSUM,4,2 ; @NVM_FUTURE_INIT_WORD1_VALID_CSUM
	.no_dead_strip	_e1000_validate_nvm_checksum_ich8lan
.subsections_via_symbols
