	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_vsi_clear                  ## -- Begin function ice_vsi_clear
	.p2align	4, 0x90
_ice_vsi_clear:                         ## @ice_vsi_clear
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movq	24(%r12), %rax
	movq	(%rbx), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rbx, %rax
	jne	LBB0_5
## %bb.6:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	24(%r12), %rcx
	movq	(%rbx), %rax
	movq	$0, (%rcx,%rax,8)
	cmpq	(%r12), %rax
	jae	LBB0_8
## %bb.7:
	movq	%rax, (%r12)
LBB0_8:
	movq	%rbx, %rdi
	callq	_ice_vsi_free_arrays
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	8(%r12), %rdi
	movq	%rbx, %rsi
	callq	_devm_kfree
	jmp	LBB0_9
LBB0_5:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vsi does not exist at pf->vsi[%d]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_vsi_clear                  ; -- Begin function ice_vsi_clear
	.p2align	2
_ice_vsi_clear:                         ; @ice_vsi_clear
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	x8, [x21, #24]
	ldr	x2, [x19]
	ldr	x8, [x8, x2, lsl #3]
	cmp	x8, #0
	ccmp	x8, x19, #0, ne
	b.eq	LBB0_5
; %bb.3:
	ldr	x0, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	add	x20, x21, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	x9, [x21, #24]
	ldr	x8, [x19]
	str	xzr, [x9, x8, lsl #3]
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.6:
	str	x8, [x21]
LBB0_7:
	mov	x0, x19
	bl	_ice_vsi_free_arrays
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x0, [x21, #8]
	mov	x1, x19
	bl	_devm_kfree
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vsi does not exist at pf->vsi[%d]\n"

.subsections_via_symbols
