	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_get_swfw_sync_semaphore
_ixgbe_get_swfw_sync_semaphore:         ## @ixgbe_get_swfw_sync_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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
	jmp	LBB0_3
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.5:
	movl	$2000, %ebx                     ## imm = 0x7D0
	movq	_IXGBE_SWFW_REGSMP@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_IXGBE_SWFW_SYNC
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r15)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$50, %edi
	movl	$100, %esi
	callq	_usleep_range
	decq	%rbx
	jne	LBB0_6
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	movq	%r14, %rdi
	callq	_ixgbe_release_swfw_sync_semaphore
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
LBB0_10:
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_SWSM_SMBI,8,3            ## @IXGBE_SWSM_SMBI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Software semaphore SMBI between device drivers not granted.\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_SWFW_REGSMP,8,3          ## @IXGBE_SWFW_REGSMP
L_.str.1:                               ## @.str.1
	.asciz	"REGSMP Software NVM semaphore not granted\n"

	.no_dead_strip	_ixgbe_get_swfw_sync_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_swfw_sync_semaphore
_ixgbe_get_swfw_sync_semaphore:         ; @ixgbe_get_swfw_sync_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	w20, #2000
Lloh0:
	adrp	x21, _IXGBE_SWSM_SMBI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _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, [x21]
	tst	x8, x0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	subs	x20, x20, #1
	b.ne	LBB0_1
	b	LBB0_8
LBB0_3:
	cbz	x20, LBB0_8
; %bb.4:
	mov	w20, #2000
Lloh2:
	adrp	x21, _IXGBE_SWFW_REGSMP@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IXGBE_SWFW_REGSMP@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_IXGBE_SWFW_SYNC
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x21]
	tst	x8, x0
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #50
	mov	w1, #100
	bl	_usleep_range
	subs	x20, x20, #1
	b.ne	LBB0_5
; %bb.7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	mov	x0, x19
	bl	_ixgbe_release_swfw_sync_semaphore
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_9:
Lloh8:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_SWSM_SMBI,8,3            ; @IXGBE_SWSM_SMBI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Software semaphore SMBI between device drivers not granted.\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_SWFW_REGSMP,8,3          ; @IXGBE_SWFW_REGSMP
l_.str.1:                               ; @.str.1
	.asciz	"REGSMP Software NVM semaphore not granted\n"

	.no_dead_strip	_ixgbe_get_swfw_sync_semaphore
.subsections_via_symbols
