	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_vlan
_validate_vlan:                         ## @validate_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
	cmpq	$0, 16(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.2:
	movl	$1, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	callq	_be16_to_cpu
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VLAN_N_VID,8,3                 ## @VLAN_N_VID
	.no_dead_strip	_validate_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_vlan
_validate_vlan:                         ; @validate_vlan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _VLAN_VID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_VID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	cmp	x20, x0
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_be16_to_cpu
Lloh3:
	adrp	x8, _VLAN_N_VID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VLAN_N_VID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VLAN_N_VID,8,3                 ; @VLAN_N_VID
	.no_dead_strip	_validate_vlan
.subsections_via_symbols
