	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iavf_set_features
_iavf_set_features:                     ## @iavf_set_features
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_VLAN_ALLOWED
	movl	(%rbx), %ecx
	xorl	%r15d, %ecx
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	testl	%edx, %ecx
	je	LBB0_9
## %bb.5:
	testl	%r15d, %edx
	je	LBB0_7
## %bb.6:
	movq	_IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_1:
	testl	%edx, %ecx
	je	LBB0_2
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
	jmp	LBB0_9
LBB0_2:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING,4,2 ## @IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING
	.comm	_IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING,4,2 ## @IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING
	.no_dead_strip	_iavf_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iavf_set_features
_iavf_set_features:                     ; @iavf_set_features
	.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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_VLAN_ALLOWED
	ldr	w8, [x21]
	eor	w9, w8, w20
Lloh0:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w9, w8
	cbz	w0, LBB0_4
; %bb.1:
	cbz	w9, LBB0_6
; %bb.2:
	tst	w8, w20
	b.eq	LBB0_7
; %bb.3:
	mov	w0, #0
Lloh3:
	adrp	x8, _IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	cbz	w9, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	w0, #0
Lloh8:
	adrp	x8, _IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING,4,2 ; @IAVF_FLAG_AQ_ENABLE_VLAN_STRIPPING
	.comm	_IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING,4,2 ; @IAVF_FLAG_AQ_DISABLE_VLAN_STRIPPING
	.no_dead_strip	_iavf_set_features
.subsections_via_symbols
