	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_read_nvm_eerd           ## -- Begin function e1000e_read_nvm_eerd
	.p2align	4, 0x90
_e1000e_read_nvm_eerd:                  ## @e1000e_read_nvm_eerd
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	subq	%rsi, %rax
	jle	LBB0_10
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.2:
	cmpq	%r12, %rax
	jl	LBB0_10
## %bb.3:
	testq	%r12, %r12
	jle	LBB0_8
## %bb.4:
	movq	%rdi, %r13
	movq	_EERD@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rsi
	movq	_E1000_NVM_RW_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shlq	%cl, %rsi
	movq	_E1000_NVM_RW_REG_START@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%rbx, %r15
	movl	(%rbx), %edi
	callq	_ew32
	movq	_E1000_NVM_POLL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_e1000e_poll_eerd_eewr_done
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rbx
	movl	(%r15), %edi
	callq	_er32
	movq	_E1000_NVM_RW_REG_DATA@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarq	%cl, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_5
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_e_dbg
	jmp	LBB0_9
	.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_ADDR_SHIFT,8,3    ## @E1000_NVM_RW_ADDR_SHIFT
	.comm	_E1000_NVM_RW_REG_START,8,3     ## @E1000_NVM_RW_REG_START
	.comm	_EERD,4,2                       ## @EERD
	.comm	_E1000_NVM_POLL_READ,4,2        ## @E1000_NVM_POLL_READ
L_.str.1:                               ## @.str.1
	.asciz	"NVM read error: %d\n"

	.comm	_E1000_NVM_RW_REG_DATA,8,3      ## @E1000_NVM_RW_REG_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_read_nvm_eerd           ; -- Begin function e1000e_read_nvm_eerd
	.p2align	2
_e1000e_read_nvm_eerd:                  ; @e1000e_read_nvm_eerd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	subs	x8, x8, x1
	b.le	LBB0_8
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_8
; %bb.2:
	cmp	x8, x20
	b.lt	LBB0_8
; %bb.3:
	cmp	x20, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _E1000_NVM_RW_REG_START@GOTPAGE
Lloh3:
	ldr	x25, [x25, _E1000_NVM_RW_REG_START@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EERD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EERD@GOTPAGEOFF]
Lloh6:
	adrp	x27, _E1000_NVM_POLL_READ@GOTPAGE
Lloh7:
	ldr	x27, [x27, _E1000_NVM_POLL_READ@GOTPAGEOFF]
Lloh8:
	adrp	x28, _E1000_NVM_RW_REG_DATA@GOTPAGE
Lloh9:
	ldr	x28, [x28, _E1000_NVM_RW_REG_DATA@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x8, x21, x8
	ldr	x9, [x25]
	add	x1, x8, x9
	ldr	w0, [x26]
	bl	_ew32
	ldr	w1, [x27]
	mov	x0, x22
	bl	_e1000e_poll_eerd_eewr_done
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_er32
	ldr	x8, [x28]
	asr	x8, x0, x8
	str	x8, [x19], #8
	add	x21, x21, #1
	subs	x20, x20, #1
	b.ne	LBB0_5
LBB0_7:
	mov	x23, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh12:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	neg	x23, x8
LBB0_9:
	mov	x0, x23
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x23, x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	b	LBB0_9
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.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_ADDR_SHIFT,8,3    ; @E1000_NVM_RW_ADDR_SHIFT
	.comm	_E1000_NVM_RW_REG_START,8,3     ; @E1000_NVM_RW_REG_START
	.comm	_EERD,4,2                       ; @EERD
	.comm	_E1000_NVM_POLL_READ,4,2        ; @E1000_NVM_POLL_READ
l_.str.1:                               ; @.str.1
	.asciz	"NVM read error: %d\n"

	.comm	_E1000_NVM_RW_REG_DATA,8,3      ; @E1000_NVM_RW_REG_DATA
.subsections_via_symbols
