	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_vsig_add_mv_vsi
_ice_vsig_add_mv_vsi:                   ## @ice_vsig_add_mv_vsi
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ICE_MAX_VSI@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	movq	_ICE_VSIG_IDX_M@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	andq	%rcx, %r13
	movq	_ICE_MAX_VSIGS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_2
## %bb.3:
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movl	%esi, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rax
	movq	%r13, %r15
	shlq	$4, %r15
	cmpl	$0, 8(%rax,%r15)
	movq	_ICE_DEFAULT_VSIG@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.4:
	cmpq	%r14, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_ICE_ERR_DOES_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_6:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rcx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ice_vsig_find_vsi
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx
	cmpq	%r14, %rcx
	je	LBB0_13
## %bb.8:
	movq	_ICE_DEFAULT_VSIG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.9:
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ice_vsig_remove_vsi
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	_ICE_DEFAULT_VSIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_11:
	cmpq	%rcx, %r13
	je	LBB0_13
## %bb.12:
	movq	(%rax), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rax,%rsi,8), %rcx
	leaq	(%r12,%r12,2), %rdx
	leaq	(%rcx,%rdx,8), %r8
	movq	%r14, (%rcx,%rdx,8)
	movl	$1, 8(%rcx,%rdx,8)
	movq	16(%rax,%rsi,8), %rdi
	movq	(%rdi,%r15), %rbx
	movq	%r8, (%rdi,%r15)
	movq	%rbx, 16(%rcx,%rdx,8)
	movq	(%rax,%rsi,8), %rax
	movq	%r14, (%rax,%r12,8)
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_DEFAULT_VSIG,8,3           ## @ICE_DEFAULT_VSIG
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ## @ICE_ERR_DOES_NOT_EXIST
	.no_dead_strip	_ice_vsig_add_mv_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_add_mv_vsi
_ice_vsig_add_mv_vsi:                   ; @ice_vsig_add_mv_vsi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _ICE_VSIG_IDX_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VSIG_IDX_M@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x23, x8, x3
Lloh3:
	adrp	x8, _ICE_MAX_VSI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_MAX_VSI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ICE_MAX_VSIGS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_MAX_VSIGS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x23, x9, #2, hi
	b.lo	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	mov	w9, #24
	umaddl	x8, w1, w9, x8
	ldr	x8, [x8, #16]
	add	x8, x8, x23, lsl #4
	ldr	w8, [x8, #8]
Lloh11:
	adrp	x24, _ICE_DEFAULT_VSIG@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ICE_DEFAULT_VSIG@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	w8, #0
	ccmp	x9, x3, #4, eq
	b.ne	LBB0_10
; %bb.3:
	mov	x20, x2
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_ice_vsig_find_vsi
	cbnz	w0, LBB0_12
; %bb.4:
	ldr	x3, [sp, #8]
	cmp	x3, x19
	b.eq	LBB0_9
; %bb.5:
	ldr	x8, [x24]
	cmp	x3, x8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_ice_vsig_remove_vsi
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	x3, [x24]
LBB0_8:
	cmp	x23, x3
	b.ne	LBB0_13
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w0, #0
	mov	w8, w22
	ldr	x9, [x21]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldp	x11, x9, [x8]
	madd	x9, x20, x10, x9
	ldr	x8, [x8, #16]
	lsl	x10, x23, #4
	ldr	x12, [x8, x10]
	str	x9, [x8, x10]
	str	x19, [x9]
	mov	w8, #1
	str	w8, [x9, #8]
	str	x12, [x9, #16]
	str	x19, [x11, x20, lsl #3]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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_DEFAULT_VSIG,8,3           ; @ICE_DEFAULT_VSIG
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ; @ICE_ERR_DOES_NOT_EXIST
	.no_dead_strip	_ice_vsig_add_mv_vsi
.subsections_via_symbols
