	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_update_nvm_checksum_82571
_e1000_update_nvm_checksum_82571:       ## @e1000_update_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_e1000e_update_nvm_checksum_generic
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	movq	(%rbx), %rax
	movq	_e1000_nvm_flash_hw@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.2:
	movq	_E1000_FLASH_UPDATES@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_6
## %bb.3:
	movq	_EECD@GOTPCREL(%rip), %r14
	movq	_E1000_EECD_FLUPD@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r14), %edi
	callq	_er32
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	cmpq	%rax, %rbx
	jne	LBB0_9
	jmp	LBB0_15
LBB0_8:
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	je	LBB0_15
LBB0_9:
	movq	_FLOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	andl	$65280, %eax                    ## imm = 0xFF00
	movq	_E1000_STM_OPCODE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	movq	_HICR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_E1000_HICR_FW_RESET_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	(%rbx), %edi
	movq	_E1000_HICR_FW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ew32
LBB0_11:
	movq	_EECD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_EECD_FLUPD@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r14), %edi
	callq	_er32
	testl	%eax, (%r12)
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_14:
	cmpq	%rax, %rbx
	jne	LBB0_17
LBB0_15:
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_18
LBB0_16:
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	je	LBB0_15
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_nvm_flash_hw,8,3         ## @e1000_nvm_flash_hw
	.comm	_E1000_FLASH_UPDATES,8,3        ## @E1000_FLASH_UPDATES
	.comm	_EECD,4,2                       ## @EECD
	.comm	_E1000_EECD_FLUPD,4,2           ## @E1000_EECD_FLUPD
	.comm	_E1000_ERR_NVM,8,3              ## @E1000_ERR_NVM
	.comm	_FLOP,4,2                       ## @FLOP
	.comm	_E1000_STM_OPCODE,4,2           ## @E1000_STM_OPCODE
	.comm	_HICR,4,2                       ## @HICR
	.comm	_E1000_HICR_FW_RESET_ENABLE,4,2 ## @E1000_HICR_FW_RESET_ENABLE
	.comm	_E1000_HICR_FW_RESET,4,2        ## @E1000_HICR_FW_RESET
	.no_dead_strip	_e1000_update_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_update_nvm_checksum_82571
_e1000_update_nvm_checksum_82571:       ; @e1000_update_nvm_checksum_82571
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_e1000e_update_nvm_checksum_generic
	cbnz	x0, LBB0_20
; %bb.1:
	ldr	x8, [x19]
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_19
; %bb.2:
Lloh3:
	adrp	x19, _E1000_FLASH_UPDATES@GOTPAGE
Lloh4:
	ldr	x19, [x19, _E1000_FLASH_UPDATES@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _EECD@GOTPAGE
Lloh6:
	ldr	x20, [x20, _EECD@GOTPAGEOFF]
Lloh7:
	adrp	x21, _E1000_EECD_FLUPD@GOTPAGE
Lloh8:
	ldr	x21, [x21, _E1000_EECD_FLUPD@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x22, #0
LBB0_7:
	cmp	x22, x8
	b.ne	LBB0_9
	b	LBB0_16
LBB0_8:
	ldr	x8, [x19]
	cmp	x22, x8
	b.eq	LBB0_16
LBB0_9:
Lloh9:
	adrp	x8, _FLOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLOP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_er32
	and	w8, w0, #0xff00
Lloh12:
	adrp	x9, _E1000_STM_OPCODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_STM_OPCODE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
Lloh15:
	adrp	x22, _HICR@GOTPAGE
Lloh16:
	ldr	x22, [x22, _HICR@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh17:
	adrp	x8, _E1000_HICR_FW_RESET_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_HICR_FW_RESET_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_ew32
	bl	_e1e_flush
	ldr	w0, [x22]
Lloh20:
	adrp	x8, _E1000_HICR_FW_RESET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_HICR_FW_RESET@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_ew32
LBB0_11:
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x21]
	orr	w1, w8, w0
	ldr	w0, [x20]
	bl	_ew32
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_17
; %bb.12:
	mov	x22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_13
; %bb.15:
	cmp	x22, x8
	b.ne	LBB0_19
LBB0_16:
Lloh23:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_20
LBB0_17:
	mov	x22, #0
	cmp	x22, x8
	b.ne	LBB0_19
	b	LBB0_16
LBB0_18:
	ldr	x8, [x19]
	cmp	x22, x8
	b.eq	LBB0_16
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_nvm_flash_hw,8,3         ; @e1000_nvm_flash_hw
	.comm	_E1000_FLASH_UPDATES,8,3        ; @E1000_FLASH_UPDATES
	.comm	_EECD,4,2                       ; @EECD
	.comm	_E1000_EECD_FLUPD,4,2           ; @E1000_EECD_FLUPD
	.comm	_E1000_ERR_NVM,8,3              ; @E1000_ERR_NVM
	.comm	_FLOP,4,2                       ; @FLOP
	.comm	_E1000_STM_OPCODE,4,2           ; @E1000_STM_OPCODE
	.comm	_HICR,4,2                       ; @HICR
	.comm	_E1000_HICR_FW_RESET_ENABLE,4,2 ; @E1000_HICR_FW_RESET_ENABLE
	.comm	_E1000_HICR_FW_RESET,4,2        ; @E1000_HICR_FW_RESET
	.no_dead_strip	_e1000_update_nvm_checksum_82571
.subsections_via_symbols
