	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tunkqfilter
_tunkqfilter:                           ## @tunkqfilter
	.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
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_TUN2IFP
	movq	%rax, %r15
	movl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	_tun_write_filterops@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_tun_read_filterops@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rax
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movq	%r12, %rdi
	callq	_dev2unit
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_TUNDEBUG
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	movq	%r14, 8(%r13)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_knlist_add
	jmp	LBB0_5
LBB0_6:
	movl	(%r15), %ebx
	movq	%r12, %rdi
	callq	_dev2unit
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_TUNDEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s kqfilter: EVFILT_READ, minor = %#x\n"

	.comm	_tun_read_filterops,4,2         ## @tun_read_filterops
L_.str.1:                               ## @.str.1
	.asciz	"%s kqfilter: EVFILT_WRITE, minor = %#x\n"

	.comm	_tun_write_filterops,4,2        ## @tun_write_filterops
L_.str.2:                               ## @.str.2
	.asciz	"%s kqfilter: invalid filter, minor = %#x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tunkqfilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tunkqfilter
_tunkqfilter:                           ; @tunkqfilter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_TUN2IFP
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x25, _tun_write_filterops@GOTPAGE
Lloh1:
	ldr	x25, [x25, _tun_write_filterops@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x25, _tun_read_filterops@GOTPAGE
Lloh5:
	ldr	x25, [x25, _tun_read_filterops@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
LBB0_4:
	ldr	w24, [x21]
	mov	x0, x22
	bl	_dev2unit
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_TUNDEBUG
	stp	x20, x25, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_knlist_add
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w19, [x21]
	mov	x0, x22
	bl	_dev2unit
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_TUNDEBUG
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s kqfilter: EVFILT_READ, minor = %#x\n"

	.comm	_tun_read_filterops,4,2         ; @tun_read_filterops
l_.str.1:                               ; @.str.1
	.asciz	"%s kqfilter: EVFILT_WRITE, minor = %#x\n"

	.comm	_tun_write_filterops,4,2        ; @tun_write_filterops
l_.str.2:                               ; @.str.2
	.asciz	"%s kqfilter: invalid filter, minor = %#x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tunkqfilter
.subsections_via_symbols
