	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_vsi_manage_vlan_insertion  ## -- Begin function ice_vsi_manage_vlan_insertion
	.p2align	4, 0x90
_ice_vsi_manage_vlan_insertion:         ## @ice_vsi_manage_vlan_insertion
	.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, %r15
	movq	8(%rdi), %r12
	movq	8(%r12), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ICE_AQ_VSI_VLAN_MODE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_ICE_AQ_VSI_VLAN_EMOD_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_ICE_AQ_VSI_PROP_VLAN_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%rbx)
	movl	4(%r15), %esi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_ice_update_vsi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_kfree
LBB0_6:
	movl	%r13d, %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_VLAN_MODE_ALL,4,2   ## @ICE_AQ_VSI_VLAN_MODE_ALL
	.comm	_ICE_AQ_VSI_VLAN_EMOD_M,4,2     ## @ICE_AQ_VSI_VLAN_EMOD_M
	.comm	_ICE_AQ_VSI_PROP_VLAN_VALID,4,2 ## @ICE_AQ_VSI_PROP_VLAN_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"update VSI for VLAN insert failed, err %d aq_err %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_vsi_manage_vlan_insertion  ; -- Begin function ice_vsi_manage_vlan_insertion
	.p2align	2
_ice_vsi_manage_vlan_insertion:         ; @ice_vsi_manage_vlan_insertion
	.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	x21, x0
	ldr	x22, [x0, #8]
	ldr	x19, [x22, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _ICE_AQ_VSI_VLAN_MODE_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_AQ_VSI_VLAN_MODE_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w9, [x21]
Lloh6:
	adrp	x10, _ICE_AQ_VSI_VLAN_EMOD_M@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ICE_AQ_VSI_VLAN_EMOD_M@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x0]
Lloh9:
	adrp	x8, _ICE_AQ_VSI_PROP_VLAN_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_AQ_VSI_PROP_VLAN_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [x20, #4]
	ldr	w1, [x21, #4]
	mov	x0, x22
	mov	x2, x20
	mov	x3, #0
	bl	_ice_update_vsi
	cbz	w0, LBB0_4
; %bb.2:
	mov	x2, x0
	ldr	w3, [x22]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	mov	w22, #0
	ldr	w8, [x20]
	str	w8, [x21]
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
LBB0_6:
	mov	x0, x22
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_AQ_VSI_VLAN_MODE_ALL,4,2   ; @ICE_AQ_VSI_VLAN_MODE_ALL
	.comm	_ICE_AQ_VSI_VLAN_EMOD_M,4,2     ; @ICE_AQ_VSI_VLAN_EMOD_M
	.comm	_ICE_AQ_VSI_PROP_VLAN_VALID,4,2 ; @ICE_AQ_VSI_PROP_VLAN_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update VSI for VLAN insert failed, err %d aq_err %d\n"

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