	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	cmpl	$1, %edi
	jg	LBB0_1
LBB0_14:
	movq	%r14, %rdi
	callq	_usage
	movl	$1, %edi
	callq	_exit
LBB0_1:
	movl	%edi, %ebx
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movq	_dev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jns	LBB0_2
## %bb.15:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
LBB0_2:
	movq	8(%r14), %rax
	movsbl	(%rax), %esi
	leal	-97(%rsi), %eax
	cmpl	$14, %eax
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	cmpl	$3, %ebx
	jbe	LBB0_14
## %bb.6:
	movl	$1, -40(%rbp)
	jmp	LBB0_7
LBB0_8:
	cmpl	$3, %ebx
	jbe	LBB0_14
## %bb.9:
	movl	$0, -40(%rbp)
LBB0_7:
	movq	16(%r14), %rdi
	callq	_atoi
	movq	%rax, -24(%rbp)
	movq	24(%r14), %rdi
	callq	_atoi
	movq	%rax, -32(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_link_op
	xorl	%edi, %edi
	callq	_exit
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
LBB0_4:
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_11:
	movl	$1, %edi
LBB0_12:
	callq	_toggle_medium
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/visctl"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_dev,8,3                        ## @dev
L_.str.2:                               ## @.str.2
	.asciz	"wtap ioctl: unknown command '%c'\n"

L_str:                                  ## @str
	.asciz	"error opening visctl cdev"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	cmp	w0, #1
	b.gt	LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_usage
	mov	w0, #1
	bl	_exit
LBB0_2:
	mov	x20, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
Lloh5:
	adrp	x8, _dev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
LBB0_4:
	ldr	x8, [x19, #8]
	ldrsb	w8, [x8]
	sub	w9, w8, #97
	cmp	w9, #14
	b.hi	LBB0_11
; %bb.5:
Lloh10:
	adrp	x10, lJTI0_0@PAGE
Lloh11:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
	cmp	w20, #3
	b.ls	LBB0_1
; %bb.7:
	mov	w8, #1
	str	w8, [sp, #8]
	b	LBB0_10
LBB0_8:
	cmp	w20, #3
	b.ls	LBB0_1
; %bb.9:
	str	wzr, [sp, #8]
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_atoi
	str	x0, [sp, #24]
	ldr	x0, [x19, #24]
	bl	_atoi
	str	x0, [sp, #16]
	add	x0, sp, #8
	bl	_link_op
	mov	w0, #0
	bl	_exit
LBB0_11:
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #1
	bl	_exit
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	bl	_toggle_medium
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/visctl"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_dev,8,3                        ; @dev
l_.str.2:                               ; @.str.2
	.asciz	"wtap ioctl: unknown command '%c'\n"

l_str:                                  ; @str
	.asciz	"error opening visctl cdev"

.subsections_via_symbols
