	.file	"extr_ice_switch.c_ice_free_vsi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ice_free_vsi
	.type	ice_free_vsi, @function
ice_free_vsi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	call	ice_is_vsi_valid@PLT
	test	eax, eax
	jne	.L2
	mov	r13d, DWORD PTR ICE_ERR_PARAM[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	ice_get_hw_vsi_num@PLT
	mov	rsi, r13
	mov	rcx, r15
	mov	edx, r14d
	mov	DWORD PTR 0[r13], eax
	mov	rdi, rbp
	call	ice_aq_free_vsi@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	esi, r12d
	mov	rdi, rbp
	call	ice_clear_vsi_ctx@PLT
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ice_free_vsi, .-ice_free_vsi
	.comm	ICE_ERR_PARAM,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_switch.c_ice_free_vsi.c"
	.text
	.align	2
	.global	ice_free_vsi
	.syntax unified
	.arm
	.fpu softvfp
	.type	ice_free_vsi, %function
ice_free_vsi:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r6, r3
	mov	r4, r0
	mov	r5, r1
	bl	ice_is_vsi_valid
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L6
	ldr	r6, [r3]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, r5
	mov	r0, r4
	bl	ice_get_hw_vsi_num
	mov	r2, r6
	str	r0, [r7]
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [sp, #24]
	bl	ice_aq_free_vsi
	subs	r6, r0, #0
	bne	.L1
	mov	r1, r5
	mov	r0, r4
	bl	ice_clear_vsi_ctx
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	ICE_ERR_PARAM
	.size	ice_free_vsi, .-ice_free_vsi
	.comm	ICE_ERR_PARAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
