	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_vlan                       ## -- Begin function gen_vlan
	.p2align	4, 0x90
_gen_vlan:                              ## @gen_vlan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_bpf_error
LBB0_2:
	movl	8(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_4
## %bb.3:
	movl	$57, %ecx
	btl	%eax, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gen_vlan_no_bpf_extensions
LBB0_5:
	incq	16(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_bpf_error
                                        ## implicit-def: $rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no VLAN match after MPLS"

L_.str.1:                               ## @.str.1
	.asciz	"no VLAN support for data link type %d"

	.comm	_BPF_SPECIAL_VLAN_HANDLING,4,2  ## @BPF_SPECIAL_VLAN_HANDLING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_vlan                       ; -- Begin function gen_vlan
	.p2align	2
_gen_vlan:                              ; @gen_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
LBB0_2:
	ldr	w8, [x19, #8]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_5
; %bb.3:
	mov	w8, #1
	lsl	w8, w8, w9
	mov	w9, #57
	tst	w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_gen_vlan_no_bpf_extensions
LBB0_4:
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
                                        ; implicit-def: $x0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no VLAN match after MPLS"

l_.str.1:                               ; @.str.1
	.asciz	"no VLAN support for data link type %d"

	.comm	_BPF_SPECIAL_VLAN_HANDLING,4,2  ; @BPF_SPECIAL_VLAN_HANDLING
.subsections_via_symbols
