	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_vnic_opmode ## -- Begin function qlcnic_83xx_config_vnic_opmode
	.p2align	4, 0x90
_qlcnic_83xx_config_vnic_opmode:        ## @qlcnic_83xx_config_vnic_opmode
	.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	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	32(%rdi), %r15
	callq	_qlcnic_get_func_no
	movq	24(%rbx), %rdi
	movq	_QLC_83XX_DRV_OP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movq	_QLC_83XX_DEFAULT_OPMODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_qlcnic_83xx_init_mgmt_vnic@GOTPCREL(%rip), %rax
	movq	_qlcnic_83xx_idc_ready_state_entry@GOTPCREL(%rip), %rdx
	movl	$130, %ecx
	jmp	LBB0_5
LBB0_2:
	movl	24(%r14), %esi
	movq	%rax, %rdi
	callq	_QLC_83XX_GET_FUNC_PRIVILEGE
	leaq	-128(%rax), %rcx
	cmpq	$3, %rcx
	jae	LBB0_3
## %bb.4:
	subl	$-128, %ecx
	leaq	l_switch.table.qlcnic_83xx_config_vnic_opmode(%rip), %rdx
	movq	-1024(%rdx,%rax,8), %rdx
	leaq	l_switch.table.qlcnic_83xx_config_vnic_opmode.1(%rip), %rsi
	movq	-1024(%rsi,%rax,8), %rax
LBB0_5:
	movl	%ecx, (%r14)
	movq	(%rdx), %rcx
	movq	%rcx, 16(%r14)
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_QLC_83XX_ESWITCH_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, 4(%r14)
	je	LBB0_7
## %bb.6:
	orl	%eax, 4(%rbx)
	movl	$1, %eax
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_7:
	notl	%eax
	andl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, (%rbx)
LBB0_9:
	movq	_QLCNIC_DEV_NPAR_NON_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_QLCNIC_DEV_NPAR_OPER_TIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ## @QLC_83XX_DRV_OP_MODE
	.comm	_QLC_83XX_DEFAULT_OPMODE,8,3    ## @QLC_83XX_DEFAULT_OPMODE
	.comm	_qlcnic_83xx_idc_ready_state_entry,8,3 ## @qlcnic_83xx_idc_ready_state_entry
	.comm	_qlcnic_83xx_init_non_privileged_vnic,4,2 ## @qlcnic_83xx_init_non_privileged_vnic
	.comm	_qlcnic_83xx_idc_vnic_pf_entry,8,3 ## @qlcnic_83xx_idc_vnic_pf_entry
	.comm	_qlcnic_83xx_init_privileged_vnic,4,2 ## @qlcnic_83xx_init_privileged_vnic
	.comm	_qlcnic_83xx_init_mgmt_vnic,4,2 ## @qlcnic_83xx_init_mgmt_vnic
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Virtual NIC opmode\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLC_83XX_ESWITCH_CAPABILITY,4,2 ## @QLC_83XX_ESWITCH_CAPABILITY
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_DEV_NPAR_NON_OPER,4,2   ## @QLCNIC_DEV_NPAR_NON_OPER
	.comm	_QLCNIC_DEV_NPAR_OPER_TIMEO,4,2 ## @QLCNIC_DEV_NPAR_OPER_TIMEO
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qlcnic_83xx_config_vnic_opmode
l_switch.table.qlcnic_83xx_config_vnic_opmode:
	.quad	_qlcnic_83xx_idc_vnic_pf_entry
	.quad	_qlcnic_83xx_idc_ready_state_entry
	.quad	_qlcnic_83xx_idc_ready_state_entry

	.p2align	3                               ## @switch.table.qlcnic_83xx_config_vnic_opmode.1
l_switch.table.qlcnic_83xx_config_vnic_opmode.1:
	.quad	_qlcnic_83xx_init_privileged_vnic
	.quad	_qlcnic_83xx_init_non_privileged_vnic
	.quad	_qlcnic_83xx_init_mgmt_vnic

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_vnic_opmode ; -- Begin function qlcnic_83xx_config_vnic_opmode
	.p2align	2
