	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_rem_update_vsi_list
_ice_rem_update_vsi_list:               ## @ice_rem_update_vsi_list
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)
	movq	16(%rdx), %rax
	movq	_ICE_FWD_TO_VSI_LIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rdx, %r13
	cmpq	$0, (%rdx)
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r14
	movq	8(%r13), %rax
	movl	4(%rax), %eax
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movl	24(%r13), %r12d
	movl	32(%r13), %r15d
	movq	_ice_aqc_opc_update_sw_rules@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r12d, (%rsp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_ice_update_vsi_list_rule
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	decq	(%r13)
	movl	-48(%rbp), %edi
	movq	8(%r13), %rax
	movl	4(%rax), %esi
	callq	_clear_bit
	movq	(%r13), %rax
	movq	_ICE_SW_LKUP_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$1, %rax
	jne	LBB0_16
## %bb.5:
	cmpl	%ecx, %r12d
	je	LBB0_16
## %bb.6:
	leaq	16(%r13), %rbx
	movq	16(%rbx), %rax
	movq	%rax, -64(%rbp)
	movups	(%rbx), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	movq	_ICE_MAX_VSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_find_first_bit
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ice_is_vsi_valid
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ice_aqc_opc_update_sw_rules@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r12d, (%rsp)
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_ice_update_vsi_list_rule
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	_ICE_FWD_TO_VSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_ice_get_hw_vsi_num
	movl	%eax, -68(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ice_update_pkt_fwd_rule
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	%eax, %ebx
	movq	_ICE_DBG_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_ice_debug
	jmp	LBB0_12
LBB0_10:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ICE_ERR_DOES_NOT_EXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movq	_ICE_ERR_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, (%rcx)
	movq	(%r13), %rax
	movq	_ICE_SW_LKUP_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	cmpq	$1, %rax
	setne	%dl
	cmpl	%ecx, %r12d
	sete	%cl
	orb	%cl, %dl
	testq	%rax, %rax
	sete	%al
	xorl	%ebx, %ebx
	cmpb	$1, %dl
	jne	LBB0_18
## %bb.17:
	andb	%cl, %al
	je	LBB0_12
LBB0_18:
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_ice_remove_vsi_list_rule
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r12d
	movq	_ICE_DBG_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_ice_debug
	movl	%r12d, %ebx
	jmp	LBB0_12
LBB0_20:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_devm_kfree
	movq	$0, 8(%r13)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_FWD_TO_VSI_LIST,8,3        ## @ICE_FWD_TO_VSI_LIST
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ## @ICE_ERR_DOES_NOT_EXIST
	.comm	_ice_aqc_opc_update_sw_rules,4,2 ## @ice_aqc_opc_update_sw_rules
	.comm	_ICE_SW_LKUP_VLAN,4,2           ## @ICE_SW_LKUP_VLAN
	.comm	_ICE_MAX_VSI,4,2                ## @ICE_MAX_VSI
	.comm	_ICE_ERR_OUT_OF_RANGE,4,2       ## @ICE_ERR_OUT_OF_RANGE
	.comm	_ICE_FWD_TO_VSI,8,3             ## @ICE_FWD_TO_VSI
	.comm	_ICE_DBG_SW,4,2                 ## @ICE_DBG_SW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to update pkt fwd rule to FWD_TO_VSI on HW VSI %d, error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to remove VSI list %d, error %d\n"

	.no_dead_strip	_ice_rem_update_vsi_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_rem_update_vsi_list
_ice_rem_update_vsi_list:               ; @ice_rem_update_vsi_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	str	w1, [sp, #44]
	mov	x24, x2
	ldr	x8, [x24, #16]!
Lloh0:
	adrp	x9, _ICE_FWD_TO_VSI_LIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_FWD_TO_VSI_LIST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	mov	x20, x2
	ldr	x8, [x2]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	mov	x0, x1
	mov	x1, x8
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.3:
	ldr	w22, [x20, #24]
	ldr	w21, [x20, #32]
Lloh3:
	adrp	x26, _ice_aqc_opc_update_sw_rules@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ice_aqc_opc_update_sw_rules@GOTPAGEOFF]
	ldr	w5, [x26]
	add	x1, sp, #44
	mov	x0, x19
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	mov	x6, x22
	bl	_ice_update_vsi_list_rule
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.4:
	ldp	x8, x9, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	ldr	w0, [sp, #44]
	ldr	w1, [x9, #4]
	bl	_clear_bit
	ldr	x8, [x20]
Lloh5:
	adrp	x25, _ICE_SW_LKUP_VLAN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ICE_SW_LKUP_VLAN@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	x8, #1
	b.ne	LBB0_16
; %bb.5:
	cmp	w22, w9
	b.eq	LBB0_16
; %bb.6:
	ldr	q0, [x24]
	str	q0, [sp, #16]
	ldr	x8, [x24, #16]
	str	x8, [sp, #32]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
Lloh7:
	adrp	x8, _ICE_MAX_VSI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICE_MAX_VSI@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_find_first_bit
	mov	x1, x0
	str	w0, [sp, #12]
	mov	x0, x19
	bl	_ice_is_vsi_valid
	cbz	w0, LBB0_14
; %bb.7:
	ldr	w5, [x26]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	mov	x6, x22
	bl	_ice_update_vsi_list_rule
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.8:
Lloh10:
	adrp	x8, _ICE_FWD_TO_VSI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICE_FWD_TO_VSI@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_ice_get_hw_vsi_num
	ldr	w8, [sp, #12]
	str	w0, [sp, #28]
	str	w8, [sp, #36]
	add	x1, sp, #16
	mov	x0, x19
	bl	_ice_update_pkt_fwd_rule
	cbz	w0, LBB0_15
; %bb.9:
	mov	x23, x0
Lloh13:
	adrp	x8, _ICE_DBG_SW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICE_DBG_SW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [sp, #28]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_19
LBB0_10:
Lloh18:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
LBB0_11:
	ldr	w23, [x8]
LBB0_12:
	mov	x0, x23
	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
	add	sp, sp, #128
	ret
LBB0_13:
Lloh20:
	adrp	x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGEOFF]
	b	LBB0_11
LBB0_14:
Lloh22:
	adrp	x8, _ICE_ERR_OUT_OF_RANGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICE_ERR_OUT_OF_RANGE@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
	ldr	q0, [sp, #16]
	str	q0, [x24]
	ldr	x8, [sp, #32]
	str	x8, [x24, #16]
	ldr	x8, [x20]
	ldr	w9, [x25]
LBB0_16:
	cmp	x8, #1
	cset	w10, ne
	cmp	w22, w9
	cset	w9, eq
	orr	w10, w10, w9
	cmp	x8, #0
	cset	w8, eq
	and	w8, w8, w9
	cmp	w10, #1
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_20
; %bb.17:
	ldr	x24, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ice_remove_vsi_list_rule
	mov	x23, x0
	cbz	w0, LBB0_21
; %bb.18:
Lloh24:
	adrp	x8, _ICE_DBG_SW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ICE_DBG_SW@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
LBB0_19:
	mov	x4, x23
	bl	_ice_debug
	b	LBB0_12
LBB0_20:
	mov	w23, #0
	b	LBB0_12
LBB0_21:
	mov	x0, x24
	bl	_list_del
	mov	x0, x19
	bl	_ice_hw_to_dev
	mov	x1, x24
	bl	_devm_kfree
	str	xzr, [x20, #8]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_FWD_TO_VSI_LIST,8,3        ; @ICE_FWD_TO_VSI_LIST
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ; @ICE_ERR_DOES_NOT_EXIST
	.comm	_ice_aqc_opc_update_sw_rules,4,2 ; @ice_aqc_opc_update_sw_rules
	.comm	_ICE_SW_LKUP_VLAN,4,2           ; @ICE_SW_LKUP_VLAN
	.comm	_ICE_MAX_VSI,4,2                ; @ICE_MAX_VSI
	.comm	_ICE_ERR_OUT_OF_RANGE,4,2       ; @ICE_ERR_OUT_OF_RANGE
	.comm	_ICE_FWD_TO_VSI,8,3             ; @ICE_FWD_TO_VSI
	.comm	_ICE_DBG_SW,4,2                 ; @ICE_DBG_SW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to update pkt fwd rule to FWD_TO_VSI on HW VSI %d, error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to remove VSI list %d, error %d\n"

	.no_dead_strip	_ice_rem_update_vsi_list
.subsections_via_symbols
