	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_incoming_tun              ## -- Begin function read_incoming_tun
	.p2align	4, 0x90
_read_incoming_tun:                     ## @read_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	%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	%rdi, %rbx
	movq	_PERF_READ_IN_TUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_perf_push
	leaq	8(%rbx), %r14
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_FRAME_HEADROOM
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_buf_init
	movl	%eax, %edi
	callq	_ASSERT
	movq	%r15, %rdi
	callq	_MAX_RW_SIZE_TUN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_buf_safe
	movl	%eax, %edi
	callq	_ASSERT
	movl	(%rbx), %r12d
	movq	%r14, %rdi
	callq	_BPTR
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_MAX_RW_SIZE_TUN
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_read_tun
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_tuntap_stop
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_register_signal
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_msg
	jmp	LBB0_5
LBB0_2:
	movl	(%r14), %edi
	callq	_tuntap_abort
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_register_signal
	movl	$10, 32(%rbx)
	movq	_M_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_msg
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %ecx
	movl	8(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_check_status
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perf_pop                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_READ_IN_TUN,4,2           ## @PERF_READ_IN_TUN
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tun-stop"

	.comm	_M_INFO,4,2                     ## @M_INFO
L_.str.1:                               ## @.str.1
	.asciz	"TUN/TAP interface has been stopped, exiting"

	.comm	_SIGHUP,4,2                     ## @SIGHUP
L_.str.2:                               ## @.str.2
	.asciz	"tun-abort"

L_.str.3:                               ## @.str.3
	.asciz	"TUN/TAP I/O operation aborted, restarting"

L_.str.4:                               ## @.str.4
	.asciz	"read from TUN/TAP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_incoming_tun              ; -- Begin function read_incoming_tun
	.p2align	2
_read_incoming_tun:                     ; @read_incoming_tun
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _PERF_READ_IN_TUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_READ_IN_TUN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_perf_push
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	mov	x20, x19
	str	w8, [x20, #8]!
	add	x21, x19, #16
	mov	x0, x21
	bl	_FRAME_HEADROOM
	mov	x1, x0
	mov	x0, x20
	bl	_buf_init
	bl	_ASSERT
	mov	x0, x21
	bl	_MAX_RW_SIZE_TUN
	mov	x1, x0
	mov	x0, x20
	bl	_buf_safe
	bl	_ASSERT
	ldr	w22, [x19]
	mov	x0, x20
	bl	_BPTR
	mov	x23, x0
	mov	x0, x21
	bl	_MAX_RW_SIZE_TUN
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_read_tun
	str	w0, [x20]
	bl	_tuntap_stop
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_register_signal
Lloh8:
	adrp	x8, _M_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	b	LBB0_5
LBB0_2:
	ldr	w0, [x20]
	bl	_tuntap_abort
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_register_signal
	mov	w8, #10
	str	w8, [x19, #32]
Lloh18:
	adrp	x8, _M_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_msg
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
	ldr	w3, [x19]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, #0
	bl	_check_status
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_perf_pop
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_READ_IN_TUN,4,2           ; @PERF_READ_IN_TUN
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tun-stop"

	.comm	_M_INFO,4,2                     ; @M_INFO
l_.str.1:                               ; @.str.1
	.asciz	"TUN/TAP interface has been stopped, exiting"

	.comm	_SIGHUP,4,2                     ; @SIGHUP
l_.str.2:                               ; @.str.2
	.asciz	"tun-abort"

l_.str.3:                               ; @.str.3
	.asciz	"TUN/TAP I/O operation aborted, restarting"

l_.str.4:                               ; @.str.4
	.asciz	"read from TUN/TAP"

.subsections_via_symbols
