	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$3, %edi
	jne	LBB0_1
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_atoi
	cmpl	$64, %eax
	jae	LBB0_3
## %bb.5:
	movl	%eax, %r14d
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_open
	movq	_dev@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	8(%rbx), %rax
	movsbl	(%rax), %esi
	cmpl	$100, %esi
	je	LBB0_10
## %bb.8:
	cmpl	$99, %esi
	jne	LBB0_11
## %bb.9:
	movl	%r14d, %edi
	callq	_create
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_12
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_12
LBB0_6:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	jmp	LBB0_12
LBB0_10:
	movl	%r14d, %edi
	callq	_delete
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s [c | d] wtap_id\n"

L_.str.2:                               ## @.str.2
	.asciz	"/dev/wtapctl"

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

L_str:                                  ## @str
	.asciz	"wtap_id must be between 0 and 7"

L_str.5:                                ## @str.5
	.asciz	"error opening wtapctl 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, #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
	mov	x20, x1
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.1:
	ldr	x0, [x20, #16]
	bl	_atoi
	cmp	w0, #64
	b.hs	LBB0_8
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_open
Lloh5:
	adrp	x8, _dev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	ldrsb	w8, [x8]
	cmp	w8, #100
	b.eq	LBB0_13
; %bb.4:
	cmp	w8, #99
	b.ne	LBB0_14
; %bb.5:
	mov	x0, x19
	bl	_create
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_printf
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x0, l_str.5@PAGE
Lloh13:
	add	x0, x0, l_str.5@PAGEOFF
LBB0_10:
	bl	_puts
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	mov	x0, x19
	bl	_delete
	mov	w0, #0
	b	LBB0_12
LBB0_14:
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
	.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
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s [c | d] wtap_id\n"

l_.str.2:                               ; @.str.2
	.asciz	"/dev/wtapctl"

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

l_str:                                  ; @str
	.asciz	"wtap_id must be between 0 and 7"

l_str.5:                                ; @str.5
	.asciz	"error opening wtapctl cdev"

.subsections_via_symbols
