	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_retry_bc_cmd
_qlcnic_sriov_retry_bc_cmd:             ## @qlcnic_sriov_retry_bc_cmd
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_QLC_BC_CMD_MAX_RETRY_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	8(%rdi), %edi
	movq	_QLC_83XX_IDC_DEV_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	_QLC_83XX_IDC_DEV_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$20, %edi
	callq	_msleep
	movq	_QLC_BC_VF_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	callq	_clear_bit
	movq	_QLC_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rcx
	leaq	1(%rcx), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	cmpq	%r15, %rcx
	jl	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_BC_CMD_MAX_RETRY_CNT,8,3   ## @QLC_BC_CMD_MAX_RETRY_CNT
	.comm	_QLC_83XX_IDC_DEV_STATE,4,2     ## @QLC_83XX_IDC_DEV_STATE
	.comm	_QLC_83XX_IDC_DEV_READY,8,3     ## @QLC_83XX_IDC_DEV_READY
	.comm	_QLC_BC_VF_CHANNEL,4,2          ## @QLC_BC_VF_CHANNEL
	.comm	_QLC_INIT,4,2                   ## @QLC_INIT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_sriov_retry_bc_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_retry_bc_cmd
_qlcnic_sriov_retry_bc_cmd:             ; @qlcnic_sriov_retry_bc_cmd
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QLC_BC_CMD_MAX_RETRY_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_BC_CMD_MAX_RETRY_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x8, _QLC_83XX_IDC_DEV_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_IDC_DEV_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_QLCRDX
Lloh6:
	adrp	x8, _QLC_83XX_IDC_DEV_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_IDC_DEV_READY@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #20
	bl	_msleep
Lloh9:
	adrp	x8, _QLC_BC_VF_CHANNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_BC_VF_CHANNEL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_clear_bit
Lloh12:
	adrp	x8, _QLC_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLC_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	cmp	x8, x21
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_BC_CMD_MAX_RETRY_CNT,8,3   ; @QLC_BC_CMD_MAX_RETRY_CNT
	.comm	_QLC_83XX_IDC_DEV_STATE,4,2     ; @QLC_83XX_IDC_DEV_STATE
	.comm	_QLC_83XX_IDC_DEV_READY,8,3     ; @QLC_83XX_IDC_DEV_READY
	.comm	_QLC_BC_VF_CHANNEL,4,2          ; @QLC_BC_VF_CHANNEL
	.comm	_QLC_INIT,4,2                   ; @QLC_INIT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_sriov_retry_bc_cmd
.subsections_via_symbols
