	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_set_vf_vlan       ## -- Begin function qlcnic_sriov_set_vf_vlan
	.p2align	4, 0x90
_qlcnic_sriov_set_vf_vlan:              ## @qlcnic_sriov_set_vf_vlan
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	(%rcx), %rbx
	movq	%rax, %rdi
	callq	_qlcnic_sriov_pf_check
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$7, %r15d
	jg	LBB0_5
## %bb.2:
	cmpl	%r14d, (%rbx)
	jle	LBB0_5
## %bb.3:
	movq	_MAX_VLAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%r12d, %edx
	jge	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rsi
	movq	8(%rax,%rcx), %rbx
	movq	_QLC_BC_VF_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_netdev_err
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.12:
	cmpl	$4095, %r12d                    ## imm = 0xFFF
	jne	LBB0_15
## %bb.13:
	movq	_QLC_GUEST_VLAN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_16
LBB0_14:
	movq	_QLC_NO_VLAN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	jmp	LBB0_16
LBB0_15:
	movq	_QLC_PVID_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_netdev_info
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_VLAN_ID,4,2                ## @MAX_VLAN_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid VLAN ID, allowed range is [0 - %d]\n"

	.comm	_QLC_BC_VF_STATE,4,2            ## @QLC_BC_VF_STATE
L_.str.1:                               ## @.str.1
	.asciz	"VLAN change failed for VF %d, as VF driver is loaded. Please unload VF driver and retry the operation\n"

	.comm	_QLC_GUEST_VLAN_MODE,4,2        ## @QLC_GUEST_VLAN_MODE
	.comm	_QLC_NO_VLAN_MODE,4,2           ## @QLC_NO_VLAN_MODE
	.comm	_QLC_PVID_MODE,4,2              ## @QLC_PVID_MODE
L_.str.2:                               ## @.str.2
	.asciz	"Setting VLAN %d, QoS %d, for VF %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_set_vf_vlan       ; -- Begin function qlcnic_sriov_set_vf_vlan
	.p2align	2
_qlcnic_sriov_set_vf_vlan:              ; @qlcnic_sriov_set_vf_vlan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x23, [x8]
	bl	_qlcnic_sriov_pf_check
	cbz	w0, LBB0_8
; %bb.1:
	cmp	w21, #7
	b.gt	LBB0_5
; %bb.2:
	ldr	w8, [x23]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _MAX_VLAN_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_VLAN_ID@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmp	w2, w22
	b.ge	LBB0_6
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x23, #8]
	add	x1, x8, w19, sxtw #4
	ldr	x23, [x1, #8]
Lloh7:
	adrp	x8, _QLC_BC_VF_STATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QLC_BC_VF_STATE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netdev_err
LBB0_8:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbz	w22, LBB0_14
; %bb.12:
	cmp	w22, #4095
	b.ne	LBB0_15
; %bb.13:
Lloh14:
	adrp	x8, _QLC_GUEST_VLAN_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLC_GUEST_VLAN_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	b	LBB0_16
LBB0_14:
Lloh17:
	adrp	x8, _QLC_NO_VLAN_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QLC_NO_VLAN_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	str	xzr, [x23]
	b	LBB0_16
LBB0_15:
Lloh20:
	adrp	x8, _QLC_PVID_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLC_PVID_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	stp	w21, w8, [x23, #4]
	str	w22, [x23]
LBB0_16:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_VLAN_ID,4,2                ; @MAX_VLAN_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid VLAN ID, allowed range is [0 - %d]\n"

	.comm	_QLC_BC_VF_STATE,4,2            ; @QLC_BC_VF_STATE
l_.str.1:                               ; @.str.1
	.asciz	"VLAN change failed for VF %d, as VF driver is loaded. Please unload VF driver and retry the operation\n"

	.comm	_QLC_GUEST_VLAN_MODE,4,2        ; @QLC_GUEST_VLAN_MODE
	.comm	_QLC_NO_VLAN_MODE,4,2           ; @QLC_NO_VLAN_MODE
	.comm	_QLC_PVID_MODE,4,2              ; @QLC_PVID_MODE
l_.str.2:                               ; @.str.2
	.asciz	"Setting VLAN %d, QoS %d, for VF %d\n"

.subsections_via_symbols
