	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_add_vsi                    ## -- Begin function ice_add_vsi
	.p2align	4, 0x90
_ice_add_vsi:                           ## @ice_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ICE_MAX_VSI@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_ice_aq_add_vsi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ice_get_vsi_ctx
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rcx
	movq	(%r15), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, (%rcx)
	je	LBB0_7
## %bb.4:
	movq	%rdx, (%rcx)
	jmp	LBB0_7
LBB0_5:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	callq	_ice_hw_to_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_ice_save_vsi_ctx
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_ice_aq_free_vsi
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_MAX_VSI,8,3                ## @ICE_MAX_VSI
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_add_vsi                    ; -- Begin function ice_add_vsi
	.p2align	2
_ice_add_vsi:                           ; @ice_add_vsi
	.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
Lloh0:
	adrp	x8, _ICE_MAX_VSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_MAX_VSI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x1, x2
	mov	x2, x3
	bl	_ice_aq_add_vsi
	cbnz	w0, LBB0_7
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	bl	_ice_get_vsi_ctx
	cbz	x0, LBB0_8
; %bb.3:
	mov	x8, x0
	ldr	x10, [x0]
	ldr	x9, [x19]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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_8:
	mov	x0, x21
	bl	_ice_hw_to_dev
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	mov	x2, x0
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19]
	str	x8, [x2]
	mov	x0, x21
	mov	x1, x22
	bl	_ice_save_vsi_ctx
	mov	w0, #0
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	str	x9, [x8]
	b	LBB0_7
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_ice_aq_free_vsi
Lloh8:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_MAX_VSI,8,3                ; @ICE_MAX_VSI
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
.subsections_via_symbols
