	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlan_ioctl
_vlan_ioctl:                            ## @vlan_ioctl
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$12, %esi
	ja	LBB0_38
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_30:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_VLAN_XLOCK
	movq	%r14, %rdi
	callq	_TRUNK
	testq	%rax, %rax
	je	LBB0_29
## %bb.31:
	movq	%rbx, %rdi
	callq	_vlan_setmulti
	jmp	LBB0_28
LBB0_33:
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PRIV_NET_SETVLANPCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.34:
	movl	(%r15), %eax
	cmpl	$8, %eax
	jl	LBB0_35
LBB0_38:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_39:
	movl	(%rax), %r12d
	jmp	LBB0_40
LBB0_11:
	xorl	%eax, %eax
	callq	_VLAN_SLOCK
	movq	%r14, %rdi
	callq	_TRUNK
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TRUNK_WLOCK
	movq	8(%r15), %r12
	movq	%r14, %rdi
	callq	_PARENT
	movq	24(%rax), %rcx
	movq	16(%r14), %rax
	subq	%rax, %rcx
	cmpq	%rcx, %r12
	jg	LBB0_14
## %bb.13:
	movq	8(%r15), %rcx
	movq	24(%r14), %rdx
	subq	%rax, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_16
LBB0_26:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_VLAN_XLOCK
	movq	%r14, %rdi
	callq	_TRUNK
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vlan_setflags
LBB0_28:
	movl	%eax, %r12d
LBB0_29:
	xorl	%eax, %eax
	callq	_VLAN_XUNLOCK
	jmp	LBB0_40
LBB0_36:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_VLAN_SLOCK
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_TRUNK
	testq	%rax, %rax
	je	LBB0_10
## %bb.37:
	callq	_NET_EPOCH_ENTER
	movq	%r14, %rdi
	callq	_vlan_capabilities
	callq	_NET_EPOCH_EXIT
	jmp	LBB0_10
LBB0_2:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_17:
	movq	%r15, %rdi
	callq	_ifr_data_get_ptr
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	movl	$16, %edx
	callq	_copyin
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.18:
	movq	-56(%rbp), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_19
## %bb.20:
	callq	_ifunit_ref
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%rax, %rbx
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_vlan_config
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_if_rele
	jmp	LBB0_40
