	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebt_vlan_mt_check
_ebt_vlan_mt_check:                     ## @ebt_vlan_mt_check
	.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
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	movq	(%rbx), %r15
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	movq	_EBT_VLAN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_5
## %bb.3:
	movzwl	%ax, %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	(%rbx), %rdi
	callq	_ntohs
	movzwl	%ax, %esi
	leaq	L_.str(%rip), %rdi
LBB0_18:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEBUG_MSG
	jmp	LBB0_19
LBB0_5:
	movl	4(%r14), %eax
	testl	%ecx, %eax
	je	LBB0_7
## %bb.6:
	movzwl	%ax, %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEBUG_MSG
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EBT_VLAN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_BITMASK
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movzwl	8(%r14), %eax
	testw	%ax, %ax
	je	LBB0_12
## %bb.9:
	movq	_VLAN_GROUP_ARRAY_LEN@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jbe	LBB0_11
## %bb.10:
	movzwl	%ax, %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_18
LBB0_11:
	movq	_EBT_VLAN_PRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_12:
	movq	_EBT_VLAN_PRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_BITMASK
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movzwl	10(%r14), %eax
	testb	$-8, %al
	je	LBB0_15
## %bb.14:
	movzwl	%ax, %esi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_18
LBB0_15:
	movq	_EBT_VLAN_ENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_BITMASK
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	16(%r14), %rdi
	callq	_ntohs
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jae	LBB0_19
## %bb.17:
	movq	16(%r14), %rdi
	callq	_ntohs
	movzwl	%ax, %esi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"passed entry proto %2.4X is not 802.1Q (8100)\n"

	.comm	_EBT_VLAN_MASK,4,2              ## @EBT_VLAN_MASK
L_.str.1:                               ## @.str.1
	.asciz	"bitmask %2X is out of mask (%2X)\n"

L_.str.2:                               ## @.str.2
	.asciz	"inversion flags %2X is out of mask (%2X)\n"

	.comm	_EBT_VLAN_ID,4,2                ## @EBT_VLAN_ID
	.comm	_VLAN_GROUP_ARRAY_LEN,2,1       ## @VLAN_GROUP_ARRAY_LEN
L_.str.3:                               ## @.str.3
	.asciz	"id %d is out of range (1-4096)\n"

	.comm	_EBT_VLAN_PRIO,4,2              ## @EBT_VLAN_PRIO
L_.str.4:                               ## @.str.4
	.asciz	"prio %d is out of range (0-7)\n"

	.comm	_EBT_VLAN_ENCAP,4,2             ## @EBT_VLAN_ENCAP
	.comm	_ETH_ZLEN,2,1                   ## @ETH_ZLEN
L_.str.5:                               ## @.str.5
	.asciz	"encap frame length %d is less than minimal\n"

	.no_dead_strip	_ebt_vlan_mt_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebt_vlan_mt_check
_ebt_vlan_mt_check:                     ; @ebt_vlan_mt_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldp	x20, x19, [x0]
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x19]
Lloh3:
	adrp	x8, _EBT_VLAN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBT_VLAN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bics	wzr, w9, w8
	b.eq	LBB0_6
; %bb.2:
	str	x8, [sp]
	and	w1, w9, #0xffff
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x0, [x20]
	bl	_ntohs
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_DEBUG_MSG
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	mvn	w10, w8
	ldr	w9, [x19, #4]
	tst	w9, w10
	b.eq	LBB0_8
; %bb.7:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
	and	w1, w9, #0xffff
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_8:
Lloh12:
	adrp	x8, _EBT_VLAN_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBT_VLAN_ID@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_GET_BITMASK
Lloh15:
	adrp	x8, _EBT_VLAN_PRIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBT_VLAN_PRIO@GOTPAGEOFF]
	cbz	x0, LBB0_13
; %bb.9:
	ldrh	w1, [x19, #8]
	cbz	w1, LBB0_13
; %bb.10:
Lloh17:
	adrp	x9, _VLAN_GROUP_ARRAY_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VLAN_GROUP_ARRAY_LEN@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w1, w9
	b.ls	LBB0_12
; %bb.11:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_12:
	ldr	w9, [x8]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
LBB0_13:
	ldr	w0, [x8]
	bl	_GET_BITMASK
	cbz	x0, LBB0_16
; %bb.14:
	ldrh	w1, [x19, #10]
	tst	w1, #0xf8
	b.eq	LBB0_16
; %bb.15:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_16:
Lloh23:
	adrp	x8, _EBT_VLAN_ENCAP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBT_VLAN_ENCAP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_GET_BITMASK
	cbz	x0, LBB0_19
; %bb.17:
	ldr	x0, [x19, #16]
	bl	_ntohs
Lloh26:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_19
; %bb.18:
	ldr	x0, [x19, #16]
	bl	_ntohs
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_19:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"passed entry proto %2.4X is not 802.1Q (8100)\n"

	.comm	_EBT_VLAN_MASK,4,2              ; @EBT_VLAN_MASK
l_.str.1:                               ; @.str.1
	.asciz	"bitmask %2X is out of mask (%2X)\n"

l_.str.2:                               ; @.str.2
	.asciz	"inversion flags %2X is out of mask (%2X)\n"

	.comm	_EBT_VLAN_ID,4,2                ; @EBT_VLAN_ID
	.comm	_VLAN_GROUP_ARRAY_LEN,2,1       ; @VLAN_GROUP_ARRAY_LEN
l_.str.3:                               ; @.str.3
	.asciz	"id %d is out of range (1-4096)\n"

	.comm	_EBT_VLAN_PRIO,4,2              ; @EBT_VLAN_PRIO
l_.str.4:                               ; @.str.4
	.asciz	"prio %d is out of range (0-7)\n"

	.comm	_EBT_VLAN_ENCAP,4,2             ; @EBT_VLAN_ENCAP
	.comm	_ETH_ZLEN,2,1                   ; @ETH_ZLEN
l_.str.5:                               ; @.str.5
	.asciz	"encap frame length %d is less than minimal\n"

	.no_dead_strip	_ebt_vlan_mt_check
.subsections_via_symbols
