	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_nvm_spi               ## -- Begin function igb_read_nvm_spi
	.p2align	4, 0x90
_igb_read_nvm_spi:                      ## @igb_read_nvm_spi
	.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_3
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	cmpq	%r15, %rax
	jl	LBB0_3
## %bb.4:
	movq	%rcx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_NVM_READ_OPCODE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	*16(%rdi)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movq	%r12, %rdi
	callq	_igb_ready_nvm_eeprom
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r12, %rdi
	callq	_igb_standby_nvm
	movl	12(%r12), %edx
	xorl	%esi, %esi
	cmpl	$8, 8(%r12)
	movl	$0, %eax
	jne	LBB0_8
## %bb.7:
	movq	_NVM_A8_OPCODE_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	cmpq	$127, %r13
	cmovgq	%rax, %rsi
	orq	-48(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	callq	_igb_shift_out_eec_bits
	addq	%r13, %r13
	movl	8(%r12), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_igb_shift_out_eec_bits
	testq	%r15, %r15
	jle	LBB0_11
## %bb.9:
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_igb_shift_in_eec_bits
	movq	%rax, %rcx
	sarq	$8, %rcx
	shlq	$8, %rax
	orq	%rcx, %rax
	movq	%rax, (%r13,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	callq	*24(%r12)
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_READ_OPCODE_SPI,8,3        ## @NVM_READ_OPCODE_SPI
	.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
	.comm	_NVM_A8_OPCODE_SPI,8,3          ## @NVM_A8_OPCODE_SPI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_nvm_spi               ; -- Begin function igb_read_nvm_spi
	.p2align	2
_igb_read_nvm_spi:                      ; @igb_read_nvm_spi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	subs	x8, x8, x1
	b.le	LBB0_8
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_8
; %bb.2:
	cmp	x8, x21
	b.lt	LBB0_8
; %bb.3:
	mov	x20, x3
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NVM_READ_OPCODE_SPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVM_READ_OPCODE_SPI@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	x8, [x0, #16]
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_igb_ready_nvm_eeprom
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_igb_standby_nvm
	ldp	w8, w2, [x19, #8]
	cmp	w8, #8
	mov	w8, #127
	ccmp	x23, x8, #4, eq
Lloh3:
	adrp	x8, _NVM_A8_OPCODE_SPI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVM_A8_OPCODE_SPI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	csel	x8, x8, xzr, gt
	orr	x1, x8, x24
	mov	x0, x19
	bl	_igb_shift_out_eec_bits
	lsl	x1, x23, #1
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_igb_shift_out_eec_bits
	cmp	x21, #1
	b.lt	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #16
	bl	_igb_shift_in_eec_bits
	asr	x8, x0, #8
	orr	x8, x8, x0, lsl #8
	str	x8, [x20], #8
	subs	x21, x21, #1
	b.ne	LBB0_6
LBB0_7:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
Lloh8:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_READ_OPCODE_SPI,8,3        ; @NVM_READ_OPCODE_SPI
	.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
	.comm	_NVM_A8_OPCODE_SPI,8,3          ; @NVM_A8_OPCODE_SPI
.subsections_via_symbols
