	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_idc_vnic_pf_entry  ## -- Begin function qlcnic_83xx_idc_vnic_pf_entry
	.p2align	4, 0x90
_qlcnic_83xx_idc_vnic_pf_entry:         ## @qlcnic_83xx_idc_vnic_pf_entry
	.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, %r15
	movq	8(%rdi), %rbx
	movq	_QLC_83XX_VNIC_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_QLCRDX
	movq	_QLCNIC_DEV_NPAR_OPER@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.4:
	xorl	%r14d, %r14d
	cmpq	%rax, (%rbx)
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_idc_update_idc_params
	movq	8(%rbx), %rax
	movq	_QLC_83XX_IDC_DEV_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_idc_reattach_driver
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	movq	(%r12), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_9
LBB0_1:
	subl	$1, 16(%rbx)
	jae	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_idc_enter_failed_state
	jmp	LBB0_7
LBB0_3:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vNIC mode disabled\n"

	.comm	_QLC_83XX_IDC_DEV_UNKNOWN,8,3   ## @QLC_83XX_IDC_DEV_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"vNIC mode enabled\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_idc_vnic_pf_entry  ; -- Begin function qlcnic_83xx_idc_vnic_pf_entry
	.p2align	2
_qlcnic_83xx_idc_vnic_pf_entry:         ; @qlcnic_83xx_idc_vnic_pf_entry
	.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	x8, _QLC_83XX_VNIC_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_VNIC_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_QLCRDX
Lloh3:
	adrp	x21, _QLCNIC_DEV_NPAR_OPER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _QLCNIC_DEV_NPAR_OPER@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, x0
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_update_idc_params
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _QLC_83XX_IDC_DEV_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLC_83XX_IDC_DEV_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_reattach_driver
	cbnz	x0, LBB0_9
LBB0_4:
	ldr	x8, [x21]
	ldp	x0, x9, [x19]
	str	x8, [x9]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	ldr	w8, [x20, #16]
	sub	w9, w8, #1
	str	w9, [x20, #16]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_idc_enter_failed_state
LBB0_9:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vNIC mode disabled\n"

	.comm	_QLC_83XX_IDC_DEV_UNKNOWN,8,3   ; @QLC_83XX_IDC_DEV_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"vNIC mode enabled\n"

.subsections_via_symbols
