	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_incoming_tun           ## -- Begin function process_incoming_tun
	.p2align	4, 0x90
_process_incoming_tun:                  ## @process_incoming_tun
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -32(%rbp)
	movq	_PERF_PROC_IN_TUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_perf_push
	leaq	8(%rbx), %r14
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	addl	%eax, 32(%rbx)
LBB0_2:
	movq	_D_TUN_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_BLEN
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dmsg
	cmpq	$0, (%r14)
	jle	LBB0_8
## %bb.3:
	movq	48(%rbx), %rax
	movq	_MODE_POINT_TO_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 56(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drop_if_recursive_routing
LBB0_6:
	movq	_PIPV4_PASSTOS@GOTPCREL(%rip), %rax
	movq	_PIP_MSSFIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PIPV4_CLIENT_NAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PIPV6_IMCP_NOHOST_CLIENT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_process_ip_header
	cmpq	$0, 8(%rbx)
	jle	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_encrypt_sign
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_buf_reset
LBB0_9:
	xorl	%eax, %eax
	callq	_perf_pop
	leaq	-32(%rbp), %rdi
	callq	_gc_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_PROC_IN_TUN,4,2           ## @PERF_PROC_IN_TUN
	.comm	_D_TUN_RW,4,2                   ## @D_TUN_RW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TUN READ [%d]"

	.comm	_MODE_POINT_TO_POINT,8,3        ## @MODE_POINT_TO_POINT
	.comm	_PIPV4_PASSTOS,4,2              ## @PIPV4_PASSTOS
	.comm	_PIP_MSSFIX,4,2                 ## @PIP_MSSFIX
	.comm	_PIPV4_CLIENT_NAT,4,2           ## @PIPV4_CLIENT_NAT
	.comm	_PIPV6_IMCP_NOHOST_CLIENT,4,2   ## @PIPV6_IMCP_NOHOST_CLIENT
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_incoming_tun           ; -- Begin function process_incoming_tun
	.p2align	2
_process_incoming_tun:                  ; @process_incoming_tun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_gc_new
	str	w0, [sp, #8]
Lloh0:
	adrp	x8, _PERF_PROC_IN_TUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_PROC_IN_TUN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_perf_push
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w9, [x19, #32]
	add	w8, w9, w8
	str	w8, [x19, #32]
LBB0_2:
Lloh3:
	adrp	x8, _D_TUN_RW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_TUN_RW@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_BLEN
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dmsg
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.3:
	ldr	x8, [x19, #48]
Lloh8:
	adrp	x9, _MODE_POINT_TO_POINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MODE_POINT_TO_POINT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_drop_if_recursive_routing
LBB0_6:
Lloh11:
	adrp	x8, _PIPV4_PASSTOS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PIPV4_PASSTOS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PIP_MSSFIX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIP_MSSFIX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _PIPV4_CLIENT_NAT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PIPV4_CLIENT_NAT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _PIPV6_IMCP_NOHOST_CLIENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PIPV6_IMCP_NOHOST_CLIENT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	x2, x20
	bl	_process_ip_header
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	bl	_encrypt_sign
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_buf_reset
LBB0_9:
	bl	_perf_pop
	add	x0, sp, #8
	bl	_gc_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_PROC_IN_TUN,4,2           ; @PERF_PROC_IN_TUN
	.comm	_D_TUN_RW,4,2                   ; @D_TUN_RW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TUN READ [%d]"

	.comm	_MODE_POINT_TO_POINT,8,3        ; @MODE_POINT_TO_POINT
	.comm	_PIPV4_PASSTOS,4,2              ; @PIPV4_PASSTOS
	.comm	_PIP_MSSFIX,4,2                 ; @PIP_MSSFIX
	.comm	_PIPV4_CLIENT_NAT,4,2           ; @PIPV4_CLIENT_NAT
	.comm	_PIPV6_IMCP_NOHOST_CLIENT,4,2   ; @PIPV6_IMCP_NOHOST_CLIENT
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
