	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_cfg_vlan_pruning           ## -- Begin function ice_cfg_vlan_pruning
	.p2align	4, 0x90
_ice_cfg_vlan_pruning:                  ## @ice_cfg_vlan_pruning
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movq	8(%r12), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	8(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	_ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	orl	%eax, (%r15)
	movq	_ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	testl	%r14d, %r14d
	jne	LBB0_10
LBB0_9:
	movq	_ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPCREL(%rip), %rax
	movq	_ICE_AQ_VSI_PROP_SW_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r15)
LBB0_10:
	movl	16(%rbx), %esi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_ice_update_vsi
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	testl	%r13d, %r13d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rcx, %rdx
	movl	20(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %ecx
	movl	(%r12), %esi
	movl	%esi, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %r9d
	callq	_netdev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_devm_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_7:
	notl	%eax
	andl	%eax, (%r15)
	movq	_ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r15)
	testl	%r14d, %r14d
	jne	LBB0_10
	jmp	LBB0_9
LBB0_12:
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_devm_kfree
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA,4,2 ## @ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA
	.comm	_ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S,4,2 ## @ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S
	.comm	_ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA,4,2 ## @ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA
	.comm	_ICE_AQ_VSI_PROP_SECURITY_VALID,4,2 ## @ICE_AQ_VSI_PROP_SECURITY_VALID
	.comm	_ICE_AQ_VSI_PROP_SW_VALID,4,2   ## @ICE_AQ_VSI_PROP_SW_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sabling VLAN pruning on VSI handle: %d, VSI HW ID: %d failed, err = %d, aq_err = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"En"

L_.str.2:                               ## @.str.2
	.asciz	"Dis"

	.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_cfg_vlan_pruning           ; -- Begin function ice_cfg_vlan_pruning
	.p2align	2
_ice_cfg_vlan_pruning:                  ; @ice_cfg_vlan_pruning
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x23, [x0, #24]
	ldr	x19, [x23, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	str	w9, [x0, #8]
Lloh3:
	adrp	x9, _ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA@GOTPAGEOFF]
	str	x8, [x0]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	cbz	w22, LBB0_11
; %bb.3:
	ldp	w9, w10, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh9:
	adrp	x8, _ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x20, #4]
	cbnz	w24, LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_AQ_VSI_PROP_SECURITY_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ICE_AQ_VSI_PROP_SW_VALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ICE_AQ_VSI_PROP_SW_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le16
	str	w0, [x20, #8]
LBB0_5:
	ldr	w1, [x21, #16]
	mov	x0, x23
	mov	x2, x20
	mov	x3, #0
	bl	_ice_update_vsi
	cbz	w0, LBB0_12
; %bb.6:
	mov	x5, x0
Lloh18:
	adrp	x8, l_.str.1@PAGE
Lloh19:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh20:
	adrp	x9, l_.str.2@PAGE
Lloh21:
	add	x9, x9, l_.str.2@PAGEOFF
	ldp	w3, w0, [x21, #16]
	cmp	w22, #0
	csel	x2, x9, x8, eq
	ldr	w4, [x21, #12]
	ldr	w6, [x23]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldp	w9, w10, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh30:
	adrp	x8, _ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	bic	w8, w10, w8
	str	w8, [x20, #4]
	cbnz	w24, LBB0_5
	b	LBB0_4
LBB0_12:
	ldr	d0, [x20]
	str	d0, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA,4,2 ; @ICE_AQ_VSI_SEC_TX_VLAN_PRUNE_ENA
	.comm	_ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S,4,2 ; @ICE_AQ_VSI_SEC_TX_PRUNE_ENA_S
	.comm	_ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA,4,2 ; @ICE_AQ_VSI_SW_FLAG_RX_VLAN_PRUNE_ENA
	.comm	_ICE_AQ_VSI_PROP_SECURITY_VALID,4,2 ; @ICE_AQ_VSI_PROP_SECURITY_VALID
	.comm	_ICE_AQ_VSI_PROP_SW_VALID,4,2   ; @ICE_AQ_VSI_PROP_SW_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sabling VLAN pruning on VSI handle: %d, VSI HW ID: %d failed, err = %d, aq_err = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"En"

l_.str.2:                               ; @.str.2
	.asciz	"Dis"

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