	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_acquire_swfw_sync_X540
_ixgbe_acquire_swfw_sync_X540:          ## @ixgbe_acquire_swfw_sync_X540
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	%esi, %rdx
	movl	%edx, %eax
	shll	$5, %eax
	movq	_IXGBE_GSSR_EEP_SM@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_IXGBE_GSSR_FLASH_SM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	orl	%eax, %esi
	movslq	%esi, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	orq	%rcx, %r15
	movl	$200, %r13d
	movq	_IXGBE_SWFW_SYNC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ixgbe_get_swfw_sync_semaphore
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	testq	%r15, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_ixgbe_release_swfw_sync_semaphore
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	decq	%r13
	jne	LBB0_4
## %bb.9:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	orq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	testq	%rax, %rbx
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_ixgbe_get_swfw_sync_semaphore
	testq	%rax, %rax
	je	LBB0_11
LBB0_5:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_7:
	movq	%rax, %rbx
LBB0_11:
	orq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_IXGBE_WRITE_REG
	movq	%r14, %rdi
	callq	_ixgbe_release_swfw_sync_semaphore
LBB0_12:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_GSSR_EEP_SM,8,3          ## @IXGBE_GSSR_EEP_SM
	.comm	_IXGBE_GSSR_FLASH_SM,8,3        ## @IXGBE_GSSR_FLASH_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_SWFW_SYNC,4,2            ## @IXGBE_SWFW_SYNC
	.no_dead_strip	_ixgbe_acquire_swfw_sync_X540
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_acquire_swfw_sync_X540
_ixgbe_acquire_swfw_sync_X540:          ; @ixgbe_acquire_swfw_sync_X540
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sxtw	x21, w1
	lsl	w8, w1, #5
	sxtw	x23, w8
Lloh0:
	adrp	x9, _IXGBE_GSSR_EEP_SM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXGBE_GSSR_EEP_SM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _IXGBE_GSSR_FLASH_SM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IXGBE_GSSR_FLASH_SM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x21
	csel	x24, x10, xzr, eq
	orr	w8, w8, w1
	sxtw	x8, w8
	orr	x25, x24, x8
	mov	w26, #200
Lloh6:
	adrp	x22, _IXGBE_SWFW_SYNC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IXGBE_SWFW_SYNC@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ixgbe_get_swfw_sync_semaphore
	cbnz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	tst	x0, x25
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ixgbe_release_swfw_sync_semaphore
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	subs	x26, x26, #1
	b.ne	LBB0_1
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	orr	x8, x24, x23
	tst	x0, x8
	b.eq	LBB0_9
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	bl	_ixgbe_get_swfw_sync_semaphore
	cbz	x0, LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
	mov	x20, x0
LBB0_8:
	orr	x2, x20, x21
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_ixgbe_release_swfw_sync_semaphore
LBB0_9:
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_GSSR_EEP_SM,8,3          ; @IXGBE_GSSR_EEP_SM
	.comm	_IXGBE_GSSR_FLASH_SM,8,3        ; @IXGBE_GSSR_FLASH_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_SWFW_SYNC,4,2            ; @IXGBE_SWFW_SYNC
	.no_dead_strip	_ixgbe_acquire_swfw_sync_X540
.subsections_via_symbols
