	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_fix_nvm_checksum_82571
_e1000_fix_nvm_checksum_82571:          ## @e1000_fix_nvm_checksum_82571
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_e1000_nvm_flash_hw@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	leaq	-12(%rbp), %rcx
	movl	$16, %esi
	movl	$1, %edx
	callq	_e1000_read_nvm
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	testb	$16, -12(%rbp)
	jne	LBB0_7
## %bb.3:
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$35, %esi
	movl	$1, %edx
	callq	_e1000_read_nvm
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movl	-12(%rbp), %eax
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_7
## %bb.5:
	orl	$32768, %eax                    ## imm = 0x8000
	movl	%eax, -12(%rbp)
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$35, %esi
	movl	$1, %edx
	callq	_e1000_write_nvm
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_e1000e_update_nvm_checksum
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_nvm_flash_hw,8,3         ## @e1000_nvm_flash_hw
	.no_dead_strip	_e1000_fix_nvm_checksum_82571
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_fix_nvm_checksum_82571
_e1000_fix_nvm_checksum_82571:          ; @e1000_fix_nvm_checksum_82571
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_nvm_flash_hw@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_nvm_flash_hw@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	add	x3, sp, #12
	mov	w1, #16
	mov	w2, #1
	bl	_e1000_read_nvm
	cbnz	x0, LBB0_8
; %bb.2:
	ldrb	w8, [sp, #12]
	tbnz	w8, #4, LBB0_7
; %bb.3:
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #35
	mov	w2, #1
	bl	_e1000_read_nvm
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
	tbnz	w8, #15, LBB0_7
; %bb.5:
	orr	w8, w8, #0x8000
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #35
	mov	w2, #1
	bl	_e1000_write_nvm
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_e1000e_update_nvm_checksum
	cbnz	x0, LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_nvm_flash_hw,8,3         ; @e1000_nvm_flash_hw
	.no_dead_strip	_e1000_fix_nvm_checksum_82571
.subsections_via_symbols
