	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_update_nvm_checksum_i225
_igc_update_nvm_checksum_i225:          ## @igc_update_nvm_checksum_i225
	.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	_igc_read_nvm_eerd
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	jle	LBB0_8
## %bb.4:
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_igc_read_nvm_eerd
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	-48(%rbp), %r13
	incq	%rbx
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_5
LBB0_8:
	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	_igc_write_nvm_srwr
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	*(%r14)
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_11
LBB0_6:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	*(%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_igc_update_flash_i225
	movq	%rax, %r12
LBB0_11:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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"

	.no_dead_strip	_igc_update_nvm_checksum_i225
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igc_update_nvm_checksum_i225
_igc_update_nvm_checksum_i225:          ; @igc_update_nvm_checksum_i225
	.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	_igc_read_nvm_eerd
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbnz	x0, LBB0_12
; %bb.3:
Lloh2:
	adrp	x23, _NVM_CHECKSUM_REG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NVM_CHECKSUM_REG@GOTPAGEOFF]
	ldr	x1, [x23]
	cmp	x1, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x22, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x3, sp
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_igc_read_nvm_eerd
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp]
	add	x22, x22, x8
	add	x21, x21, #1
	ldr	x1, [x23]
	cmp	x21, x1
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	x22, #0
LBB0_8:
Lloh4:
	adrp	x8, _NVM_SUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVM_SUM@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	sub	x8, x8, x22
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_igc_write_nvm_srwr
	mov	x20, x0
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	cbz	x20, LBB0_11
; %bb.9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
	b	LBB0_12
LBB0_10:
	mov	x20, x0
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_igc_update_flash_i225
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.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"

	.no_dead_strip	_igc_update_nvm_checksum_i225
.subsections_via_symbols
