	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_read_nvm_ich8lan
_e1000_read_nvm_ich8lan:                ## @e1000_read_nvm_ich8lan
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -64(%rbp)
	movq	8(%rdi), %rax
	subq	%rsi, %rax
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	cmpq	%r15, %rax
	jl	LBB0_3
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	*32(%rdi)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_e1000_valid_nvm_bank_detect_ich8lan
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_e_dbg
	movq	$0, -64(%rbp)
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_20
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_20:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, -64(%rbp)
	je	LBB0_7
## %bb.8:
	movq	16(%r12), %rax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%r15, %r15
	jle	LBB0_16
## %bb.11:
	addq	%rbx, -48(%rbp)                 ## 8-byte Folded Spill
	shlq	$4, %rbx
	xorl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	%rbx, %rax
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rax), %rax
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	addq	$16, %rbx
	cmpq	%r14, %r15
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	cmpq	$0, 8(%rax,%rbx)
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rsi
	movq	%r12, %rdi
	movq	%r15, %r12
	leaq	-80(%rbp), %r15
	movq	%r15, %rdx
	callq	_e1000_read_flash_word_ich8lan
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	%r15, %rax
	movq	%r12, %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_15
	jmp	LBB0_17
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movq	%r12, %rdi
	callq	*24(%r12)
	testl	%r13d, %r13d
	jne	LBB0_19
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
L_.str.1:                               ## @.str.1
	.asciz	"Could not detect valid bank, assuming bank 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"NVM read error: %d\n"

	.no_dead_strip	_e1000_read_nvm_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_read_nvm_ich8lan
_e1000_read_nvm_ich8lan:                ; @e1000_read_nvm_ich8lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	xzr, [sp, #24]
	ldr	x8, [x0, #8]
	subs	x8, x8, x1
	b.le	LBB0_5
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_5
; %bb.2:
	cmp	x8, x21
	b.lt	LBB0_5
; %bb.3:
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	blr	x8
	add	x1, sp, #24
	mov	x0, x19
	bl	_e1000_valid_nvm_bank_detect_ich8lan
	cbz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	mov	x8, #0
	str	xzr, [sp, #24]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh4:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
	cbz	w22, LBB0_7
LBB0_6:
	str	x22, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
LBB0_10:
	cmp	x21, #1
	b.lt	LBB0_16
; %bb.11:
	add	x23, x8, x22
	lsl	x24, x22, #4
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x25]
	str	x8, [x20], #8
	add	x23, x23, #1
	add	x24, x24, #16
	subs	x21, x21, #1
	b.eq	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x25, x8, x24
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x25, sp, #16
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x23
	bl	_e1000_read_flash_word_ich8lan
	cbz	w0, LBB0_12
; %bb.15:
	mov	x22, x0
	b	LBB0_17
LBB0_16:
	mov	w22, #0
LBB0_17:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	cbnz	w22, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
l_.str.1:                               ; @.str.1
	.asciz	"Could not detect valid bank, assuming bank 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"NVM read error: %d\n"

	.no_dead_strip	_e1000_read_nvm_ich8lan
.subsections_via_symbols
