	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tunoutput
_tunoutput:                             ## @tunoutput
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_TUNDEBUG
	movq	%rbx, %rdi
	callq	_TUN_LOCK
	movl	(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_TUN_UNLOCK
	movq	_TUN_READY@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_13
## %bb.1:
	movl	(%r12), %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.2:
	movq	(%r15), %rax
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	16(%r15), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	%rax, -48(%rbp)
	movl	16(%r12), %edi
	callq	_bpf_peers_present
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	16(%r12), %edi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	movq	%r14, %rcx
	callq	_bpf_mtap2
LBB0_6:
	movq	_TUN_LMODE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_9
## %bb.7:
	movl	8(%r15), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_M_PREPEND
	testq	%r14, %r14
	je	LBB0_17
## %bb.8:
	movq	(%r14), %rdi
	movl	8(%r15), %edx
	movq	%r15, %rsi
	callq	_memmove
LBB0_9:
	movq	_TUN_IFHEAD@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_19
## %bb.10:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_M_PREPEND
	testq	%r14, %r14
	je	LBB0_17
## %bb.11:
	movq	-48(%rbp), %rdi
	callq	_htonl
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*8(%r12)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_TUNDEBUG
LBB0_14:
	movq	%r14, %rdi
	callq	_m_freem
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_IFCOUNTER_IQDROPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
LBB0_18:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	movq	%r14, %rdi
	callq	_m_freem
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tunoutput\n"

	.comm	_TUN_READY,4,2                  ## @TUN_READY
L_.str.1:                               ## @.str.1
	.asciz	"not ready 0%o\n"

	.comm	_EHOSTDOWN,4,2                  ## @EHOSTDOWN
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_TUN_LMODE,4,2                  ## @TUN_LMODE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_IFCOUNTER_IQDROPS,4,2          ## @IFCOUNTER_IQDROPS
	.comm	_IFCOUNTER_OERRORS,4,2          ## @IFCOUNTER_OERRORS
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_TUN_IFHEAD,4,2                 ## @TUN_IFHEAD
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.comm	_AF_INET,8,3                    ## @AF_INET
	.no_dead_strip	_tunoutput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tunoutput
_tunoutput:                             ; @tunoutput
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_TUNDEBUG
	mov	x0, x22
	bl	_TUN_LOCK
	ldr	w23, [x22]
	mov	x0, x22
	bl	_TUN_UNLOCK
Lloh2:
	adrp	x8, _TUN_READY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TUN_READY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bics	wzr, w8, w23
	b.ne	LBB0_13
; %bb.1:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_14
; %bb.2:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
LBB0_4:
	str	x8, [sp, #8]
	ldr	w0, [x19, #16]
	bl	_bpf_peers_present
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	mov	w2, #8
	mov	x3, x20
	bl	_bpf_mtap2
LBB0_6:
Lloh11:
	adrp	x8, _TUN_LMODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TUN_LMODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x22, _M_NOWAIT@GOTPAGE
Lloh15:
	ldr	x22, [x22, _M_NOWAIT@GOTPAGEOFF]
	tst	w8, w23
	b.eq	LBB0_9
; %bb.7:
	ldr	w1, [x21, #8]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_M_PREPEND
	cbz	x20, LBB0_17
; %bb.8:
	ldr	x0, [x20]
	ldr	w2, [x21, #8]
	mov	x1, x21
	bl	_memmove
LBB0_9:
Lloh16:
	adrp	x8, _TUN_IFHEAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TUN_IFHEAD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_19
; %bb.10:
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #4
	bl	_M_PREPEND
	cbz	x20, LBB0_17
; %bb.11:
	ldr	x0, [sp, #8]
	bl	_htonl
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_18
; %bb.12:
Lloh19:
	adrp	x8, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_if_inc_counter
	mov	w0, #0
	b	LBB0_16
LBB0_13:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_TUNDEBUG
LBB0_14:
	mov	x0, x20
	bl	_m_freem
Lloh24:
	adrp	x8, _EHOSTDOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EHOSTDOWN@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	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_17:
Lloh26:
	adrp	x8, _IFCOUNTER_IQDROPS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IFCOUNTER_IQDROPS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_if_inc_counter
Lloh29:
	adrp	x8, _IFCOUNTER_OERRORS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IFCOUNTER_OERRORS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_if_inc_counter
LBB0_18:
Lloh32:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_15
LBB0_19:
	mov	x0, x20
	bl	_m_freem
Lloh34:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tunoutput\n"

	.comm	_TUN_READY,4,2                  ; @TUN_READY
l_.str.1:                               ; @.str.1
	.asciz	"not ready 0%o\n"

	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_TUN_LMODE,4,2                  ; @TUN_LMODE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_IFCOUNTER_IQDROPS,4,2          ; @IFCOUNTER_IQDROPS
	.comm	_IFCOUNTER_OERRORS,4,2          ; @IFCOUNTER_OERRORS
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_TUN_IFHEAD,4,2                 ; @TUN_IFHEAD
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.comm	_AF_INET,8,3                    ; @AF_INET
	.no_dead_strip	_tunoutput
.subsections_via_symbols
