	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_ready_nvm_eeprom
_igb_ready_nvm_eeprom:                  ## @igb_ready_nvm_eeprom
	.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, %r15
	movq	_E1000_EECD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	(%r15), %rcx
	movq	_e1000_nvm_eeprom_spi@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.1:
	movq	_E1000_EECD_CS@GOTPCREL(%rip), %rcx
	movq	_E1000_EECD_SK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_wr32
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wrfl
	movl	$1, %edi
	callq	_udelay
	movq	_NVM_MAX_RETRY_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	movq	_NVM_RDSR_OPCODE_SPI@GOTPCREL(%rip), %r12
	movq	_NVM_STATUS_RDY_SPI@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	8(%r15), %edx
	movq	%r15, %rdi
	callq	_igb_shift_out_eec_bits
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_igb_shift_in_eec_bits
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %edi
	callq	_udelay
	movq	%r15, %rdi
	callq	_igb_standby_nvm
	decq	%rbx
	jne	LBB0_3
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_EECD,4,2                 ## @E1000_EECD
	.comm	_e1000_nvm_eeprom_spi,8,3       ## @e1000_nvm_eeprom_spi
	.comm	_E1000_EECD_CS,4,2              ## @E1000_EECD_CS
	.comm	_E1000_EECD_SK,4,2              ## @E1000_EECD_SK
	.comm	_NVM_MAX_RETRY_SPI,8,3          ## @NVM_MAX_RETRY_SPI
	.comm	_NVM_RDSR_OPCODE_SPI,4,2        ## @NVM_RDSR_OPCODE_SPI
	.comm	_NVM_STATUS_RDY_SPI,4,2         ## @NVM_STATUS_RDY_SPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI NVM Status error\n"

	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
	.no_dead_strip	_igb_ready_nvm_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_ready_nvm_eeprom
_igb_ready_nvm_eeprom:                  ; @igb_ready_nvm_eeprom
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _E1000_EECD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _E1000_EECD@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rd32
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _e1000_nvm_eeprom_spi@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_nvm_eeprom_spi@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _E1000_EECD_CS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_EECD_CS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _E1000_EECD_SK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _E1000_EECD_SK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_wr32
	bl	_wrfl
	mov	w0, #1
	bl	_udelay
Lloh11:
	adrp	x8, _NVM_MAX_RETRY_SPI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVM_MAX_RETRY_SPI@GOTPAGEOFF]
Lloh13:
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.2:
Lloh14:
	adrp	x21, _NVM_RDSR_OPCODE_SPI@GOTPAGE
Lloh15:
	ldr	x21, [x21, _NVM_RDSR_OPCODE_SPI@GOTPAGEOFF]
Lloh16:
	adrp	x22, _NVM_STATUS_RDY_SPI@GOTPAGE
Lloh17:
	ldr	x22, [x22, _NVM_STATUS_RDY_SPI@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_igb_shift_out_eec_bits
	mov	x0, x19
	mov	w1, #8
	bl	_igb_shift_in_eec_bits
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	bl	_igb_standby_nvm
	subs	x20, x20, #1
	b.ne	LBB0_3
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
Lloh20:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_EECD,4,2                 ; @E1000_EECD
	.comm	_e1000_nvm_eeprom_spi,8,3       ; @e1000_nvm_eeprom_spi
	.comm	_E1000_EECD_CS,4,2              ; @E1000_EECD_CS
	.comm	_E1000_EECD_SK,4,2              ; @E1000_EECD_SK
	.comm	_NVM_MAX_RETRY_SPI,8,3          ; @NVM_MAX_RETRY_SPI
	.comm	_NVM_RDSR_OPCODE_SPI,4,2        ; @NVM_RDSR_OPCODE_SPI
	.comm	_NVM_STATUS_RDY_SPI,4,2         ; @NVM_STATUS_RDY_SPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI NVM Status error\n"

	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
	.no_dead_strip	_igb_ready_nvm_eeprom
.subsections_via_symbols
