	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_clear_vf_tvt
_be_clear_vf_tvt:                       ## @be_clear_vf_tvt
	.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, %rbx
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movslq	%esi, %r12
	movq	_BE_RESET_VLAN_TAG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	1(%r12), %r13d
	movl	4(%r14,%r12,8), %ecx
	movl	%r13d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_be_cmd_set_hsw_config
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%r14,%r12,8), %eax
	movq	_BE_PRIV_FILTMGMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %esi
	jne	LBB0_4
## %bb.2:
	orl	%eax, %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movq	%rcx, %rbx
	callq	_be_cmd_set_fn_privileges
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	orl	%eax, (%r14,%r12,8)
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_RESET_VLAN_TAG_ID,4,2       ## @BE_RESET_VLAN_TAG_ID
	.comm	_BE_PRIV_FILTMGMT,4,2           ## @BE_PRIV_FILTMGMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF%d: FILTMGMT priv enabled"

L_.str.1:                               ## @.str.1
	.asciz	"Disable/re-enable i/f in VM to clear Transparent VLAN tag"

	.no_dead_strip	_be_clear_vf_tvt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_clear_vf_tvt
_be_clear_vf_tvt:                       ; @be_clear_vf_tvt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x22, x0
	ldp	x19, x24, [x0]
Lloh0:
	adrp	x8, _BE_RESET_VLAN_TAG_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BE_RESET_VLAN_TAG_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	w23, w20, #1
	add	x8, x24, w20, sxtw #3
	ldr	w3, [x8, #4]
	mov	x2, x23
	mov	w4, #0
	mov	w5, #0
	bl	_be_cmd_set_hsw_config
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	sxtw	x8, w20
	add	x24, x24, x8, lsl #3
	ldr	w8, [x24]
Lloh3:
	adrp	x25, _BE_PRIV_FILTMGMT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BE_PRIV_FILTMGMT@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
	orr	w1, w9, w8
	mov	x0, x22
	mov	x2, x23
	bl	_be_cmd_set_fn_privileges
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_RESET_VLAN_TAG_ID,4,2       ; @BE_RESET_VLAN_TAG_ID
	.comm	_BE_PRIV_FILTMGMT,4,2           ; @BE_PRIV_FILTMGMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF%d: FILTMGMT priv enabled"

l_.str.1:                               ; @.str.1
	.asciz	"Disable/re-enable i/f in VM to clear Transparent VLAN tag"

	.no_dead_strip	_be_clear_vf_tvt
.subsections_via_symbols
