	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_get_eeprom_semaphore
_ixgbe_get_eeprom_semaphore:            ## @ixgbe_get_eeprom_semaphore
	.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_ERR_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$2000, %ebx                     ## imm = 0x7D0
	movq	_IXGBE_SWSM@GOTPCREL(%rip), %r12
	movq	_IXGBE_SWSM_SMBI@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r13)
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$50, %edi
	callq	_udelay
	decq	%rbx
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	movq	%r15, %rdi
	callq	_ixgbe_release_eeprom_semaphore
	movl	$50, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r13)
	je	LBB0_5
## %bb.4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	jmp	LBB0_10
LBB0_5:
	movl	$2000, %ebx                     ## imm = 0x7D0
	movq	_IXGBE_SWSM_SWESMBI@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	orq	(%r13), %rax
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_IXGBE_WRITE_REG
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r13)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$50, %edi
	callq	_udelay
	decq	%rbx
	jne	LBB0_6
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	movq	%r15, %rdi
	callq	_ixgbe_release_eeprom_semaphore
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_ERR_EEPROM,8,3           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_SWSM,4,2                 ## @IXGBE_SWSM
	.comm	_IXGBE_SWSM_SMBI,8,3            ## @IXGBE_SWSM_SMBI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver can't access the Eeprom - SMBI Semaphore not granted.\n"

	.comm	_IXGBE_SWSM_SWESMBI,8,3         ## @IXGBE_SWSM_SWESMBI
L_.str.1:                               ## @.str.1
	.asciz	"SWESMBI Software EEPROM semaphore not granted.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Software semaphore SMBI between device drivers not granted.\n"

	.no_dead_strip	_ixgbe_get_eeprom_semaphore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_get_eeprom_semaphore
_ixgbe_get_eeprom_semaphore:            ; @ixgbe_get_eeprom_semaphore
	.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_ERR_EEPROM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	w24, #2000
Lloh2:
	adrp	x22, _IXGBE_SWSM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IXGBE_SWSM@GOTPAGEOFF]
Lloh4:
	adrp	x23, _IXGBE_SWSM_SMBI@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IXGBE_SWSM_SMBI@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x23]
	tst	x8, x0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #50
	bl	_udelay
	subs	x24, x24, #1
	b.ne	LBB0_1
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	mov	x0, x19
	bl	_ixgbe_release_eeprom_semaphore
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x23]
	and	x8, x8, x0
	cmp	x8, #0
	ccmp	x20, #0, #4, ne
	b.ne	LBB0_9
LBB0_4:
	mov	w20, #2000
Lloh8:
	adrp	x23, _IXGBE_SWSM_SWESMBI@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IXGBE_SWSM_SWESMBI@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x23]
	orr	x2, x8, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x23]
	tst	x8, x0
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #50
	bl	_udelay
	subs	x20, x20, #1
	b.ne	LBB0_5
; %bb.7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	mov	x0, x19
	bl	_ixgbe_release_eeprom_semaphore
	ldr	x20, [x21]
	b	LBB0_10
LBB0_8:
	mov	x20, #0
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_10:
	mov	x0, x20
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_ERR_EEPROM,8,3           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_SWSM,4,2                 ; @IXGBE_SWSM
	.comm	_IXGBE_SWSM_SMBI,8,3            ; @IXGBE_SWSM_SMBI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver can't access the Eeprom - SMBI Semaphore not granted.\n"

	.comm	_IXGBE_SWSM_SWESMBI,8,3         ; @IXGBE_SWSM_SWESMBI
l_.str.1:                               ; @.str.1
	.asciz	"SWESMBI Software EEPROM semaphore not granted.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Software semaphore SMBI between device drivers not granted.\n"

	.no_dead_strip	_ixgbe_get_eeprom_semaphore
.subsections_via_symbols
