	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_check_vnic_state   ## -- Begin function qlcnic_83xx_check_vnic_state
	.p2align	4, 0x90
_qlcnic_83xx_check_vnic_state:          ## @qlcnic_83xx_check_vnic_state
	.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, %r14
	movq	8(%rdi), %rbx
	movq	_QLC_83XX_VNIC_STATE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_QLCRDX
	movq	_QLCNIC_DEV_NPAR_OPER@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	cmpq	(%r13), %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rax
	movq	%rax, (%rbx)
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_QLCRDX
	cmpq	(%r13), %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_VNIC_STATE,4,2        ## @QLC_83XX_VNIC_STATE
	.comm	_QLCNIC_DEV_NPAR_OPER,8,3       ## @QLCNIC_DEV_NPAR_OPER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vNIC mode not operational, state check timed out.\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_check_vnic_state   ; -- Begin function qlcnic_83xx_check_vnic_state
	.p2align	2
_qlcnic_83xx_check_vnic_state:          ; @qlcnic_83xx_check_vnic_state
	.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
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _QLC_83XX_VNIC_STATE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QLC_83XX_VNIC_STATE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_QLCRDX
Lloh2:
	adrp	x22, _QLCNIC_DEV_NPAR_OPER@GOTPAGE
Lloh3:
	ldr	x22, [x22, _QLCNIC_DEV_NPAR_OPER@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x8, x8, #1
	str	x8, [x20]
	mov	w0, #1000
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x20
	bl	_QLCRDX
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_1
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_VNIC_STATE,4,2        ; @QLC_83XX_VNIC_STATE
	.comm	_QLCNIC_DEV_NPAR_OPER,8,3       ; @QLCNIC_DEV_NPAR_OPER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vNIC mode not operational, state check timed out.\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
