	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_vid_config
_be_vid_config:                         ## @be_vid_config
	.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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BE_NUM_VLANS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r14d, %r14d
	cmpq	$0, 32(%r12)
	jne	LBB0_11
## %bb.1:
	movq	(%r12), %rbx
	movq	%r12, %rdi
	callq	_be_max_vlans
	cmpq	%rax, %rbx
	jg	LBB0_10
## %bb.2:
	movq	_VLAN_GROUP_ARRAY_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%r15,%r13,8)
	incq	%r13
	movq	_VLAN_GROUP_ARRAY_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_3:
	xorl	%r13d, %r13d
LBB0_8:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_be_cmd_vlan_config
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	16(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
LBB0_10:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_be_cmd_vlan_config
	movl	%eax, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_NUM_VLANS_SUPPORTED,4,2     ## @BE_NUM_VLANS_SUPPORTED
	.comm	_VLAN_GROUP_ARRAY_LEN,8,3       ## @VLAN_GROUP_ARRAY_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Exhausted VLAN HW filters.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Disabling HW VLAN filtering.\n"

	.no_dead_strip	_be_vid_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_vid_config
_be_vid_config:                         ; @be_vid_config
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BE_NUM_VLANS_SUPPORTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BE_NUM_VLANS_SUPPORTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	ldr	x21, [x19]
	mov	x0, x19
	bl	_be_max_vlans
	cmp	x21, x0
	b.gt	LBB0_11
; %bb.3:
Lloh8:
	adrp	x23, _VLAN_GROUP_ARRAY_LEN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _VLAN_GROUP_ARRAY_LEN@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x20, x21, lsl #3]
	add	x21, x21, #1
	ldr	x8, [x23]
	b	LBB0_5
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	w4, #1
	mov	w5, #0
	bl	_be_cmd_vlan_config
	cbz	w0, LBB0_12
; %bb.10:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19, #16]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_11:
	ldr	w1, [x19, #8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #1
	bl	_be_cmd_vlan_config
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #48
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_NUM_VLANS_SUPPORTED,4,2     ; @BE_NUM_VLANS_SUPPORTED
	.comm	_VLAN_GROUP_ARRAY_LEN,8,3       ; @VLAN_GROUP_ARRAY_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Exhausted VLAN HW filters.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Disabling HW VLAN filtering.\n"

	.no_dead_strip	_be_vid_config
.subsections_via_symbols
