	.file	"extr_ice_lib.c_ice_vsi_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ice_vsi_release
	.type	ice_vsi_release, @function
ice_vsi_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR 48[rdi]
	test	r12, r12
	je	.L25
	cmp	QWORD PTR 8[rdi], 0
	mov	rbp, rdi
	je	.L5
	mov	edi, DWORD PTR [r12]
	call	ice_is_reset_in_progress@PLT
	test	eax, eax
	je	.L26
.L5:
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR ICE_FLAG_RSS_ENA[rip]
	call	test_bit@PLT
	test	rax, rax
	jne	.L27
.L7:
	mov	rax, QWORD PTR ICE_VSI_LB[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L28
.L8:
	mov	rdi, rbp
	call	ice_vsi_close@PLT
	mov	rax, QWORD PTR ICE_VSI_VF[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L29
	mov	rdi, r12
	call	ice_is_safe_mode@PLT
	test	eax, eax
	jne	.L11
.L33:
	mov	rax, QWORD PTR ICE_VSI_PF[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L30
.L11:
	mov	esi, DWORD PTR 20[rbp]
	lea	rdi, 4[r12]
	call	ice_remove_vsi_fltr@PLT
	mov	esi, DWORD PTR 20[rbp]
	mov	edi, DWORD PTR 24[rbp]
	call	ice_rm_vsi_lan_cfg@PLT
	mov	rdi, rbp
	call	ice_vsi_delete@PLT
	mov	rdi, rbp
	call	ice_vsi_free_q_vectors@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L14
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR __ICE_DOWN[rip]
	call	test_bit@PLT
	test	rax, rax
	jne	.L31
.L14:
	mov	rdi, rbp
	call	ice_vsi_clear_rings@PLT
	mov	rdi, rbp
	call	ice_vsi_put_qs@PLT
	mov	edi, DWORD PTR [r12]
	call	ice_is_reset_in_progress@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L32
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[r12]
	mov	edx, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR 40[rbp]
	call	ice_free_res@PLT
	mov	rax, QWORD PTR 32[rbp]
	add	DWORD PTR 12[r12], eax
	mov	rdi, r12
	call	ice_is_safe_mode@PLT
	test	eax, eax
	jne	.L11
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	ice_vsi_dis_irq@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	ice_rss_clean@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbp
	call	ice_vsi_clear@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	call	unregister_netdev@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR 8[rbp]
	call	free_netdev@PLT
	mov	QWORD PTR 8[rbp], 0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	xor	esi, esi
	mov	rdi, rbp
	call	ice_vsi_add_rem_eth_mac@PLT
	xor	edx, edx
	mov	esi, 1
	mov	rdi, rbp
	call	ice_cfg_sw_lldp@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR ICE_FLAG_FW_LLDP_AGENT[rip]
	call	test_bit@PLT
	test	rax, rax
	jne	.L11
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	ice_cfg_sw_lldp@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ice_vsi_release, .-ice_vsi_release
	.comm	__ICE_DOWN,4,4
	.comm	ICE_VSI_VF,8,8
	.comm	ICE_VSI_PF,8,8
	.comm	ICE_VSI_LB,8,8
	.comm	ICE_FLAG_RSS_ENA,4,4
	.comm	ICE_FLAG_FW_LLDP_AGENT,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ice_lib.c_ice_vsi_release.c"
	.text
	.align	2
	.global	ice_vsi_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	ice_vsi_release, %function
ice_vsi_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #28]
	cmp	r5, #0
	beq	.L25
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, [r5]
	bl	ice_is_reset_in_progress
	cmp	r0, #0
	beq	.L26
.L5:
	ldr	r3, .L34
	ldr	r1, [r5, #8]
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L27
.L7:
	ldr	r3, .L34+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L28
.L8:
	mov	r0, r4
	bl	ice_vsi_close
	ldr	r3, .L34+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L29
	mov	r0, r5
	bl	ice_is_safe_mode
	subs	r6, r0, #0
	bne	.L11
.L33:
	ldr	r3, .L34+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L30
.L11:
	ldr	r1, [r4, #12]
	add	r0, r5, #4
	bl	ice_remove_vsi_fltr
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	bl	ice_rm_vsi_lan_cfg
	mov	r0, r4
	bl	ice_vsi_delete
	mov	r0, r4
	bl	ice_vsi_free_q_vectors
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L34+16
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L31
.L14:
	mov	r0, r4
	bl	ice_vsi_clear_rings
	mov	r0, r4
	bl	ice_vsi_put_qs
	ldr	r0, [r5]
	bl	ice_is_reset_in_progress
	subs	r5, r0, #0
	movne	r5, #0
	beq	.L32
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L29:
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #24]
	ldr	r0, [r5, #16]
	bl	ice_free_res
	ldr	r3, [r5, #12]
	ldr	r2, [r4, #20]
	mov	r0, r5
	add	r3, r3, r2
	str	r3, [r5, #12]
	bl	ice_is_safe_mode
	subs	r6, r0, #0
	bne	.L11
	b	.L33
.L28:
	mov	r0, r4
	bl	ice_vsi_dis_irq
	b	.L8
.L27:
	mov	r0, r4
	bl	ice_rss_clean
	b	.L7
.L32:
	mov	r0, r4
	bl	ice_vsi_clear
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r0, [r4, #4]
	bl	unregister_netdev
	b	.L5
.L31:
	ldr	r0, [r4, #4]
	bl	free_netdev
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L14
.L30:
	mov	r1, r6
	mov	r0, r4
	bl	ice_vsi_add_rem_eth_mac
	mov	r2, r6
	mov	r1, #1
	mov	r0, r4
	bl	ice_cfg_sw_lldp
	ldr	r3, .L34+20
	ldr	r1, [r5, #8]
	ldr	r0, [r3]
	bl	test_bit
	subs	r2, r0, #0
	bne	.L11
	mov	r1, r2
	mov	r0, r4
	bl	ice_cfg_sw_lldp
	b	.L11
.L25:
	ldr	r3, .L34+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L35:
	.align	2
.L34:
	.word	ICE_FLAG_RSS_ENA
	.word	ICE_VSI_LB
	.word	ICE_VSI_VF
	.word	ICE_VSI_PF
	.word	__ICE_DOWN
	.word	ICE_FLAG_FW_LLDP_AGENT
	.word	ENODEV
	.size	ice_vsi_release, .-ice_vsi_release
	.comm	__ICE_DOWN,4,4
	.comm	ICE_VSI_VF,4,4
	.comm	ICE_VSI_PF,4,4
	.comm	ICE_VSI_LB,4,4
	.comm	ICE_FLAG_RSS_ENA,4,4
	.comm	ICE_FLAG_FW_LLDP_AGENT,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
