	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_add_vlan_internal
_ice_add_vlan_internal:                 ## @ice_add_vlan_internal
	.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	$120, %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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	$0, -72(%rbp)
	movq	(%rsi), %rsi
	callq	_ice_is_vsi_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_ice_get_hw_vsi_num
	movl	%eax, 40(%rbx)
	movq	56(%rbx), %rcx
	movq	_ICE_MAX_VLAN_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_1
## %bb.3:
	movq	8(%rbx), %rcx
	movq	_ICE_SRC_ID_VSI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.4:
	movl	%eax, 52(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %r13
	movq	%r13, -96(%rbp)
	movq	_ICE_SW_LKUP_VLAN@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%r12), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ice_find_rule_entry
	testq	%rax, %rax
	je	LBB0_5
## %bb.16:
	movq	%rax, %r12
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	cmpl	$1, %ecx
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdx
	addq	$16, %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_ice_add_update_vsi_list
	movl	%eax, %r13d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%r13d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	24(%rbx), %rax
	movq	_ICE_FWD_TO_VSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_ICE_SW_LKUP_VLAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_ice_find_vsi_list_entry
	movq	%rax, %r12
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
LBB0_9:
	movq	_ICE_FWD_TO_VSI_LIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	-72(%rbp), %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_10
LBB0_18:
	cmpl	$2, (%r12)
	jl	LBB0_21
## %bb.19:
	cmpl	$2, %ecx
	jl	LBB0_21
## %bb.20:
	movq	_ICE_DBG_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_ice_debug
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_6:
	xorl	%r12d, %r12d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ice_create_pkt_fwd_rule
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.11:
	movq	_ICE_SW_LKUP_VLAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ice_find_rule_entry
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movq	%r12, 8(%rbx)
LBB0_27:
	incl	(%r12)
	jmp	LBB0_28
LBB0_21:
	movl	4(%rax), %edi
	movq	_ICE_MAX_VSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_find_first_bit
	cmpq	%r13, %rax
	jne	LBB0_24
