	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_write_nvm_eewr_82571
_e1000_write_nvm_eewr_82571:            ## @e1000_write_nvm_eewr_82571
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	subq	%rsi, %rax
	jle	LBB0_9
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	cmpq	%rdx, %rax
	jl	LBB0_9
## %bb.3:
	testq	%rdx, %rdx
	jle	LBB0_11
## %bb.4:
	movq	%rdi, %rbx
	movq	_E1000_NVM_POLL_WRITE@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r13
	movq	_E1000_NVM_RW_REG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_E1000_NVM_RW_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_E1000_NVM_RW_REG_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1000e_poll_eerd_eewr_done
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %ecx
	shlq	%cl, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rsi
	orq	%r13, %rsi
	orq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	_EEWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ew32
	movq	%r14, %r12
	movl	(%r14), %esi
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_e1000e_poll_eerd_eewr_done
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%r15, %rdx
	movq	%r14, %rbx
	movq	%r12, %r14
	jne	LBB0_5
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_10:
	addq	$40, %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	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,8,3              ## @E1000_ERR_NVM
	.comm	_E1000_NVM_RW_REG_DATA,8,3      ## @E1000_NVM_RW_REG_DATA
	.comm	_E1000_NVM_RW_ADDR_SHIFT,8,3    ## @E1000_NVM_RW_ADDR_SHIFT
	.comm	_E1000_NVM_RW_REG_START,8,3     ## @E1000_NVM_RW_REG_START
	.comm	_E1000_NVM_POLL_WRITE,4,2       ## @E1000_NVM_POLL_WRITE
	.comm	_EEWR,4,2                       ## @EEWR
	.no_dead_strip	_e1000_write_nvm_eewr_82571
.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_eewr_82571
_e1000_write_nvm_eewr_82571:            ; @e1000_write_nvm_eewr_82571
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	subs	x8, x8, x1
	b.le	LBB0_9
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_9
; %bb.2:
	cmp	x8, x20
	b.lt	LBB0_9
; %bb.3:
	cmp	x20, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _E1000_NVM_RW_REG_START@GOTPAGE
Lloh1:
	ldr	x25, [x25, _E1000_NVM_RW_REG_START@GOTPAGEOFF]
Lloh2:
	adrp	x26, _E1000_NVM_POLL_WRITE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _E1000_NVM_POLL_WRITE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19]
Lloh4:
	adrp	x8, _E1000_NVM_RW_REG_DATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E1000_NVM_RW_REG_DATA@GOTPAGEOFF]
Lloh6:
	ldr	x24, [x8]
Lloh7:
	adrp	x8, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x27, [x8]
	ldr	x23, [x25]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_e1000e_poll_eerd_eewr_done
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x28, x24
	lsl	x9, x21, x27
	orr	x8, x9, x8
	orr	x1, x8, x23
Lloh10:
	adrp	x8, _EEWR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEWR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_ew32
	ldr	w1, [x26]
	mov	x0, x22
	bl	_e1000e_poll_eerd_eewr_done
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	add	x19, x19, #8
	subs	x20, x20, #1
	b.ne	LBB0_5
LBB0_8:
	mov	x0, #0
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh15:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,8,3              ; @E1000_ERR_NVM
	.comm	_E1000_NVM_RW_REG_DATA,8,3      ; @E1000_NVM_RW_REG_DATA
	.comm	_E1000_NVM_RW_ADDR_SHIFT,8,3    ; @E1000_NVM_RW_ADDR_SHIFT
	.comm	_E1000_NVM_RW_REG_START,8,3     ; @E1000_NVM_RW_REG_START
	.comm	_E1000_NVM_POLL_WRITE,4,2       ; @E1000_NVM_POLL_WRITE
	.comm	_EEWR,4,2                       ; @EEWR
	.no_dead_strip	_e1000_write_nvm_eewr_82571
.subsections_via_symbols
