	.file	"extr_ice_main.c_ice_vsi_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-%s"
	.text
	.p2align 4
	.type	ice_vsi_open, @function
ice_vsi_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ICE_INT_NAME_STR_LEN[rip]
	mov	rcx, rsp
	mov	rbx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	rdi, r12
	mov	r14, QWORD PTR 24[r12]
	call	ice_vsi_setup_tx_rings@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L20
.L5:
	mov	rdi, r12
	call	ice_vsi_free_tx_rings@PLT
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -32[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r12
	call	ice_vsi_setup_rx_rings@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L6
	mov	rdi, r12
	call	ice_vsi_cfg@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L22
.L6:
	mov	rdi, r12
	call	ice_vsi_free_rx_rings@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [r14]
	mov	r13, QWORD PTR [rax]
	call	dev_driver_string@PLT
	lea	esi, -1[rbx]
	lea	rdx, .LC0[rip]
	mov	rdi, rsp
	mov	r8, r13
	mov	rcx, rax
	call	snprintf@PLT
	mov	rsi, rsp
	mov	rdi, r12
	call	ice_vsi_req_irq_msix@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L6
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, QWORD PTR 8[r12]
	call	netif_set_real_num_tx_queues@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L23
.L7:
	mov	rdi, r12
	call	ice_vsi_free_irq@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, DWORD PTR [r12]
	call	netif_set_real_num_rx_queues@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L7
	mov	rdi, r12
	call	ice_up_complete@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r12
	call	ice_down@PLT
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ice_vsi_open, .-ice_vsi_open
	.comm	ICE_INT_NAME_STR_LEN,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_main.c_ice_vsi_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ice_vsi_open, %function
ice_vsi_open:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r6, [r3]
	mov	r5, r0
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r2, [r2]
	str	r2, [fp, #-32]
	mov	r2,#0
	ldr	r7, [r0, #12]
	bl	ice_vsi_setup_tx_rings
	subs	r4, r0, #0
	beq	.L12
.L2:
	mov	r0, r5
	bl	ice_vsi_free_tx_rings
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L12:
	mov	r0, r5
	bl	ice_vsi_setup_rx_rings
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r5
	bl	ice_vsi_cfg
	subs	r4, r0, #0
	beq	.L14
.L3:
	mov	r0, r5
	bl	ice_vsi_free_rx_rings
	b	.L2
.L14:
	ldr	r0, [r7]
	bl	dev_driver_string
	ldr	r2, [r5, #4]
	add	r8, sp, #8
	ldr	r2, [r2]
	mov	r3, r0
	sub	r1, r6, #1
	str	r2, [sp]
	mov	r0, r8
	ldr	r2, .L16+8
	bl	snprintf
	mov	r1, r8
	mov	r0, r5
	bl	ice_vsi_req_irq_msix
	subs	r4, r0, #0
	bne	.L3
	ldmib	r5, {r0, r1}
	bl	netif_set_real_num_tx_queues
	subs	r4, r0, #0
	beq	.L15
.L4:
	mov	r0, r5
	bl	ice_vsi_free_irq
	b	.L3
.L15:
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	bl	netif_set_real_num_rx_queues
	subs	r4, r0, #0
	bne	.L4
	mov	r0, r5
	bl	ice_up_complete
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r5
	bl	ice_down
	b	.L4
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	ICE_INT_NAME_STR_LEN
	.word	.LC1
	.word	.LC0
	.size	ice_vsi_open, .-ice_vsi_open
	.comm	ICE_INT_NAME_STR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
