	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_vsi_init
_ice_vsi_init:                          ## @ice_vsi_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	56(%rdi), %r13
	movq	(%r13), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$28, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	leaq	20(%r13), %r15
	movups	20(%r14), %xmm0
	movups	%xmm0, 4(%rax)
	movl	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_4
## %bb.2:
	movq	_ICE_AQ_VSI_TYPE_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_4:
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.5:
	movq	_ICE_AQ_VSI_TYPE_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	(%r15), %eax
	addl	8(%r14), %eax
	movl	%eax, 20(%r12)
LBB0_6:
	movq	%r12, %rdi
	callq	_ice_set_dflt_vsi_ctx
	movq	48(%r14), %rax
	movq	(%rax), %rax
	movq	_BRIDGE_MODE_VEB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_ICE_AQ_VSI_SW_FLAG_ALLOW_LB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
LBB0_8:
	movq	_ICE_FLAG_RSS_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r13), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ice_set_rss_vsi_ctx
LBB0_10:
	movq	40(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ice_vsi_setup_q_map
	movl	(%r14), %eax
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.11:
	movq	8(%r13), %rax
	movq	8(%r14), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_15
## %bb.12:
	movq	_ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, 4(%r12)
	movq	_ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movl	(%r14), %eax
LBB0_13:
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.14:
	movq	_ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movq	_ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, 4(%r12)
LBB0_15:
	movl	36(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_ice_add_vsi
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	%r12, %rax
	addq	$4, %rax
	leaq	20(%r14), %rcx
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movl	(%r12), %eax
	movl	%eax, 16(%r14)
	movq	(%r13), %rdi
	movq	%r12, %rsi
	callq	_devm_kfree
	jmp	LBB0_21
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ICE_AQ_VSI_TYPE_PF,4,2         ## @ICE_AQ_VSI_TYPE_PF
	.comm	_ICE_AQ_VSI_TYPE_VF,4,2         ## @ICE_AQ_VSI_TYPE_VF
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BRIDGE_MODE_VEB,8,3            ## @BRIDGE_MODE_VEB
	.comm	_ICE_AQ_VSI_SW_FLAG_ALLOW_LB,4,2 ## @ICE_AQ_VSI_SW_FLAG_ALLOW_LB
	.comm	_ICE_FLAG_RSS_ENA,4,2           ## @ICE_FLAG_RSS_ENA
	.comm	_ICE_AQ_VSI_PROP_SECURITY_VALID,4,2 ## @ICE_AQ_VSI_PROP_SECURITY_VALID
	.comm	_ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF,4,2 ## @ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF
	.comm	_ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD,4,2 ## @ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add VSI failed, err %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ice_vsi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_vsi_init
_ice_vsi_init:                          ; @ice_vsi_init
	.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
	mov	x19, x0
	ldr	x22, [x0, #56]
	mov	x21, x22
	ldr	x0, [x21], #20
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #28
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldur	q0, [x19, #20]
	stur	q0, [x0, #4]
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ICE_AQ_VSI_TYPE_PF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_AQ_VSI_TYPE_PF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.5:
Lloh8:
	adrp	x8, _ICE_AQ_VSI_TYPE_VF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICE_AQ_VSI_TYPE_VF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	ldr	w10, [x21]
	add	w9, w10, w9
	stp	w9, w8, [x20, #20]
LBB0_6:
	mov	x0, x20
	bl	_ice_set_dflt_vsi_ctx
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _BRIDGE_MODE_VEB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BRIDGE_MODE_VEB@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _ICE_AQ_VSI_SW_FLAG_ALLOW_LB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ICE_AQ_VSI_SW_FLAG_ALLOW_LB@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_8:
Lloh17:
	adrp	x8, _ICE_FLAG_RSS_ENA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICE_FLAG_RSS_ENA@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x22, #16]
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_ice_set_rss_vsi_ctx
LBB0_10:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	str	w8, [x20, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_ice_vsi_setup_q_map
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x22, #8]
	ldr	x9, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_15
; %bb.12:
Lloh20:
	adrp	x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le16
Lloh23:
	adrp	x8, _ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF@GOTPAGEOFF]
	ldp	w9, w10, [x20, #4]
	orr	w9, w9, w0
Lloh25:
	ldr	w8, [x8]
	orr	w8, w10, w8
	stp	w9, w8, [x20, #4]
	ldr	w8, [x19]
LBB0_13:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh29:
	adrp	x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [x20, #4]
	orr	w8, w8, w0
	str	w8, [x20, #4]
LBB0_15:
	ldr	w1, [x19, #36]
	mov	x0, x21
	mov	x2, x20
	mov	x3, #0
	bl	_ice_add_vsi
	cbz	w0, LBB0_17
; %bb.16:
	mov	x2, x0
	ldr	x0, [x22]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh34:
	adrp	x8, _EIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	add	x8, x20, #4
	add	x9, x19, #20
	ldr	q0, [x8]
	str	q0, [x9]
	ldr	w8, [x20]
	str	w8, [x19, #16]
	ldr	x0, [x22]
	mov	x1, x20
	bl	_devm_kfree
	mov	w0, #0
	b	LBB0_20
LBB0_18:
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_AQ_VSI_TYPE_PF,4,2         ; @ICE_AQ_VSI_TYPE_PF
	.comm	_ICE_AQ_VSI_TYPE_VF,4,2         ; @ICE_AQ_VSI_TYPE_VF
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BRIDGE_MODE_VEB,8,3            ; @BRIDGE_MODE_VEB
	.comm	_ICE_AQ_VSI_SW_FLAG_ALLOW_LB,4,2 ; @ICE_AQ_VSI_SW_FLAG_ALLOW_LB
	.comm	_ICE_FLAG_RSS_ENA,4,2           ; @ICE_FLAG_RSS_ENA
	.comm	_ICE_AQ_VSI_PROP_SECURITY_VALID,4,2 ; @ICE_AQ_VSI_PROP_SECURITY_VALID
	.comm	_ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF,4,2 ; @ICE_AQ_VSI_SEC_FLAG_ENA_MAC_ANTI_SPOOF
	.comm	_ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD,4,2 ; @ICE_AQ_VSI_SEC_FLAG_ALLOW_DEST_OVRD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add VSI failed, err %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ice_vsi_init
.subsections_via_symbols
