	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_port_vlan           ## -- Begin function ice_set_vf_port_vlan
	.p2align	4, 0x90
_ice_set_vf_port_vlan:                  ## @ice_set_vf_port_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	_ICE_VLAN_PRIORITY_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r13d, %r14d
	shll	%cl, %r14d
	callq	_netdev_priv
	movl	%ebx, %edx
	movq	(%rax), %rax
	movq	(%rax), %rbx
	cmpl	%edx, (%rbx)
	jle	LBB0_7
## %bb.1:
	cmpl	$7, %r13d
	jg	LBB0_8
## %bb.2:
	movq	_ICE_MAX_VLANID@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_8
## %bb.3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%r12, %rax
	jne	LBB0_12
## %bb.4:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	16(%rbx), %rax
	movq	24(%rbx), %r12
	movslq	-44(%rbp), %rdx                 ## 4-byte Folded Reload
	shlq	$4, %rdx
	movq	(%r12,%rdx), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	_ICE_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	12(%r12,%rdx), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	orl	%r15d, %r14d
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	cmpl	%r14d, %eax
	jne	LBB0_14
## %bb.6:
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_11
LBB0_7:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_8:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_14:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_le16_to_cpu
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ice_vsi_kill_vlan
LBB0_16:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%r13, %rdi
	orl	%r12d, %eax
	je	LBB0_18
## %bb.17:
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_ice_vsi_manage_pvid
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_19
LBB0_18:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ice_vsi_manage_pvid
	movq	$0, (%r13)
LBB0_19:
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.20:
	movq	8(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ice_vsi_add_vlan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
LBB0_21:
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%rcx,%rdx)
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_VLAN_PRIORITY_S,4,2        ## @ICE_VLAN_PRIORITY_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid VF id: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICE_MAX_VLANID,4,2             ## @ICE_MAX_VLANID
L_.str.1:                               ## @.str.1
	.asciz	"Invalid VF Parameters\n"

	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
L_.str.2:                               ## @.str.2
	.asciz	"VF VLAN protocol is not supported\n"

	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_ICE_VF_STATE_INIT,4,2          ## @ICE_VF_STATE_INIT
L_.str.3:                               ## @.str.3
	.asciz	"VF %d in reset. Try again.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.4:                               ## @.str.4
	.asciz	"Duplicate pvid %d request\n"

	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
L_.str.5:                               ## @.str.5
	.asciz	"Setting VLAN %d, QOS 0x%x on VF %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_set_vf_port_vlan           ; -- Begin function ice_set_vf_port_vlan
	.p2align	2
_ice_set_vf_port_vlan:                  ; @ice_set_vf_port_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _ICE_VLAN_PRIORITY_S@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VLAN_PRIORITY_S@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	w8, [x24]
	cmp	w8, w19
	b.le	LBB0_7
; %bb.1:
	cmp	w21, #7
	b.gt	LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _ICE_MAX_VLANID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_MAX_VLANID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.lt	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	cmp	x0, x22
	b.ne	LBB0_12
; %bb.4:
	ldp	x8, x25, [x24, #16]
	add	x9, x25, w19, sxtw #4
	ldr	x10, [x9]
	ldr	x22, [x8, x10, lsl #3]
Lloh9:
	adrp	x8, _ICE_VF_STATE_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_VF_STATE_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x9, #12]
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.5:
	lsl	w8, w21, w23
	orr	w23, w8, w20
	ldr	x0, [x22]
	bl	_le16_to_cpu
	cmp	w0, w23
	b.ne	LBB0_14
; %bb.6:
	ldr	x0, [x24, #8]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x23
	bl	_dev_info
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	ldr	x0, [x24, #8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	x0, [x24, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	ldr	x0, [x24, #8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh22:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	ldr	x0, [x24, #8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_14:
	ldr	x0, [x22]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_le16_to_cpu
Lloh28:
	adrp	x8, _VLAN_VID_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VLAN_VID_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	and	w1, w8, w0
	mov	x0, x22
	bl	_ice_vsi_kill_vlan
LBB0_16:
	mov	x0, x22
	orr	w8, w21, w20
	cbz	w8, LBB0_18
; %bb.17:
	mov	x1, x23
	mov	w2, #1
	bl	_ice_vsi_manage_pvid
	cbnz	w0, LBB0_11
	b	LBB0_19
LBB0_18:
	mov	w1, #0
	mov	w2, #0
	bl	_ice_vsi_manage_pvid
	str	xzr, [x22]
LBB0_19:
	cbz	w20, LBB0_21
; %bb.20:
	ldr	x0, [x24, #8]
	stp	x21, x19, [sp]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	mov	x0, x22
	mov	x1, x20
	bl	_ice_vsi_add_vlan
	cbnz	w0, LBB0_11
LBB0_21:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x19, w19
	ldr	x0, [x22]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	add	x9, x25, x19, lsl #4
	str	w8, [x9, #8]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_VLAN_PRIORITY_S,4,2        ; @ICE_VLAN_PRIORITY_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid VF id: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICE_MAX_VLANID,4,2             ; @ICE_MAX_VLANID
l_.str.1:                               ; @.str.1
	.asciz	"Invalid VF Parameters\n"

	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
l_.str.2:                               ; @.str.2
	.asciz	"VF VLAN protocol is not supported\n"

	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_ICE_VF_STATE_INIT,4,2          ; @ICE_VF_STATE_INIT
l_.str.3:                               ; @.str.3
	.asciz	"VF %d in reset. Try again.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.4:                               ; @.str.4
	.asciz	"Duplicate pvid %d request\n"

	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
l_.str.5:                               ; @.str.5
	.asciz	"Setting VLAN %d, QOS 0x%x on VF %d\n"

.subsections_via_symbols
