	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_spi_eeprom_ready
_e1000_spi_eeprom_ready:                ## @e1000_spi_eeprom_ready
	.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, %r14
	xorl	%ebx, %ebx
	movq	_EEPROM_RDSR_OPCODE_SPI@GOTPCREL(%rip), %r15
	movq	_EEPROM_STATUS_RDY_SPI@GOTPCREL(%rip), %r12
	movq	_EEPROM_MAX_RETRY_SPI@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_e1000_shift_out_ee_bits
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_e1000_shift_in_ee_bits
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$5, %edi
	callq	_udelay
	addq	$5, %rbx
	movq	%r14, %rdi
	callq	_e1000_standby_eeprom
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_1
## %bb.4:
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_6:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_2:
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_RDSR_OPCODE_SPI,4,2     ## @EEPROM_RDSR_OPCODE_SPI
	.comm	_EEPROM_STATUS_RDY_SPI,4,2      ## @EEPROM_STATUS_RDY_SPI
	.comm	_EEPROM_MAX_RETRY_SPI,8,3       ## @EEPROM_MAX_RETRY_SPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI EEPROM Status error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ## @E1000_ERR_EEPROM
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_spi_eeprom_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_spi_eeprom_ready
_e1000_spi_eeprom_ready:                ; @e1000_spi_eeprom_ready
	.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
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x21, _EEPROM_RDSR_OPCODE_SPI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EEPROM_RDSR_OPCODE_SPI@GOTPAGEOFF]
Lloh2:
	adrp	x22, _EEPROM_STATUS_RDY_SPI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EEPROM_STATUS_RDY_SPI@GOTPAGEOFF]
Lloh4:
	adrp	x23, _EEPROM_MAX_RETRY_SPI@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EEPROM_MAX_RETRY_SPI@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_e1000_shift_out_ee_bits
	mov	x0, x19
	mov	w1, #8
	bl	_e1000_shift_in_ee_bits
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #5
	bl	_udelay
	add	x20, x20, #5
	mov	x0, x19
	bl	_e1000_standby_eeprom
	ldr	x8, [x23]
	cmp	x20, x8
	b.lt	LBB0_1
; %bb.3:
	cmp	x20, x8
	b.ge	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x23]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh11:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_RDSR_OPCODE_SPI,4,2     ; @EEPROM_RDSR_OPCODE_SPI
	.comm	_EEPROM_STATUS_RDY_SPI,4,2      ; @EEPROM_STATUS_RDY_SPI
	.comm	_EEPROM_MAX_RETRY_SPI,8,3       ; @EEPROM_MAX_RETRY_SPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI EEPROM Status error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ; @E1000_ERR_EEPROM
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_spi_eeprom_ready
.subsections_via_symbols