_qlcnic_83xx_config_vnic_opmode:        ; @qlcnic_83xx_config_vnic_opmode
	.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
	ldp	x20, x21, [x0, #24]
	bl	_qlcnic_get_func_no
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x8, _QLC_83XX_DRV_OP_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_DRV_OP_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLCRDX
Lloh3:
	adrp	x8, _QLC_83XX_DEFAULT_OPMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_DEFAULT_OPMODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _qlcnic_83xx_init_mgmt_vnic@GOTPAGE
Lloh7:
	ldr	x9, [x9, _qlcnic_83xx_init_mgmt_vnic@GOTPAGEOFF]
Lloh8:
	adrp	x10, _qlcnic_83xx_idc_ready_state_entry@GOTPAGE
Lloh9:
	ldr	x10, [x10, _qlcnic_83xx_idc_ready_state_entry@GOTPAGEOFF]
	mov	w8, #130
	b	LBB0_4
LBB0_2:
	ldr	w1, [x20, #24]
	bl	_QLC_83XX_GET_FUNC_PRIVILEGE
	sub	x9, x0, #128
	cmp	x9, #3
	b.hs	LBB0_10
; %bb.3:
	add	w8, w9, #128
	lsl	x9, x9, #3
Lloh10:
	adrp	x10, l_switch.table.qlcnic_83xx_config_vnic_opmode@PAGE
Lloh11:
	add	x10, x10, l_switch.table.qlcnic_83xx_config_vnic_opmode@PAGEOFF
	ldr	x10, [x10, x9]
Lloh12:
	adrp	x11, l_switch.table.qlcnic_83xx_config_vnic_opmode.1@PAGE
Lloh13:
	add	x11, x11, l_switch.table.qlcnic_83xx_config_vnic_opmode.1@PAGEOFF
	ldr	x9, [x11, x9]
LBB0_4:
	str	w8, [x20]
	ldr	x8, [x10]
	str	x8, [x20, #16]
	ldr	w8, [x9]
	str	w8, [x21]
Lloh14:
	adrp	x8, _QLC_83XX_ESWITCH_CAPABILITY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLC_83XX_ESWITCH_CAPABILITY@GOTPAGEOFF]
	ldr	w10, [x20, #4]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w8, w10
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.6:
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	ldr	w10, [x19, #4]
	bic	w9, w10, w9
	str	w9, [x19, #4]
LBB0_8:
	str	w8, [x19]
LBB0_9:
	mov	w0, #0
Lloh20:
	adrp	x8, _QLCNIC_DEV_NPAR_NON_OPER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLCNIC_DEV_NPAR_NON_OPER@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _QLCNIC_DEV_NPAR_OPER_TIMEO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _QLCNIC_DEV_NPAR_OPER_TIMEO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19, #16]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_DRV_OP_MODE,4,2       ; @QLC_83XX_DRV_OP_MODE
	.comm	_QLC_83XX_DEFAULT_OPMODE,8,3    ; @QLC_83XX_DEFAULT_OPMODE
	.comm	_qlcnic_83xx_idc_ready_state_entry,8,3 ; @qlcnic_83xx_idc_ready_state_entry
	.comm	_qlcnic_83xx_init_non_privileged_vnic,4,2 ; @qlcnic_83xx_init_non_privileged_vnic
	.comm	_qlcnic_83xx_idc_vnic_pf_entry,8,3 ; @qlcnic_83xx_idc_vnic_pf_entry
	.comm	_qlcnic_83xx_init_privileged_vnic,4,2 ; @qlcnic_83xx_init_privileged_vnic
	.comm	_qlcnic_83xx_init_mgmt_vnic,4,2 ; @qlcnic_83xx_init_mgmt_vnic
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Virtual NIC opmode\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLC_83XX_ESWITCH_CAPABILITY,4,2 ; @QLC_83XX_ESWITCH_CAPABILITY
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_DEV_NPAR_NON_OPER,4,2   ; @QLCNIC_DEV_NPAR_NON_OPER
	.comm	_QLCNIC_DEV_NPAR_OPER_TIMEO,4,2 ; @QLCNIC_DEV_NPAR_OPER_TIMEO
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qlcnic_83xx_config_vnic_opmode
l_switch.table.qlcnic_83xx_config_vnic_opmode:
	.quad	_qlcnic_83xx_idc_vnic_pf_entry
	.quad	_qlcnic_83xx_idc_ready_state_entry
	.quad	_qlcnic_83xx_idc_ready_state_entry

	.p2align	3                               ; @switch.table.qlcnic_83xx_config_vnic_opmode.1
l_switch.table.qlcnic_83xx_config_vnic_opmode.1:
	.quad	_qlcnic_83xx_init_privileged_vnic
	.quad	_qlcnic_83xx_init_non_privileged_vnic
	.quad	_qlcnic_83xx_init_mgmt_vnic

.subsections_via_symbols
