	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vc_add_vlan_msg
_i40e_vc_add_vlan_msg:                  ## @i40e_vc_add_vlan_msg
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	32(%rdi), %r15
	movq	_I40E_VC_MAX_VLAN_PER_VF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movq	_I40E_VIRTCHNL_VF_CAP_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_I40E_VF_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_i40e_vc_isvalid_vsi_id
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movq	8(%rbx), %rcx
	movq	_I40E_MAX_VLANID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rdx
	cmpq	%rsi, %rdx
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_8
LBB0_10:
	movq	16(%r15), %rax
	movq	8(%r14), %rcx
	movq	(%rax,%rcx,8), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_12
LBB0_11:
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_24
LBB0_2:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_9:
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_12:
	movq	%r12, %rdi
	callq	_i40e_vlan_stripping_enable
	cmpl	$0, (%rbx)
	jle	LBB0_23
## %bb.13:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_23
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%r12, %rdi
	callq	_i40e_vsi_add_vlan
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	(%r14)
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_I40E_VF_STATE_UC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %esi
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_i40e_aq_set_vsi_uc_promisc_on_vlan
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_I40E_VF_STATE_MC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %esi
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_i40e_aq_set_vsi_mc_promisc_on_vlan
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%r13d, %r13d
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rdx
	movl	16(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	movq	_VIRTCHNL_OP_ADD_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40e_vc_send_resp_to_vf        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VC_MAX_VLAN_PER_VF,8,3    ## @I40E_VC_MAX_VLAN_PER_VF
	.comm	_I40E_VIRTCHNL_VF_CAP_PRIVILEGE,4,2 ## @I40E_VIRTCHNL_VF_CAP_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF is not trusted, switch the VF to trusted to add more VLAN addresses\n"

	.comm	_I40E_VF_STATE_ACTIVE,4,2       ## @I40E_VF_STATE_ACTIVE
	.comm	_I40E_ERR_PARAM,4,2             ## @I40E_ERR_PARAM
	.comm	_I40E_MAX_VLANID,8,3            ## @I40E_MAX_VLANID
L_.str.1:                               ## @.str.1
	.asciz	"invalid VF VLAN id %d\n"

	.comm	_I40E_VF_STATE_UC_PROMISC,4,2   ## @I40E_VF_STATE_UC_PROMISC
	.comm	_I40E_VF_STATE_MC_PROMISC,4,2   ## @I40E_VF_STATE_MC_PROMISC
L_.str.2:                               ## @.str.2
	.asciz	"Unable to add VLAN filter %d for VF %d, error %d\n"

	.comm	_VIRTCHNL_OP_ADD_VLAN,4,2       ## @VIRTCHNL_OP_ADD_VLAN
	.no_dead_strip	_i40e_vc_add_vlan_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vc_add_vlan_msg
_i40e_vc_add_vlan_msg:                  ; @i40e_vc_add_vlan_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x26, [x0, #32]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _I40E_VC_MAX_VLAN_PER_VF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_VC_MAX_VLAN_PER_VF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _I40E_VIRTCHNL_VF_CAP_PRIVILEGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_VIRTCHNL_VF_CAP_PRIVILEGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	x0, LBB0_10
LBB0_2:
Lloh6:
	adrp	x8, _I40E_VF_STATE_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_VF_STATE_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x21, x19, #20
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_i40e_vc_isvalid_vsi_id
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x9, [x20, #8]
Lloh9:
	adrp	x10, _I40E_MAX_VLANID@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I40E_MAX_VLANID@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_8:
	ldr	x8, [x26, #16]
	ldr	x9, [x19, #8]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_14
LBB0_9:
Lloh12:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_10:
	ldr	x0, [x26]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_11:
	mov	w20, #0
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	ldr	x0, [x26]
	str	x11, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_13:
Lloh22:
	adrp	x8, _VIRTCHNL_OP_ADD_VLAN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VIRTCHNL_OP_ADD_VLAN@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_i40e_vc_send_resp_to_vf
LBB0_14:
	mov	x0, x22
	bl	_i40e_vlan_stripping_enable
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.15:
	mov	x27, #0
	add	x23, x26, #8
Lloh25:
	adrp	x28, _I40E_VF_STATE_UC_PROMISC@GOTPAGE
Lloh26:
	ldr	x28, [x28, _I40E_VF_STATE_UC_PROMISC@GOTPAGEOFF]
Lloh27:
	adrp	x24, _I40E_VF_STATE_MC_PROMISC@GOTPAGE
Lloh28:
	ldr	x24, [x24, _I40E_VF_STATE_MC_PROMISC@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.ge	LBB0_11
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x1, [x8, x27, lsl #3]
	mov	x0, x22
	bl	_i40e_vsi_add_vlan
	mov	x25, x0
	cbnz	w0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x28]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w1, [x22]
	ldr	x8, [x20, #8]
	ldr	x3, [x8, x27, lsl #3]
	mov	x0, x23
	mov	w2, #1
	mov	x4, #0
	bl	_i40e_aq_set_vsi_uc_promisc_on_vlan
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w1, [x22]
	ldr	x8, [x20, #8]
	ldr	x3, [x8, x27, lsl #3]
	mov	x0, x23
	mov	w2, #1
	mov	x4, #0
	bl	_i40e_aq_set_vsi_mc_promisc_on_vlan
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	cbz	w25, LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x26]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w9, [x19, #16]
	stp	x9, x25, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VC_MAX_VLAN_PER_VF,8,3    ; @I40E_VC_MAX_VLAN_PER_VF
	.comm	_I40E_VIRTCHNL_VF_CAP_PRIVILEGE,4,2 ; @I40E_VIRTCHNL_VF_CAP_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF is not trusted, switch the VF to trusted to add more VLAN addresses\n"

	.comm	_I40E_VF_STATE_ACTIVE,4,2       ; @I40E_VF_STATE_ACTIVE
	.comm	_I40E_ERR_PARAM,4,2             ; @I40E_ERR_PARAM
	.comm	_I40E_MAX_VLANID,8,3            ; @I40E_MAX_VLANID
l_.str.1:                               ; @.str.1
	.asciz	"invalid VF VLAN id %d\n"

	.comm	_I40E_VF_STATE_UC_PROMISC,4,2   ; @I40E_VF_STATE_UC_PROMISC
	.comm	_I40E_VF_STATE_MC_PROMISC,4,2   ; @I40E_VF_STATE_MC_PROMISC
l_.str.2:                               ; @.str.2
	.asciz	"Unable to add VLAN filter %d for VF %d, error %d\n"

	.comm	_VIRTCHNL_OP_ADD_VLAN,4,2       ; @VIRTCHNL_OP_ADD_VLAN
	.no_dead_strip	_i40e_vc_add_vlan_msg
.subsections_via_symbols
