	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vlan_mode
_set_vlan_mode:                         ## @set_vlan_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	cmpl	$2, %esi
	jl	LBB0_15
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	leaq	-40(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_ETHERSWITCH_CONF_VLAN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	8(%r15), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	$0, -40(%rbp)
	jmp	LBB0_13
LBB0_2:
	movq	_ETHERSWITCH_VLAN_ISL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ETHERSWITCH_VLAN_PORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_ETHERSWITCH_VLAN_DOT1Q@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_ETHERSWITCH_VLAN_DOT1Q_4K@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_ETHERSWITCH_VLAN_DOUBLE_TAG@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
LBB0_13:
	movl	(%r14), %edi
	movq	_IOETHERSWITCHSETCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHERSWITCH_CONF_VLAN_MODE,4,2 ## @ETHERSWITCH_CONF_VLAN_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"isl"

	.comm	_ETHERSWITCH_VLAN_ISL,8,3       ## @ETHERSWITCH_VLAN_ISL
L_.str.1:                               ## @.str.1
	.asciz	"port"

	.comm	_ETHERSWITCH_VLAN_PORT,8,3      ## @ETHERSWITCH_VLAN_PORT
L_.str.2:                               ## @.str.2
	.asciz	"dot1q"

	.comm	_ETHERSWITCH_VLAN_DOT1Q,8,3     ## @ETHERSWITCH_VLAN_DOT1Q
L_.str.3:                               ## @.str.3
	.asciz	"dot1q4k"

	.comm	_ETHERSWITCH_VLAN_DOT1Q_4K,8,3  ## @ETHERSWITCH_VLAN_DOT1Q_4K
L_.str.4:                               ## @.str.4
	.asciz	"qinq"

	.comm	_ETHERSWITCH_VLAN_DOUBLE_TAG,8,3 ## @ETHERSWITCH_VLAN_DOUBLE_TAG
	.comm	_IOETHERSWITCHSETCONF,4,2       ## @IOETHERSWITCHSETCONF
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.5:                               ## @.str.5
	.asciz	"ioctl(IOETHERSWITCHSETCONF)"

	.no_dead_strip	_set_vlan_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_vlan_mode
_set_vlan_mode:                         ; @set_vlan_mode
	.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
	cmp	w1, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_16
LBB0_2:
	mov	x20, x2
	mov	x19, x0
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
Lloh0:
	adrp	x8, _ETHERSWITCH_CONF_VLAN_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHERSWITCH_CONF_VLAN_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x20, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_10
; %bb.5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_11
; %bb.6:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_12
; %bb.7:
	str	xzr, [sp]
	b	LBB0_14
LBB0_8:
Lloh13:
	adrp	x8, _ETHERSWITCH_VLAN_ISL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETHERSWITCH_VLAN_ISL@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh15:
	adrp	x8, _ETHERSWITCH_VLAN_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETHERSWITCH_VLAN_PORT@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh17:
	adrp	x8, _ETHERSWITCH_VLAN_DOT1Q@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETHERSWITCH_VLAN_DOT1Q@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh19:
	adrp	x8, _ETHERSWITCH_VLAN_DOT1Q_4K@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETHERSWITCH_VLAN_DOT1Q_4K@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x8, _ETHERSWITCH_VLAN_DOUBLE_TAG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETHERSWITCH_VLAN_DOUBLE_TAG@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [sp]
LBB0_14:
	ldr	w0, [x19]
Lloh23:
	adrp	x8, _IOETHERSWITCHSETCONF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IOETHERSWITCHSETCONF@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	cbz	x0, LBB0_16
; %bb.15:
Lloh26:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHERSWITCH_CONF_VLAN_MODE,4,2 ; @ETHERSWITCH_CONF_VLAN_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"isl"

	.comm	_ETHERSWITCH_VLAN_ISL,8,3       ; @ETHERSWITCH_VLAN_ISL
l_.str.1:                               ; @.str.1
	.asciz	"port"

	.comm	_ETHERSWITCH_VLAN_PORT,8,3      ; @ETHERSWITCH_VLAN_PORT
l_.str.2:                               ; @.str.2
	.asciz	"dot1q"

	.comm	_ETHERSWITCH_VLAN_DOT1Q,8,3     ; @ETHERSWITCH_VLAN_DOT1Q
l_.str.3:                               ; @.str.3
	.asciz	"dot1q4k"

	.comm	_ETHERSWITCH_VLAN_DOT1Q_4K,8,3  ; @ETHERSWITCH_VLAN_DOT1Q_4K
l_.str.4:                               ; @.str.4
	.asciz	"qinq"

	.comm	_ETHERSWITCH_VLAN_DOUBLE_TAG,8,3 ; @ETHERSWITCH_VLAN_DOUBLE_TAG
	.comm	_IOETHERSWITCHSETCONF,4,2       ; @IOETHERSWITCHSETCONF
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.5:                               ; @.str.5
	.asciz	"ioctl(IOETHERSWITCHSETCONF)"

	.no_dead_strip	_set_vlan_mode
.subsections_via_symbols