LBB0_32:
	movl	(%r14), %eax
	movl	%eax, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_4:
	xorl	%eax, %eax
	callq	_VLAN_SLOCK
	movq	%r14, %rdi
	callq	_TRUNK
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_PARENT
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_if_ref
	movq	%rbx, %rdi
	movl	$136, %esi
	movq	%r15, %rdx
	callq	*(%rbx)
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_if_rele
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.6:
	xorl	%r12d, %r12d
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.7:
	movl	4(%r15), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.8:
	movl	$1, (%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_copyout
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	callq	_IF_LLADDR
	movq	16(%r15), %rsi
	movl	32(%rbx), %edx
	movl	%eax, %edi
	callq	_bcopy
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_23:
	leaq	-56(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	xorl	%eax, %eax
	callq	_VLAN_SLOCK
	movq	%r14, %rdi
	callq	_TRUNK
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rbx
	movq	%r14, %rdi
	callq	_PARENT
	movl	20(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_strlcpy
	movl	8(%r14), %eax
	movl	%eax, -48(%rbp)
LBB0_25:
	xorl	%eax, %eax
	callq	_VLAN_SUNLOCK
	movq	%r15, %rdi
	callq	_ifr_data_get_ptr
	leaq	-56(%rbp), %rdi
	movl	%eax, %esi
	movl	$16, %edx
	callq	_copyout
	movl	%eax, %r12d
	jmp	LBB0_40
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_35:
	movl	%eax, (%r14)
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_vlan_tag_recalculate
	movq	_ifnet_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IFNET_EVENT_PCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_EVENTHANDLER_INVOKE
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_15:
	movq	%rcx, 24(%rbx)
	xorl	%r12d, %r12d
LBB0_16:
	movq	%r13, %rdi
	callq	_TRUNK_WUNLOCK
LBB0_10:
	xorl	%eax, %eax
	callq	_VLAN_SUNLOCK
LBB0_40:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%rbx, %rdi
	callq	_vlan_unconfig
	xorl	%r12d, %r12d
	jmp	LBB0_40
LBB0_21:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_39
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
	.long	L0_0_set_33
	.long	L0_0_set_11
	.long	L0_0_set_38
	.long	L0_0_set_26
	.long	L0_0_set_36
	.long	L0_0_set_2
	.long	L0_0_set_17
	.long	L0_0_set_32
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_23
	.long	L0_0_set_30
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_curthread,4,2                  ## @curthread
	.comm	_PRIV_NET_SETVLANPCP,4,2        ## @PRIV_NET_SETVLANPCP
	.comm	_ifnet_event,4,2                ## @ifnet_event
	.comm	_IFNET_EVENT_PCP,4,2            ## @IFNET_EVENT_PCP
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_vlan_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlan_ioctl
_vlan_ioctl:                            ; @vlan_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, w1, #128
	cmp	w8, #12
	b.hi	LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	ldr	x19, [x0, #40]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	bl	_VLAN_XLOCK
	mov	x0, x19
	bl	_TRUNK
	cbz	x0, LBB0_15
; %bb.3:
	mov	x0, x21
	bl	_vlan_setmulti
	b	LBB0_14
LBB0_4:
Lloh2:
	adrp	x8, _curthread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _PRIV_NET_SETVLANPCP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRIV_NET_SETVLANPCP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_priv_check
	mov	x22, x0
	cbnz	w0, LBB0_39
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #8
	b.lt	LBB0_35
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w22, [x8]
	b	LBB0_39
LBB0_8:
	bl	_VLAN_SLOCK
	mov	x0, x19
	bl	_TRUNK
	cbz	x0, LBB0_34
; %bb.9:
	mov	x23, x0
	bl	_TRUNK_WLOCK
	ldr	x22, [x20, #8]
	mov	x0, x19
	bl	_PARENT
	ldr	x9, [x0, #24]
	ldr	x8, [x19, #16]
	sub	x9, x9, x8
	cmp	x22, x9
	b.gt	LBB0_11
; %bb.10:
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #24]
	sub	x8, x10, x8
	cmp	x9, x8
	b.ge	LBB0_36
LBB0_11:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_37
LBB0_12:
	bl	_VLAN_XLOCK
	mov	x0, x19
	bl	_TRUNK
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x21
	mov	w1, #1
	bl	_vlan_setflags
LBB0_14:
	mov	x22, x0
	bl	_VLAN_XUNLOCK
	b	LBB0_39
LBB0_15:
	mov	w22, #0
	bl	_VLAN_XUNLOCK
	b	LBB0_39
LBB0_16:
	bl	_VLAN_SLOCK
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_TRUNK
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x19
	bl	_vlan_capabilities
	mov	x0, #0
	bl	_NET_EPOCH_EXIT
LBB0_18:
	bl	_VLAN_SUNLOCK
	mov	w22, #0
	b	LBB0_39
LBB0_19:
	mov	w22, #0
Lloh13:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21, #36]
	orr	w8, w9, w8
	str	w8, [x21, #36]
	b	LBB0_39
LBB0_20:
	mov	x0, x20
	bl	_ifr_data_get_ptr
	mov	x1, sp
	mov	w2, #16
	bl	_copyin
	mov	x22, x0
	cbnz	w0, LBB0_39
; %bb.21:
	ldr	x0, [sp]
	ldrb	w8, [x0]
	cbz	w8, LBB0_40
; %bb.22:
	bl	_ifunit_ref
	cbz	x0, LBB0_42
; %bb.23:
	mov	x20, x0
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_vlan_config
	mov	x22, x0
	mov	x0, x20
	bl	_if_rele
	b	LBB0_39
LBB0_24:
	mov	w22, #0
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_39
LBB0_25:
	bl	_VLAN_SLOCK
	mov	x0, x19
	bl	_TRUNK
	cbz	x0, LBB0_34
; %bb.26:
	mov	x0, x19
	bl	_PARENT
	mov	x19, x0
	bl	_if_ref
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #136
	mov	x2, x20
	blr	x8
	mov	x22, x0
	mov	x0, x19
	bl	_if_rele
	cbnz	w22, LBB0_38
; %bb.27:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.28:
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_41
; %bb.29:
	mov	w8, #1
	str	w8, [x20], #8
	mov	x0, x20
	mov	w2, #4
	bl	_copyout
	mov	x22, x0
	b	LBB0_38
LBB0_30:
	mov	x0, x21
	bl	_IF_LLADDR
	ldr	x1, [x20, #16]
	ldr	w2, [x21, #32]
	bl	_bcopy
	mov	w22, #0
	b	LBB0_39
LBB0_31:
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
	bl	_VLAN_SLOCK
	mov	x0, x19
	bl	_TRUNK
	cbz	x0, LBB0_33
; %bb.32:
	ldr	x21, [sp]
	mov	x0, x19
	bl	_PARENT
	ldr	w1, [x0, #20]
	mov	x0, x21
	mov	w2, #8
	bl	_strlcpy
	ldr	w8, [x19, #8]
	str	w8, [sp, #8]
LBB0_33:
	bl	_VLAN_SUNLOCK
	mov	x0, x20
	bl	_ifr_data_get_ptr
	mov	x1, x0
	mov	x0, sp
	mov	w2, #16
	bl	_copyout
	mov	x22, x0
	b	LBB0_39
LBB0_34:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	b	LBB0_38
LBB0_35:
	str	w8, [x19]
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_vlan_tag_recalculate
Lloh19:
	adrp	x8, _ifnet_event@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ifnet_event@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _IFNET_EVENT_PCP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IFNET_EVENT_PCP@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_EVENTHANDLER_INVOKE
	mov	w22, #0
	b	LBB0_39
LBB0_36:
	mov	w22, #0
	str	x9, [x21, #24]
LBB0_37:
	mov	x0, x23
	bl	_TRUNK_WUNLOCK
LBB0_38:
	bl	_VLAN_SUNLOCK
LBB0_39:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_40:
	mov	x0, x21
	bl	_vlan_unconfig
	mov	w22, #0
	b	LBB0_39
LBB0_41:
	mov	w22, #0
	b	LBB0_38
LBB0_42:
Lloh25:
	adrp	x8, _ENOENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_31-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_curthread,4,2                  ; @curthread
	.comm	_PRIV_NET_SETVLANPCP,4,2        ; @PRIV_NET_SETVLANPCP
	.comm	_ifnet_event,4,2                ; @ifnet_event
	.comm	_IFNET_EVENT_PCP,4,2            ; @IFNET_EVENT_PCP
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_vlan_ioctl
.subsections_via_symbols
