	.file	"extr_ixgbe_x540.c_ixgbe_get_swfw_sync_semaphore.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Software semaphore SMBI between device drivers not granted.\n"
	.text
	.p2align 4
	.type	ixgbe_get_swfw_sync_semaphore, @function
ixgbe_get_swfw_sync_semaphore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR IXGBE_ERR_EEPROM[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, 2000
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, 50
	call	udelay@PLT
	sub	rbx, 1
	je	.L20
.L3:
	mov	esi, DWORD PTR IXGBE_SWSM[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	test	QWORD PTR IXGBE_SWSM_SMBI[rip], rax
	jne	.L21
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	hw_dbg@PLT
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	test	r12, r12
	je	.L2
	mov	ebx, 2000
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, 50
	call	udelay@PLT
	sub	rbx, 1
	je	.L1
.L5:
	mov	esi, DWORD PTR IXGBE_SWFW_SYNC[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	test	QWORD PTR IXGBE_SWFW_REGSMP[rip], rax
	jne	.L22
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgbe_get_swfw_sync_semaphore, .-ixgbe_get_swfw_sync_semaphore
	.comm	IXGBE_SWSM_SMBI,8,8
	.comm	IXGBE_SWSM,4,4
	.comm	IXGBE_SWFW_SYNC,4,4
	.comm	IXGBE_SWFW_REGSMP,8,8
	.comm	IXGBE_ERR_EEPROM,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ixgbe_x540.c_ixgbe_get_swfw_sync_semaphore.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Software semaphore SMBI between device drivers not "
	.ascii	"granted.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_get_swfw_sync_semaphore, %function
ixgbe_get_swfw_sync_semaphore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #2000
	mov	r5, r0
	ldr	r8, .L23+4
	ldr	r6, [r3]
	ldr	r7, .L23+8
	b	.L3
.L21:
	mov	r0, #50
	bl	udelay
	subs	r4, r4, #1
	beq	.L20
.L3:
	mov	r0, r5
	ldr	r1, [r8]
	bl	IXGBE_READ_REG
	ldr	r3, [r7]
	tst	r0, r3
	bne	.L21
.L2:
	mov	r0, r5
	ldr	r1, .L23+12
	bl	hw_dbg
	mov	r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	cmp	r6, #0
	beq	.L2
	mov	r4, #2000
	ldr	r8, .L23+16
	ldr	r7, .L23+20
	b	.L5
.L22:
	mov	r0, #50
	bl	udelay
	subs	r4, r4, #1
	beq	.L1
.L5:
	mov	r0, r5
	ldr	r1, [r8]
	bl	IXGBE_READ_REG
	ldr	r3, [r7]
	tst	r0, r3
	bne	.L22
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	IXGBE_ERR_EEPROM
	.word	IXGBE_SWSM
	.word	IXGBE_SWSM_SMBI
	.word	.LC0
	.word	IXGBE_SWFW_SYNC
	.word	IXGBE_SWFW_REGSMP
	.size	ixgbe_get_swfw_sync_semaphore, .-ixgbe_get_swfw_sync_semaphore
	.comm	IXGBE_SWSM_SMBI,4,4
	.comm	IXGBE_SWSM,4,4
	.comm	IXGBE_SWFW_SYNC,4,4
	.comm	IXGBE_SWFW_REGSMP,4,4
	.comm	IXGBE_ERR_EEPROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
