	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_acquire_eeprom
_ixgbe_acquire_eeprom:                  ## @ixgbe_acquire_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, %r14
	movq	_IXGBE_GSSR_EEP_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	movq	_IXGBE_EEC_REQ@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_EEPROM_GRANT_ATTEMPTS@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jle	LBB0_6
## %bb.3:
	xorl	%r12d, %r12d
	movq	_IXGBE_EEC_GNT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	testq	%rax, (%r15)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$5, %edi
	callq	_udelay
	incq	%r12
	cmpq	(%r13), %r12
	jl	LBB0_4
LBB0_6:
	movq	_IXGBE_EEC_GNT@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_IXGBE_EEC_CS@GOTPCREL(%rip), %rax
	movq	_IXGBE_EEC_SK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	notq	%rcx
	andq	%rcx, %rbx
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	%r14, %rdi
	callq	_IXGBE_WRITE_FLUSH
	movl	$1, %edi
	callq	_udelay
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_IXGBE_EEC_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	movq	_IXGBE_GSSR_EEP_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_GSSR_EEP_SM,4,2          ## @IXGBE_GSSR_EEP_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_EEC_REQ,8,3              ## @IXGBE_EEC_REQ
	.comm	_IXGBE_EEPROM_GRANT_ATTEMPTS,8,3 ## @IXGBE_EEPROM_GRANT_ATTEMPTS
	.comm	_IXGBE_EEC_GNT,8,3              ## @IXGBE_EEC_GNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not acquire EEPROM grant\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEC_CS,8,3               ## @IXGBE_EEC_CS
	.comm	_IXGBE_EEC_SK,8,3               ## @IXGBE_EEC_SK
	.no_dead_strip	_ixgbe_acquire_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_acquire_eeprom
_ixgbe_acquire_eeprom:                  ; @ixgbe_acquire_eeprom
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _IXGBE_GSSR_EEP_SM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IXGBE_GSSR_EEP_SM@GOTPAGEOFF]
	ldr	w1, [x21]
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh4:
	adrp	x22, _IXGBE_EEC_REQ@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IXGBE_EEC_REQ@GOTPAGEOFF]
	ldr	x8, [x22]
	orr	x20, x8, x0
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
Lloh6:
	adrp	x24, _IXGBE_EEPROM_GRANT_ATTEMPTS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IXGBE_EEPROM_GRANT_ATTEMPTS@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh8:
	adrp	x23, _IXGBE_EEC_GNT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IXGBE_EEC_GNT@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	mov	x20, x0
	ldr	x8, [x23]
	tst	x8, x0
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #5
	bl	_udelay
	add	x25, x25, #1
	ldr	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_7:
	ldr	x8, [x23]
	tst	x8, x20
	b.eq	LBB0_10
; %bb.8:
Lloh10:
	adrp	x8, _IXGBE_EEC_CS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_EEC_CS@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _IXGBE_EEC_SK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IXGBE_EEC_SK@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x20, x20, x8
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_WRITE_FLUSH
	mov	w0, #1
	bl	_udelay
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x22]
	bic	x20, x20, x8
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	ldr	x8, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
Lloh18:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_GSSR_EEP_SM,4,2          ; @IXGBE_GSSR_EEP_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_EEC_REQ,8,3              ; @IXGBE_EEC_REQ
	.comm	_IXGBE_EEPROM_GRANT_ATTEMPTS,8,3 ; @IXGBE_EEPROM_GRANT_ATTEMPTS
	.comm	_IXGBE_EEC_GNT,8,3              ; @IXGBE_EEC_GNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not acquire EEPROM grant\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEC_CS,8,3               ; @IXGBE_EEC_CS
	.comm	_IXGBE_EEC_SK,8,3               ; @IXGBE_EEC_SK
	.no_dead_strip	_ixgbe_acquire_eeprom
.subsections_via_symbols
