	.file	"extr_qlcnic_sriov_common.c_qlcnic_sriov_retry_bc_cmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qlcnic_sriov_retry_bc_cmd, @function
qlcnic_sriov_retry_bc_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR QLC_BC_CMD_MAX_RETRY_CNT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	mov	esi, DWORD PTR QLC_83XX_IDC_DEV_STATE[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	call	QLCRDX@PLT
	mov	r8, rax
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	cmp	QWORD PTR QLC_83XX_IDC_DEV_READY[rip], r8
	je	.L7
.L1:
	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
.L7:
	.cfi_restore_state
	mov	edi, 20
	call	msleep@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR QLC_BC_VF_CHANNEL[rip]
	call	clear_bit@PLT
	mov	eax, DWORD PTR QLC_INIT[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR [rbx]
	lea	rdx, 1[rax]
	xor	eax, eax
	mov	QWORD PTR [rbx], rdx
	cmp	rdx, r12
	jle	.L1
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	qlcnic_sriov_retry_bc_cmd, .-qlcnic_sriov_retry_bc_cmd
	.comm	QLC_INIT,4,4
	.comm	QLC_BC_VF_CHANNEL,4,4
	.comm	QLC_BC_CMD_MAX_RETRY_CNT,8,8
	.comm	QLC_83XX_IDC_DEV_STATE,4,4
	.comm	QLC_83XX_IDC_DEV_READY,8,8
	.comm	EIO,4,4
	.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_qlcnic_sriov_common.c_qlcnic_sriov_retry_bc_cmd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_sriov_retry_bc_cmd, %function
qlcnic_sriov_retry_bc_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, .L8
	ldr	r3, .L8+4
	mov	r4, r0
	ldr	r1, [r1]
	ldr	r0, [r0, #4]
	ldr	r6, [r3]
	bl	QLCRDX
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
.L2:
	ldr	r3, .L8+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, #20
	bl	msleep
	ldr	r3, .L8+16
	ldr	r1, [r5, #4]
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r3, [r4]
	ldr	r2, .L8+20
	add	r3, r3, #1
	ldr	r2, [r2]
	cmp	r3, r6
	str	r2, [r5]
	str	r3, [r4]
	bgt	.L2
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	QLC_83XX_IDC_DEV_STATE
	.word	QLC_BC_CMD_MAX_RETRY_CNT
	.word	QLC_83XX_IDC_DEV_READY
	.word	EIO
	.word	QLC_BC_VF_CHANNEL
	.word	QLC_INIT
	.size	qlcnic_sriov_retry_bc_cmd, .-qlcnic_sriov_retry_bc_cmd
	.comm	QLC_INIT,4,4
	.comm	QLC_BC_VF_CHANNEL,4,4
	.comm	QLC_BC_CMD_MAX_RETRY_CNT,4,4
	.comm	QLC_83XX_IDC_DEV_STATE,4,4
	.comm	QLC_83XX_IDC_DEV_READY,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
