	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_check_dev_ready
_qlcnic_sriov_check_dev_ready:          ## @qlcnic_sriov_check_dev_ready
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_QLC_BC_CMD_MAX_RETRY_CNT@GOTPCREL(%rip), %r14
	movq	_QLC_83XX_IDC_DEV_STATE@GOTPCREL(%rip), %r15
	movq	_QLC_83XX_IDC_DEV_READY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	(%r14), %rax
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	callq	_QLCRDX
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	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	_EIO,4,2                        ## @EIO
	.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
	.no_dead_strip	_qlcnic_sriov_check_dev_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_check_dev_ready
_qlcnic_sriov_check_dev_ready:          ; @qlcnic_sriov_check_dev_ready
	.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	x19, x0
Lloh0:
	adrp	x20, _QLC_BC_CMD_MAX_RETRY_CNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _QLC_BC_CMD_MAX_RETRY_CNT@GOTPAGEOFF]
Lloh2:
	adrp	x21, _QLC_83XX_IDC_DEV_STATE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _QLC_83XX_IDC_DEV_STATE@GOTPAGEOFF]
Lloh4:
	adrp	x22, _QLC_83XX_IDC_DEV_READY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _QLC_83XX_IDC_DEV_READY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_QLCRDX
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_BC_CMD_MAX_RETRY_CNT,8,3   ; @QLC_BC_CMD_MAX_RETRY_CNT
	.comm	_EIO,4,2                        ; @EIO
	.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
	.no_dead_strip	_qlcnic_sriov_check_dev_ready
.subsections_via_symbols
