	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_read_nvm_eerd              ## -- Begin function igc_read_nvm_eerd
	.p2align	4, 0x90
_igc_read_nvm_eerd:                     ## @igc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	subq	%rsi, %rax
	jle	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	cmpq	%r15, %rax
	jl	LBB0_9
## %bb.3:
	testq	%r15, %r15
	jle	LBB0_7
## %bb.4:
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx), %rsi
	movq	_IGC_NVM_RW_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shlq	%cl, %rsi
	movq	_IGC_NVM_RW_REG_START@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_IGC_EERD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wr32
	movq	_IGC_NVM_POLL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_igc_poll_eerd_eewr_done
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_IGC_EERD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rd32
	movq	_IGC_NVM_RW_REG_DATA@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarq	%cl, %rax
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movq	_IGC_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %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	_IGC_ERR_NVM,4,2                ## @IGC_ERR_NVM
	.comm	_IGC_NVM_RW_ADDR_SHIFT,8,3      ## @IGC_NVM_RW_ADDR_SHIFT
	.comm	_IGC_NVM_RW_REG_START,8,3       ## @IGC_NVM_RW_REG_START
	.comm	_IGC_EERD,4,2                   ## @IGC_EERD
	.comm	_IGC_NVM_POLL_READ,4,2          ## @IGC_NVM_POLL_READ
	.comm	_IGC_NVM_RW_REG_DATA,8,3        ## @IGC_NVM_RW_REG_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_read_nvm_eerd              ; -- Begin function igc_read_nvm_eerd
	.p2align	2
_igc_read_nvm_eerd:                     ; @igc_read_nvm_eerd
	.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_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	x23, _IGC_NVM_RW_ADDR_SHIFT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IGC_NVM_RW_ADDR_SHIFT@GOTPAGEOFF]
Lloh2:
	adrp	x24, _IGC_NVM_RW_REG_START@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IGC_NVM_RW_REG_START@GOTPAGEOFF]
Lloh4:
	adrp	x25, _IGC_EERD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IGC_EERD@GOTPAGEOFF]
Lloh6:
	adrp	x26, _IGC_NVM_POLL_READ@GOTPAGE
Lloh7:
	ldr	x26, [x26, _IGC_NVM_POLL_READ@GOTPAGEOFF]
Lloh8:
	adrp	x27, _IGC_NVM_RW_REG_DATA@GOTPAGE
Lloh9:
	ldr	x27, [x27, _IGC_NVM_RW_REG_DATA@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsl	x8, x21, x8
	ldr	x9, [x24]
	add	x1, x8, x9
	ldr	w0, [x25]
	bl	_wr32
	ldr	w1, [x26]
	mov	x0, x22
	bl	_igc_poll_eerd_eewr_done
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_rd32
	ldr	x8, [x27]
	asr	x8, x0, x8
	str	x8, [x19], #8
	add	x21, x21, #1
	subs	x20, x20, #1
	b.ne	LBB0_5
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
Lloh12:
	adrp	x8, _IGC_ERR_NVM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IGC_ERR_NVM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_IGC_ERR_NVM,4,2                ; @IGC_ERR_NVM
	.comm	_IGC_NVM_RW_ADDR_SHIFT,8,3      ; @IGC_NVM_RW_ADDR_SHIFT
	.comm	_IGC_NVM_RW_REG_START,8,3       ; @IGC_NVM_RW_REG_START
	.comm	_IGC_EERD,4,2                   ; @IGC_EERD
	.comm	_IGC_NVM_POLL_READ,4,2          ; @IGC_NVM_POLL_READ
	.comm	_IGC_NVM_RW_REG_DATA,8,3        ; @IGC_NVM_RW_REG_DATA
.subsections_via_symbols
