	.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	_EEPROM_CHECKSUM_REG@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	js	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	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(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%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
	.comm	_EEPROM_CHECKSUM_REG,8,3        ## @EEPROM_CHECKSUM_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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.1:                               ## @.str.1
	.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
Lloh0:
	adrp	x22, _EEPROM_CHECKSUM_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EEPROM_CHECKSUM_REG@GOTPAGEOFF]
	ldr	x8, [x22]
	tbnz	x8, #63, LBB0_4
; %bb.1:
	mov	x19, x0
	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:
Lloh2:
	adrp	x8, _EEPROM_SUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEPROM_SUM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_e_dbg
Lloh12:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh14:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_CHECKSUM_REG,8,3        ; @EEPROM_CHECKSUM_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.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.1:                               ; @.str.1
	.asciz	"EEPROM Checksum Invalid\n"

.subsections_via_symbols
