	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_write_nvm_ich8lan
_e1000_write_nvm_ich8lan:               ## @e1000_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	subq	%rsi, %rax
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	cmpq	%r12, %rax
	jl	LBB0_3
## %bb.4:
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	*24(%rdi)
	testq	%r12, %r12
	jle	LBB0_11
## %bb.5:
	movq	(%r14), %rax
	cmpq	$1, %r12
	jne	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_7:
	movq	%r12, %rdx
	andq	$-2, %rdx
	movq	%r15, %rcx
	shlq	$4, %rcx
	leaq	(%rcx,%rax), %rsi
	addq	$24, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, -24(%rsi)
	movq	(%rbx,%rcx,8), %rdi
	movq	%rdi, -16(%rsi)
	movl	$1, -8(%rsi)
	movq	8(%rbx,%rcx,8), %rdi
	movq	%rdi, (%rsi)
	addq	$2, %rcx
	addq	$32, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_8
LBB0_9:
	testb	$1, %r12b
	je	LBB0_11
## %bb.10:
	addq	%rcx, %r15
	shlq	$4, %r15
	movl	$1, (%rax,%r15)
	movq	(%rbx,%rcx,8), %rcx
	movq	%rcx, 8(%rax,%r15)
LBB0_11:
	movq	%r14, %rdi
	callq	*16(%r14)
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.no_dead_strip	_e1000_write_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_write_nvm_ich8lan
_e1000_write_nvm_ich8lan:               ; @e1000_write_nvm_ich8lan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	subs	x8, x8, x1
	b.le	LBB0_7
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_7
; %bb.2:
	cmp	x8, x21
	b.lt	LBB0_7
; %bb.3:
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	blr	x8
	cmp	x21, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	x8, [x19]
	add	x8, x8, x22, lsl #4
	add	x8, x8, #8
	mov	w9, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stur	w9, [x8, #-8]
	ldr	x10, [x20], #8
	str	x10, [x8], #16
	subs	x21, x21, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh2:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.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
	.no_dead_strip	_e1000_write_nvm_ich8lan
.subsections_via_symbols
