	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_check_npar_opertional
_qlcnic_check_npar_opertional:          ## @qlcnic_check_npar_opertional
	.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	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movq	_QLCNIC_DEV_NPAR_OPER_TIMEO@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_QLCNIC_CRB_DEV_NPAR_STATE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_QLC_SHARED_REG_RD32
	movq	_QLCNIC_DEV_NPAR_OPER@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.4:
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_5:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_QLC_SHARED_REG_RD32
	cmpq	(%r13), %rax
	jne	LBB0_2
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DEV_NPAR_OPER_TIMEO,8,3 ## @QLCNIC_DEV_NPAR_OPER_TIMEO
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_CRB_DEV_NPAR_STATE,4,2  ## @QLCNIC_CRB_DEV_NPAR_STATE
	.comm	_QLCNIC_DEV_NPAR_OPER,8,3       ## @QLCNIC_DEV_NPAR_OPER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting for NPAR state to operational timeout\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_check_npar_opertional
_qlcnic_check_npar_opertional:          ; @qlcnic_check_npar_opertional
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _QLCNIC_DEV_NPAR_OPER_TIMEO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_DEV_NPAR_OPER_TIMEO@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x21, _QLCNIC_CRB_DEV_NPAR_STATE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _QLCNIC_CRB_DEV_NPAR_STATE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_QLC_SHARED_REG_RD32
Lloh8:
	adrp	x22, _QLCNIC_DEV_NPAR_OPER@GOTPAGE
Lloh9:
	ldr	x22, [x22, _QLCNIC_DEV_NPAR_OPER@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	cbnz	x20, LBB0_6
LBB0_3:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	subs	x20, x20, #1
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1000
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_QLC_SHARED_REG_RD32
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DEV_NPAR_OPER_TIMEO,8,3 ; @QLCNIC_DEV_NPAR_OPER_TIMEO
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_CRB_DEV_NPAR_STATE,4,2  ; @QLCNIC_CRB_DEV_NPAR_STATE
	.comm	_QLCNIC_DEV_NPAR_OPER,8,3       ; @QLCNIC_DEV_NPAR_OPER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting for NPAR state to operational timeout\n"

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