	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_vsi_release                ## -- Begin function ice_vsi_release
	.p2align	4, 0x90
_ice_vsi_release:                       ## @ice_vsi_release
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	48(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	callq	_ice_is_reset_in_progress
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%r15), %rdi
	callq	_unregister_netdev
LBB0_5:
	movq	_ICE_FLAG_RSS_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_ice_rss_clean
LBB0_7:
	movq	(%r15), %rax
	movq	_ICE_VSI_LB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_ice_vsi_dis_irq
LBB0_9:
	movq	%r15, %rdi
	callq	_ice_vsi_close
	movq	(%r15), %rax
	movq	_ICE_VSI_VF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movl	16(%r14), %edi
	movl	20(%r15), %edx
	movl	40(%r15), %esi
	callq	_ice_free_res
	movl	32(%r15), %eax
	addl	%eax, 12(%r14)
LBB0_11:
	movq	%r14, %rdi
	callq	_ice_is_safe_mode
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	(%r15), %rax
	movq	_ICE_VSI_PF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ice_vsi_add_rem_eth_mac
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_ice_cfg_sw_lldp
	movq	_ICE_FLAG_FW_LLDP_AGENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ice_cfg_sw_lldp
LBB0_15:
	leaq	4(%r14), %rdi
	movl	20(%r15), %esi
	callq	_ice_remove_vsi_fltr
	movl	20(%r15), %esi
	movl	24(%r15), %edi
	callq	_ice_rm_vsi_lan_cfg
	movq	%r15, %rdi
	callq	_ice_vsi_delete
	movq	%r15, %rdi
	callq	_ice_vsi_free_q_vectors
	cmpq	$0, 8(%r15)
	je	LBB0_18
## %bb.16:
	movq	___ICE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	8(%r15), %rdi
	callq	_free_netdev
	movq	$0, 8(%r15)
LBB0_18:
	movq	%r15, %rdi
	callq	_ice_vsi_clear_rings
	movq	%r15, %rdi
	callq	_ice_vsi_put_qs
	movl	(%r14), %edi
	callq	_ice_is_reset_in_progress
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_ice_vsi_clear
	jmp	LBB0_20
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ICE_FLAG_RSS_ENA,4,2           ## @ICE_FLAG_RSS_ENA
	.comm	_ICE_VSI_LB,8,3                 ## @ICE_VSI_LB
	.comm	_ICE_VSI_VF,8,3                 ## @ICE_VSI_VF
	.comm	_ICE_VSI_PF,8,3                 ## @ICE_VSI_PF
	.comm	_ICE_FLAG_FW_LLDP_AGENT,4,2     ## @ICE_FLAG_FW_LLDP_AGENT
	.comm	___ICE_DOWN,4,2                 ## @__ICE_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_vsi_release                ; -- Begin function ice_vsi_release
	.p2align	2
_ice_vsi_release:                       ; @ice_vsi_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0, #48]
	cbz	x20, LBB0_20
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_ice_is_reset_in_progress
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_unregister_netdev
LBB0_4:
Lloh0:
	adrp	x8, _ICE_FLAG_RSS_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_FLAG_RSS_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ice_rss_clean
LBB0_6:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ICE_VSI_LB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICE_VSI_LB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ice_vsi_dis_irq
LBB0_8:
	mov	x0, x19
	bl	_ice_vsi_close
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _ICE_VSI_VF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_VSI_VF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #40]
	ldr	w2, [x19, #20]
	bl	_ice_free_res
	ldr	w8, [x19, #32]
	ldr	w9, [x20, #12]
	add	w8, w9, w8
	str	w8, [x20, #12]
LBB0_10:
	mov	x0, x20
	bl	_ice_is_safe_mode
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _ICE_VSI_PF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICE_VSI_PF@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	bl	_ice_vsi_add_rem_eth_mac
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_ice_cfg_sw_lldp
Lloh12:
	adrp	x8, _ICE_FLAG_FW_LLDP_AGENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_FLAG_FW_LLDP_AGENT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_test_bit
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ice_cfg_sw_lldp
LBB0_14:
	add	x0, x20, #4
	ldr	w1, [x19, #20]
	bl	_ice_remove_vsi_fltr
	ldp	w1, w0, [x19, #20]
	bl	_ice_rm_vsi_lan_cfg
	mov	x0, x19
	bl	_ice_vsi_delete
	mov	x0, x19
	bl	_ice_vsi_free_q_vectors
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.15:
Lloh15:
	adrp	x8, ___ICE_DOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___ICE_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x0, [x19, #8]
	bl	_free_netdev
	str	xzr, [x19, #8]
LBB0_17:
	mov	x0, x19
	bl	_ice_vsi_clear_rings
	mov	x0, x19
	bl	_ice_vsi_put_qs
	ldr	w0, [x20]
	bl	_ice_is_reset_in_progress
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_ice_vsi_clear
LBB0_19:
	mov	w0, #0
	b	LBB0_21
LBB0_20:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ICE_FLAG_RSS_ENA,4,2           ; @ICE_FLAG_RSS_ENA
	.comm	_ICE_VSI_LB,8,3                 ; @ICE_VSI_LB
	.comm	_ICE_VSI_VF,8,3                 ; @ICE_VSI_VF
	.comm	_ICE_VSI_PF,8,3                 ; @ICE_VSI_PF
	.comm	_ICE_FLAG_FW_LLDP_AGENT,4,2     ; @ICE_FLAG_FW_LLDP_AGENT
	.comm	___ICE_DOWN,4,2                 ; @__ICE_DOWN
.subsections_via_symbols
