	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_acquire_swfw_sync        ## -- Begin function ixgbe_acquire_swfw_sync
	.p2align	4, 0x90
_ixgbe_acquire_swfw_sync:               ## @ixgbe_acquire_swfw_sync
	.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
	movl	%esi, %r12d
	shll	$5, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	orl	%esi, %r12d
	movl	$200, %r14d
	movq	_IXGBE_GSSR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ixgbe_get_eeprom_semaphore
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_IXGBE_READ_REG
	movl	%eax, %ebx
	andl	%r12d, %ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ixgbe_release_eeprom_semaphore
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	decl	%r14d
	jne	LBB0_1
## %bb.5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ixgbe_release_swfw_sync
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
LBB0_6:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_3:
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_IXGBE_WRITE_REG
	movq	%r15, %rdi
	callq	_ixgbe_release_eeprom_semaphore
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_GSSR,4,2                 ## @IXGBE_GSSR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_acquire_swfw_sync        ; -- Begin function ixgbe_acquire_swfw_sync
	.p2align	2
_ixgbe_acquire_swfw_sync:               ; @ixgbe_acquire_swfw_sync
	.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	x20, x1
	mov	x19, x0
	orr	w22, w1, w1, lsl #5
	mov	w24, #200
Lloh0:
	adrp	x23, _IXGBE_GSSR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IXGBE_GSSR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ixgbe_get_eeprom_semaphore
	cbnz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ands	w21, w0, w22
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ixgbe_release_eeprom_semaphore
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	subs	w24, w24, #1
	b.ne	LBB0_1
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_ixgbe_release_swfw_sync
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
LBB0_5:
Lloh2:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	orr	w2, w0, w20
	ldr	w1, [x23]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_ixgbe_release_eeprom_semaphore
	mov	w0, #0
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_GSSR,4,2                 ; @IXGBE_GSSR
.subsections_via_symbols
