	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_validate_nvm_checksum      ## -- Begin function igc_validate_nvm_checksum
	.p2align	4, 0x90
_igc_validate_nvm_checksum:             ## @igc_validate_nvm_checksum
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	$-1, %rbx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	*(%r15)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	-48(%rbp), %r14
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_NVM_SUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movl	$0, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
	movq	_IGC_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movl	%r13d, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_CHECKSUM_REG,8,3           ## @NVM_CHECKSUM_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM Read Error\n"

	.comm	_NVM_SUM,8,3                    ## @NVM_SUM
L_.str.1:                               ## @.str.1
	.asciz	"NVM Checksum Invalid\n"

	.comm	_IGC_ERR_NVM,4,2                ## @IGC_ERR_NVM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_validate_nvm_checksum      ; -- Begin function igc_validate_nvm_checksum
	.p2align	2
_igc_validate_nvm_checksum:             ; @igc_validate_nvm_checksum
	.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
Lloh0:
	adrp	x23, _NVM_CHECKSUM_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVM_CHECKSUM_REG@GOTPAGEOFF]
	ldr	x8, [x23]
	tbnz	x8, #63, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	mov	x20, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	blr	x8
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	add	x22, x8, x22
	ldr	x8, [x23]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
Lloh2:
	adrp	x8, _NVM_SUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVM_SUM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_8
; %bb.6:
	mov	w21, #0
	b	LBB0_9
LBB0_7:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
Lloh9:
	adrp	x8, _IGC_ERR_NVM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IGC_ERR_NVM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_CHECKSUM_REG,8,3           ; @NVM_CHECKSUM_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM Read Error\n"

	.comm	_NVM_SUM,8,3                    ; @NVM_SUM
l_.str.1:                               ; @.str.1
	.asciz	"NVM Checksum Invalid\n"

	.comm	_IGC_ERR_NVM,4,2                ; @IGC_ERR_NVM
.subsections_via_symbols
