	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vsi_reinit_setup
_i40e_vsi_reinit_setup:                 ## @i40e_vsi_reinit_setup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	40(%r14), %edi
	movl	(%rbx), %esi
	movl	32(%rbx), %edx
	callq	_i40e_put_lump
	movq	%rbx, %rdi
	callq	_i40e_vsi_clear_rings
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i40e_vsi_free_arrays
	movq	%rbx, %rdi
	callq	_i40e_set_num_rings_in_vsi
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i40e_vsi_alloc_arrays
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	movq	%rbx, %rdi
	callq	_i40e_vsi_clear
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_i40e_enabled_xdp_vsi
	cmpq	$1, %rax
	movl	$2, %r15d
	sbbl	$0, %r15d
	imull	%r12d, %r15d
	movl	40(%r14), %esi
	movl	32(%rbx), %ecx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_i40e_get_lump
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	(%rcx,%rax,8), %rdi
	movq	8(%rdi), %rsi
	movq	$0, 8(%rdi)
	movl	24(%r14), %eax
	movl	%eax, (%rdi)
	callq	_i40e_vsi_config_tc
	movq	8(%rbx), %rax
	movq	_I40E_VSI_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_i40e_rm_default_mac_filter
LBB0_6:
	movq	%rbx, %rdi
	callq	_i40e_alloc_rings
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	callq	_i40e_vsi_free_q_vectors
	cmpl	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$0, 16(%rbx)
	movq	24(%rbx), %rdi
	callq	_unregister_netdev
	movq	24(%rbx), %rdi
	callq	_free_netdev
	movq	$0, 24(%rbx)
LBB0_10:
	addq	$8, %r14
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_i40e_aq_delete_element
	jmp	LBB0_11
LBB0_3:
	movq	32(%r14), %rdi
	movl	20(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %r8d
	callq	_dev_info
	jmp	LBB0_11
LBB0_7:
	callq	_i40e_vsi_map_rings_to_vectors
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get tracking for %d queues for VSI %d err %d\n"

	.comm	_I40E_VSI_MAIN,8,3              ## @I40E_VSI_MAIN
	.no_dead_strip	_i40e_vsi_reinit_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vsi_reinit_setup
_i40e_vsi_reinit_setup:                 ; @i40e_vsi_reinit_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x20, [x19, #40]
	ldr	w0, [x20, #40]
	ldr	w1, [x19]
	ldr	w2, [x19, #32]
	bl	_i40e_put_lump
	mov	x0, x19
	bl	_i40e_vsi_clear_rings
	mov	x0, x19
	mov	w1, #0
	bl	_i40e_vsi_free_arrays
	mov	x0, x19
	bl	_i40e_set_num_rings_in_vsi
	mov	x0, x19
	mov	w1, #0
	bl	_i40e_vsi_alloc_arrays
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_i40e_vsi_clear
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w21, [x19, #4]
	mov	x0, x19
	bl	_i40e_enabled_xdp_vsi
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	mul	w21, w8, w21
	ldr	w1, [x20, #40]
	ldr	w3, [x19, #32]
	mov	x0, x20
	mov	x2, x21
	bl	_i40e_get_lump
	mov	x4, x0
	tbnz	w0, #31, LBB0_11
; %bb.5:
	str	w4, [x19]
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x1, [x0, #8]
	str	xzr, [x0, #8]
	ldr	w8, [x20, #24]
	str	w8, [x0]
	bl	_i40e_vsi_config_tc
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _I40E_VSI_MAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_VSI_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_i40e_rm_default_mac_filter
LBB0_7:
	mov	x0, x19
	bl	_i40e_alloc_rings
	cbz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_i40e_vsi_free_q_vectors
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
; %bb.9:
	str	wzr, [x19, #16]
	ldr	x0, [x19, #24]
	bl	_unregister_netdev
	ldr	x0, [x19, #24]
	bl	_free_netdev
	str	xzr, [x19, #24]
LBB0_10:
	add	x0, x20, #8
	ldr	w1, [x19, #20]
	mov	x2, #0
	bl	_i40e_aq_delete_element
	b	LBB0_2
LBB0_11:
	ldr	x0, [x20, #32]
	ldr	w3, [x19, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_info
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_i40e_vsi_map_rings_to_vectors
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get tracking for %d queues for VSI %d err %d\n"

	.comm	_I40E_VSI_MAIN,8,3              ; @I40E_VSI_MAIN
	.no_dead_strip	_i40e_vsi_reinit_setup
.subsections_via_symbols
