	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_ready_eeprom
_ixgbe_ready_eeprom:                    ## @ixgbe_ready_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	_IXGBE_EEPROM_MAX_RETRY_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	_IXGBE_EEPROM_RDSR_OPCODE_SPI@GOTPCREL(%rip), %r13
	movq	_IXGBE_EEPROM_OPCODE_BITS@GOTPCREL(%rip), %r14
	movq	_IXGBE_EEPROM_STATUS_RDY_SPI@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_ixgbe_shift_out_eeprom_bits
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_ixgbe_shift_in_eeprom_bits
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, %edi
	callq	_udelay
	movq	%r15, %rdi
	callq	_ixgbe_standby_eeprom
	addq	$5, %rbx
	movq	_IXGBE_EEPROM_MAX_RETRY_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	_IXGBE_EEPROM_MAX_RETRY_SPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	cmpq	%rax, %rbx
	movl	$0, %eax
	jl	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_EEPROM_MAX_RETRY_SPI,8,3 ## @IXGBE_EEPROM_MAX_RETRY_SPI
	.comm	_IXGBE_EEPROM_RDSR_OPCODE_SPI,4,2 ## @IXGBE_EEPROM_RDSR_OPCODE_SPI
	.comm	_IXGBE_EEPROM_OPCODE_BITS,4,2   ## @IXGBE_EEPROM_OPCODE_BITS
	.comm	_IXGBE_EEPROM_STATUS_RDY_SPI,4,2 ## @IXGBE_EEPROM_STATUS_RDY_SPI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI EEPROM Status error\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ## @IXGBE_ERR_EEPROM
	.no_dead_strip	_ixgbe_ready_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_ready_eeprom
_ixgbe_ready_eeprom:                    ; @ixgbe_ready_eeprom
	.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
Lloh0:
	adrp	x21, _IXGBE_EEPROM_MAX_RETRY_SPI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IXGBE_EEPROM_MAX_RETRY_SPI@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x22, _IXGBE_EEPROM_RDSR_OPCODE_SPI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IXGBE_EEPROM_RDSR_OPCODE_SPI@GOTPAGEOFF]
Lloh4:
	adrp	x23, _IXGBE_EEPROM_OPCODE_BITS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IXGBE_EEPROM_OPCODE_BITS@GOTPAGEOFF]
Lloh6:
	adrp	x24, _IXGBE_EEPROM_STATUS_RDY_SPI@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IXGBE_EEPROM_STATUS_RDY_SPI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ixgbe_shift_out_eeprom_bits
	mov	x0, x19
	mov	w1, #8
	bl	_ixgbe_shift_in_eeprom_bits
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	bl	_ixgbe_standby_eeprom
	add	x20, x20, #5
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh10:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_9:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_EEPROM_MAX_RETRY_SPI,8,3 ; @IXGBE_EEPROM_MAX_RETRY_SPI
	.comm	_IXGBE_EEPROM_RDSR_OPCODE_SPI,4,2 ; @IXGBE_EEPROM_RDSR_OPCODE_SPI
	.comm	_IXGBE_EEPROM_OPCODE_BITS,4,2   ; @IXGBE_EEPROM_OPCODE_BITS
	.comm	_IXGBE_EEPROM_STATUS_RDY_SPI,4,2 ; @IXGBE_EEPROM_STATUS_RDY_SPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI EEPROM Status error\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ; @IXGBE_ERR_EEPROM
	.no_dead_strip	_ixgbe_ready_eeprom
.subsections_via_symbols
