	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vsi_clear
_i40e_vsi_clear:                        ## @i40e_vsi_clear
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	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	%rdi, %rbx
	movq	24(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%r15), %rcx
	movq	(%rbx), %rax
	movq	(%rcx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	cmpq	%rbx, %rcx
	je	LBB0_6
## %bb.5:
	movq	32(%r15), %rdi
	movq	(%rcx), %rdx
	movslq	20(%rcx), %rcx
	movl	20(%rbx), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_3:
	movq	32(%r15), %rdi
	movslq	20(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_6:
	movl	28(%r15), %edi
	movl	16(%rbx), %esi
	movq	%rax, %rdx
	callq	_i40e_put_lump
	movl	24(%r15), %edi
	movl	12(%rbx), %esi
	movq	(%rbx), %rdx
	callq	_i40e_put_lump
	movl	8(%rbx), %edi
	callq	_bitmap_free
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i40e_vsi_free_arrays
	movq	%rbx, %rdi
	callq	_i40e_clear_rss_config_user
	movq	16(%r15), %rcx
	movq	(%rbx), %rax
	movq	$0, (%rcx,%rax,8)
	cmpq	(%r15), %rax
	jae	LBB0_8
## %bb.7:
	movq	%rax, (%r15)
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_10:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pf->vsi[%d] is NULL, just free vsi[%d](type %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"pf->vsi[%d](type %d) != vsi[%d](type %d): no free!\n"

	.no_dead_strip	_i40e_vsi_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vsi_clear
_i40e_vsi_clear:                        ; @i40e_vsi_clear
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_10
; %bb.1:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0, #24]
	cbz	x21, LBB0_9
; %bb.2:
	add	x20, x21, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x9, [x21, #16]
	ldr	x8, [x19]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_5
; %bb.3:
	cmp	x9, x19
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x21, #32]
	ldr	x2, [x9]
	ldrsw	x3, [x9, #20]
	ldr	w9, [x19, #20]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x9, [sp]
	mov	x4, x8
	bl	_dev_err
	b	LBB0_8
LBB0_5:
	ldr	x0, [x21, #32]
	ldrsw	x4, [x19, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	mov	x3, x8
	bl	_dev_err
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21, #28]
	ldr	w1, [x19, #16]
	mov	x2, x8
	bl	_i40e_put_lump
	ldr	w0, [x21, #24]
	ldr	w1, [x19, #12]
	ldr	x2, [x19]
	bl	_i40e_put_lump
	ldr	w0, [x19, #8]
	bl	_bitmap_free
	mov	x0, x19
	mov	w1, #1
	bl	_i40e_vsi_free_arrays
	mov	x0, x19
	bl	_i40e_clear_rss_config_user
	ldr	x9, [x21, #16]
	ldr	x8, [x19]
	str	xzr, [x9, x8, lsl #3]
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.7:
	str	x8, [x21]
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x19
	bl	_kfree
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #0
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pf->vsi[%d] is NULL, just free vsi[%d](type %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"pf->vsi[%d](type %d) != vsi[%d](type %d): no free!\n"

	.no_dead_strip	_i40e_vsi_clear
.subsections_via_symbols
