	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_update_nvm_checksum_i210   ## -- Begin function igb_update_nvm_checksum_i210
	.p2align	4, 0x90
_igb_update_nvm_checksum_i210:          ## @igb_update_nvm_checksum_i210
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_igb_read_nvm_eerd
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	*(%r14)
	cmpq	(%rbx), %rax
	jne	LBB0_9
## %bb.2:
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	jle	LBB0_6
## %bb.3:
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_igb_read_nvm_eerd
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	-48(%rbp), %r13
	incq	%rbx
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_4
LBB0_6:
	movq	_NVM_SUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r13, %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_igb_write_nvm_srwr
	movq	%rax, %r12
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	*8(%r14)
	cmpq	%rbx, %r12
	jne	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	callq	_igb_update_flash_i210
	movq	%rax, %r12
	jmp	LBB0_13
LBB0_8:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
LBB0_12:
	callq	_hw_dbg
	jmp	LBB0_13
LBB0_9:
	movq	_E1000_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	*8(%r14)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read failed\n"

	.comm	_NVM_CHECKSUM_REG,8,3           ## @NVM_CHECKSUM_REG
L_.str.1:                               ## @.str.1
	.asciz	"NVM Read Error while updating checksum.\n"

	.comm	_NVM_SUM,8,3                    ## @NVM_SUM
L_.str.2:                               ## @.str.2
	.asciz	"NVM Write Error while updating checksum.\n"

	.comm	_E1000_ERR_SWFW_SYNC,8,3        ## @E1000_ERR_SWFW_SYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_update_nvm_checksum_i210   ; -- Begin function igb_update_nvm_checksum_i210
	.p2align	2
_igb_update_nvm_checksum_i210:          ; @igb_update_nvm_checksum_i210
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	x3, sp
	mov	x1, #0
	mov	w2, #1
	bl	_igb_read_nvm_eerd
Lloh0:
	adrp	x22, _E1000_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _E1000_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
Lloh2:
	adrp	x24, _NVM_CHECKSUM_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NVM_CHECKSUM_REG@GOTPAGEOFF]
	ldr	x1, [x24]
	cmp	x1, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x23, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x3, sp
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_igb_read_nvm_eerd
	cbnz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]
	add	x23, x23, x8
	add	x21, x21, #1
	ldr	x1, [x24]
	cmp	x21, x1
	b.lt	LBB0_4
	b	LBB0_10
LBB0_6:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_hw_dbg
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x8, _E1000_ERR_SWFW_SYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_12
LBB0_9:
	mov	x23, #0
LBB0_10:
Lloh9:
	adrp	x8, _NVM_SUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVM_SUM@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x8, x8, x23
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_igb_write_nvm_srwr
	mov	x20, x0
	ldr	x21, [x22]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cmp	x20, x21
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_igb_update_flash_i210
	mov	x20, x0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x20, x0
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_14:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read failed\n"

	.comm	_NVM_CHECKSUM_REG,8,3           ; @NVM_CHECKSUM_REG
l_.str.1:                               ; @.str.1
	.asciz	"NVM Read Error while updating checksum.\n"

	.comm	_NVM_SUM,8,3                    ; @NVM_SUM
l_.str.2:                               ; @.str.2
	.asciz	"NVM Write Error while updating checksum.\n"

	.comm	_E1000_ERR_SWFW_SYNC,8,3        ; @E1000_ERR_SWFW_SYNC
.subsections_via_symbols