## %bb.22:
	movq	_ICE_ERR_ALREADY_EXISTS@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r13d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_24:
	movq	%rax, -64(%rbp)
	movq	%r13, -56(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movl	$2, %edx
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	callq	_ice_create_vsi_list_rule
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_29
## %bb.25:
	movups	16(%r12), %xmm0
	movups	32(%r12), %xmm1
	movups	48(%r12), %xmm2
	movups	64(%r12), %xmm3
	movaps	%xmm3, -112(%rbp)
	movaps	%xmm2, -128(%rbp)
	movaps	%xmm1, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movl	64(%r12), %eax
	movl	%eax, -112(%rbp)
	movq	-72(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	_ICE_FWD_TO_VSI_LIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)
	leaq	-160(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ice_update_pkt_fwd_rule
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.26:
	movq	8(%r12), %rax
	decl	(%rax)
	movq	-72(%rbp), %rcx
	movq	%rcx, 48(%r12)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_ice_create_vsi_list_map
	movq	%rax, 8(%r12)
	jmp	LBB0_27
LBB0_8:
	leaq	-96(%rbp), %rsi
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	callq	_ice_create_vsi_list_rule
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
	jmp	LBB0_9
LBB0_12:
	movq	_ICE_ERR_DOES_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_29
LBB0_15:
	movq	-72(%rbp), %rcx
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_ice_create_vsi_list_map
	movq	%rax, 8(%rbx)
LBB0_28:
	xorl	%r13d, %r13d
LBB0_29:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_30
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_MAX_VLAN_ID,8,3            ## @ICE_MAX_VLAN_ID
	.comm	_ICE_SRC_ID_VSI,8,3             ## @ICE_SRC_ID_VSI
	.comm	_ICE_SW_LKUP_VLAN,8,3           ## @ICE_SW_LKUP_VLAN
	.comm	_ICE_FWD_TO_VSI,8,3             ## @ICE_FWD_TO_VSI
	.comm	_ICE_FWD_TO_VSI_LIST,8,3        ## @ICE_FWD_TO_VSI_LIST
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ## @ICE_ERR_DOES_NOT_EXIST
	.comm	_ICE_DBG_SW,4,2                 ## @ICE_DBG_SW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid configuration: Optimization to reuse VSI list with more than one VSI is not being done yet\n"

	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.comm	_ICE_MAX_VSI,4,2                ## @ICE_MAX_VSI
	.comm	_ICE_ERR_ALREADY_EXISTS,4,2     ## @ICE_ERR_ALREADY_EXISTS
	.no_dead_strip	_ice_add_vlan_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_add_vlan_internal
_ice_add_vlan_internal:                 ; @ice_add_vlan_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0]
	str	xzr, [sp, #80]
	ldr	x1, [x1]
	bl	_ice_is_vsi_valid
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_ice_get_hw_vsi_num
	str	w0, [x21, #40]
	ldr	x8, [x21, #56]
Lloh3:
	adrp	x9, _ICE_MAX_VLAN_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICE_MAX_VLAN_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.2:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _ICE_SRC_ID_VSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_SRC_ID_VSI@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	str	w0, [x21, #52]
	ldr	w23, [x21, #16]
	ldr	x24, [x21]
	str	x24, [sp, #72]
	ldr	x8, [x19]
Lloh9:
	adrp	x25, _ICE_SW_LKUP_VLAN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ICE_SW_LKUP_VLAN@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x19, x8, x9, lsl #2
	mov	x0, x19
	bl	_mutex_lock
	ldr	x1, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_ice_find_rule_entry
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_12
; %bb.5:
	add	x2, x22, #16
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_ice_add_update_vsi_list
	mov	x23, x0
	b	LBB0_28
LBB0_6:
Lloh11:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.8:
	mov	x0, x23
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_9:
	ldr	x8, [x21, #24]
Lloh17:
	adrp	x9, _ICE_FWD_TO_VSI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ICE_FWD_TO_VSI@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.10:
	ldr	x1, [x25]
	add	x3, sp, #80
	mov	x0, x20
	mov	x2, x24
	bl	_ice_find_vsi_list_entry
	mov	x22, x0
	cbz	x0, LBB0_25
LBB0_11:
Lloh20:
	adrp	x8, _ICE_FWD_TO_VSI_LIST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_FWD_TO_VSI_LIST@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [sp, #80]
	stp	x8, x9, [x21, #24]
	b	LBB0_16
LBB0_12:
	ldr	w10, [x22]
	cmp	w10, #2
	ccmp	w9, #2, #8, ge
	b.ge	LBB0_21
; %bb.13:
	ldr	w0, [x8, #4]
Lloh23:
	adrp	x8, _ICE_MAX_VSI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICE_MAX_VSI@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_find_first_bit
	cmp	x0, x24
	b.ne	LBB0_22
; %bb.14:
Lloh26:
	adrp	x8, _ICE_ERR_ALREADY_EXISTS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ICE_ERR_ALREADY_EXISTS@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
	b	LBB0_28
LBB0_15:
	mov	x22, #0
LBB0_16:
	mov	x0, x20
	mov	x1, x21
	bl	_ice_create_pkt_fwd_rule
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.17:
	ldr	x1, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_ice_find_rule_entry
	cbz	x0, LBB0_26
; %bb.18:
	mov	x21, x0
	cbz	x22, LBB0_27
; %bb.19:
	mov	w23, #0
	str	x22, [x21, #8]
LBB0_20:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_28
LBB0_21:
Lloh29:
	adrp	x8, _ICE_DBG_SW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ICE_DBG_SW@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ice_debug
Lloh34:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
Lloh36:
	ldr	w23, [x8]
	b	LBB0_28
LBB0_22:
	stp	x0, x24, [sp, #88]
	add	x1, sp, #88
	add	x3, sp, #80
	mov	x0, x20
	mov	w2, #2
	mov	x4, x23
	bl	_ice_create_vsi_list_rule
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.23:
	ldp	q0, q1, [x22, #16]
	ldp	q2, q3, [x22, #48]
	stp	q2, q3, [sp, #32]
	stp	q0, q1, [sp]
	ldr	w8, [x22, #64]
	str	w8, [sp, #48]
	ldr	x8, [sp, #80]
	str	x8, [sp, #32]
Lloh37:
	adrp	x8, _ICE_FWD_TO_VSI_LIST@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ICE_FWD_TO_VSI_LIST@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x1, sp
	mov	x0, x20
	bl	_ice_update_pkt_fwd_rule
	mov	x23, x0
	cbnz	w0, LBB0_28
; %bb.24:
	ldr	x8, [x22, #8]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	x3, [sp, #80]
	str	x3, [x22, #48]
	add	x1, sp, #88
	mov	x0, x20
	mov	w2, #2
	bl	_ice_create_vsi_list_map
	str	x0, [x22, #8]
	b	LBB0_20
LBB0_25:
	add	x1, sp, #72
	add	x3, sp, #80
	mov	x0, x20
	mov	w2, #1
	mov	x4, x23
	bl	_ice_create_vsi_list_rule
	mov	x23, x0
	cbnz	w0, LBB0_28
	b	LBB0_11
LBB0_26:
Lloh40:
	adrp	x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGEOFF]
Lloh42:
	ldr	w23, [x8]
	b	LBB0_28
LBB0_27:
	ldr	x3, [sp, #80]
	add	x1, sp, #72
	mov	x0, x20
	mov	w2, #1
	bl	_ice_create_vsi_list_map
	mov	w23, #0
	str	x0, [x21, #8]
LBB0_28:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_7
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_MAX_VLAN_ID,8,3            ; @ICE_MAX_VLAN_ID
	.comm	_ICE_SRC_ID_VSI,8,3             ; @ICE_SRC_ID_VSI
	.comm	_ICE_SW_LKUP_VLAN,8,3           ; @ICE_SW_LKUP_VLAN
	.comm	_ICE_FWD_TO_VSI,8,3             ; @ICE_FWD_TO_VSI
	.comm	_ICE_FWD_TO_VSI_LIST,8,3        ; @ICE_FWD_TO_VSI_LIST
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ; @ICE_ERR_DOES_NOT_EXIST
	.comm	_ICE_DBG_SW,4,2                 ; @ICE_DBG_SW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid configuration: Optimization to reuse VSI list with more than one VSI is not being done yet\n"

	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.comm	_ICE_MAX_VSI,4,2                ; @ICE_MAX_VSI
	.comm	_ICE_ERR_ALREADY_EXISTS,4,2     ; @ICE_ERR_ALREADY_EXISTS
	.no_dead_strip	_ice_add_vlan_internal
.subsections_via_symbols
