	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_validate_eeprom_checksum ## -- Begin function e1000_validate_eeprom_checksum
	.p2align	4, 0x90
_e1000_validate_eeprom_checksum:        ## @e1000_validate_eeprom_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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_EEPROM_CHECKSUM_REG@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	js	LBB0_1
## %bb.2:
	movq	$-1, %rbx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_e1000_read_eeprom
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	-48(%rbp), %r12
	cmpq	(%r13), %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_EEPROM_SUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_8
## %bb.7:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_e_dbg
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %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	"e1000_validate_eeprom_checksum"

	.comm	_EEPROM_CHECKSUM_REG,8,3        ## @EEPROM_CHECKSUM_REG
L_.str.1:                               ## @.str.1
	.asciz	"EEPROM Read Error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ## @E1000_ERR_EEPROM
	.comm	_EEPROM_SUM,8,3                 ## @EEPROM_SUM
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"EEPROM Checksum Invalid\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_validate_eeprom_checksum ; -- Begin function e1000_validate_eeprom_checksum
	.p2align	2
_e1000_validate_eeprom_checksum:        ; @e1000_validate_eeprom_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh2:
	adrp	x22, _EEPROM_CHECKSUM_REG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EEPROM_CHECKSUM_REG@GOTPAGEOFF]
	ldr	x8, [x22]
	tbnz	x8, #63, LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x20, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_e1000_read_eeprom
	tbnz	x0, #63, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	add	x21, x8, x21
	ldr	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
Lloh4:
	adrp	x8, _EEPROM_SUM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EEPROM_SUM@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.6:
Lloh7:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_e_dbg
Lloh14:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e1000_validate_eeprom_checksum"

	.comm	_EEPROM_CHECKSUM_REG,8,3        ; @EEPROM_CHECKSUM_REG
l_.str.1:                               ; @.str.1
	.asciz	"EEPROM Read Error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ; @E1000_ERR_EEPROM
	.comm	_EEPROM_SUM,8,3                 ; @EEPROM_SUM
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"EEPROM Checksum Invalid\n"

.subsections_via_symbols
