	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_vsig_remove_vsi
_ice_vsig_remove_vsi:                   ## @ice_vsig_remove_vsi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ICE_MAX_VSI@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_9
## %bb.1:
	movq	_ICE_VSIG_IDX_M@GOTPCREL(%rip), %rax
	andq	(%rax), %rcx
	movq	_ICE_MAX_VSIGS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_9
## %bb.2:
	movq	(%rdi), %r8
	movl	%esi, %r11d
	shlq	$4, %r11
	movq	8(%r8,%r11), %rdi
	movq	%rcx, %r10
	shlq	$4, %r10
	cmpl	$0, 8(%rdi,%r10)
	je	LBB0_11
## %bb.3:
	movq	_ICE_DEFAULT_VSIG@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%eax, %eax
	cmpq	%r9, %rcx
	je	LBB0_15
## %bb.4:
	movq	(%rdi,%r10), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.5:
	movq	(%r8,%r11), %r8
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%r8,%rdx,8), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rdi
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, %rcx
	jne	LBB0_6
## %bb.8:
	addq	$16, %rdi
	jmp	LBB0_14
LBB0_9:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_ICE_ERR_DOES_NOT_EXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_13:
	addq	%r10, %rdi
LBB0_14:
	movq	16(%r8,%rdx,8), %rsi
	movq	%rsi, (%rdi)
	movq	%r9, (%rcx)
	movl	$1, 8(%r8,%rdx,8)
	movq	$0, 16(%r8,%rdx,8)
LBB0_15:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_VSIG_IDX_M,8,3             ## @ICE_VSIG_IDX_M
	.comm	_ICE_MAX_VSI,8,3                ## @ICE_MAX_VSI
	.comm	_ICE_MAX_VSIGS,8,3              ## @ICE_MAX_VSIGS
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ## @ICE_ERR_DOES_NOT_EXIST
	.comm	_ICE_DEFAULT_VSIG,8,3           ## @ICE_DEFAULT_VSIG
	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.no_dead_strip	_ice_vsig_remove_vsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_vsig_remove_vsi
_ice_vsig_remove_vsi:                   ; @ice_vsig_remove_vsi
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ICE_VSIG_IDX_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VSIG_IDX_M@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x9, x8, x3
Lloh3:
	adrp	x8, _ICE_MAX_VSI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_MAX_VSI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x10, _ICE_MAX_VSIGS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ICE_MAX_VSIGS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x2
	ccmp	x9, x10, #2, hi
	b.lo	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_2:
	ldr	x10, [x0]
	add	x8, x10, w1, uxtw #4
	ldr	x11, [x8, #8]
	add	x8, x11, x9, lsl #4
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_11
; %bb.3:
Lloh12:
	adrp	x8, _ICE_DEFAULT_VSIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_DEFAULT_VSIG@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ret
LBB0_5:
	add	x11, x11, x9, lsl #4
	ldr	x12, [x11]
	cbz	x12, LBB0_12
; %bb.6:
	mov	w9, w1
	lsl	x9, x9, #4
	ldr	x9, [x10, x9]
	mov	w10, #24
	madd	x10, x2, x10, x9
	cmp	x10, x12
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x12
	ldr	x12, [x12, #16]
	cbz	x12, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x10, x12
	b.ne	LBB0_7
; %bb.9:
	add	x11, x11, #16
LBB0_10:
	mov	w0, #0
	mov	w12, #24
	madd	x9, x2, x12, x9
	ldr	x12, [x9, #16]
	str	x12, [x11]
	str	x8, [x10]
	mov	w8, #1
	str	w8, [x9, #8]
	str	xzr, [x9, #16]
	ret
LBB0_11:
Lloh15:
	adrp	x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_12:
Lloh18:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_VSIG_IDX_M,8,3             ; @ICE_VSIG_IDX_M
	.comm	_ICE_MAX_VSI,8,3                ; @ICE_MAX_VSI
	.comm	_ICE_MAX_VSIGS,8,3              ; @ICE_MAX_VSIGS
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ; @ICE_ERR_DOES_NOT_EXIST
	.comm	_ICE_DEFAULT_VSIG,8,3           ; @ICE_DEFAULT_VSIG
	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.no_dead_strip	_ice_vsig_remove_vsi
.subsections_via_symbols
