	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$2000, %ebx                     ## imm = 0x7D0
	movq	_IXGBE_SWSM_SMBI@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_IXGBE_SWSM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r15)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	decq	%rbx
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	movq	%r14, %rdi
	callq	_ixgbe_release_eeprom_semaphore
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_IXGBE_SWSM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r15)
	je	LBB0_4
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	jmp	LBB0_9
LBB0_4:
	movl	$2000, %r15d                    ## imm = 0x7D0
	movq	_IXGBE_SWSM_SWESMBI@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_IXGBE_SWSM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	orq	(%r12), %rbx
	movq	%r14, %rdi
	callq	_IXGBE_SWSM
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	%r14, %rdi
	callq	_IXGBE_SWSM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r12)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	decq	%r15
	jne	LBB0_5
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	movq	%r14, %rdi
	callq	_ixgbe_release_eeprom_semaphore
LBB0_9:
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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"

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

	.comm	_IXGBE_ERR_EEPROM,4,2           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_SWSM_SWESMBI,8,3         ## @IXGBE_SWSM_SWESMBI
L_.str.2:                               ## @.str.2
	.asciz	"SWESMBI Software EEPROM semaphore 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	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
	mov	w21, #2000
Lloh0:
	adrp	x20, _IXGBE_SWSM_SMBI@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IXGBE_SWSM_SMBI@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_IXGBE_SWSM
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x20]
	tst	x8, x0
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	subs	x21, x21, #1
	b.ne	LBB0_1
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	mov	x0, x19
	bl	_ixgbe_release_eeprom_semaphore
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	mov	x0, x19
	bl	_IXGBE_SWSM
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x20]
	tst	x8, x0
	b.eq	LBB0_5
; %bb.4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_9
LBB0_5:
	mov	w21, #2000
Lloh6:
	adrp	x22, _IXGBE_SWSM_SWESMBI@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IXGBE_SWSM_SWESMBI@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_IXGBE_SWSM
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x22]
	orr	x20, x8, x0
	mov	x0, x19
	bl	_IXGBE_SWSM
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_IXGBE_SWSM
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	subs	x21, x21, #1
	b.ne	LBB0_6
; %bb.8:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	mov	x0, x19
	bl	_ixgbe_release_eeprom_semaphore
LBB0_9:
Lloh10:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.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"

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

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

	.no_dead_strip	_ixgbe_get_eeprom_semaphore
.subsections_via_symbols
