	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_request_tun_fwd         ## -- Begin function client_request_tun_fwd
	.p2align	4, 0x90
_client_request_tun_fwd:                ## @client_request_tun_fwd
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	movq	_SSH_TUNMODE_NO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_5
## %bb.2:
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_debug
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_tun_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	-40(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movq	_SSH_CHANNEL_OPENING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CHAN_TCP_WINDOW_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_CHAN_TCP_PACKET_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movl	%ebx, %r8d
	movl	$-1, %r9d
	pushq	$1
	pushq	%rsi
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_channel_new
	addq	$48, %rsp
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	_SSH2_MSG_CHANNEL_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_packet_start
	leaq	L_.str.4(%rip), %rdi
	callq	_packet_put_cstring
	movl	4(%rbx), %edi
	callq	_packet_put_int
	movl	8(%rbx), %edi
	callq	_packet_put_int
	movl	12(%rbx), %edi
	callq	_packet_put_int
	movl	%r12d, %edi
	callq	_packet_put_int
	movl	%r14d, %edi
	callq	_packet_put_int
	xorl	%eax, %eax
	callq	_packet_send
	movq	-40(%rbp), %rax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_TUNMODE_NO,4,2             ## @SSH_TUNMODE_NO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requesting tun unit %d in mode %d"

L_.str.1:                               ## @.str.1
	.asciz	"Tunnel device open failed."

L_.str.2:                               ## @.str.2
	.asciz	"Tunnel forwarding using interface %s"

L_.str.3:                               ## @.str.3
	.asciz	"tun"

	.comm	_SSH_CHANNEL_OPENING,4,2        ## @SSH_CHANNEL_OPENING
	.comm	_CHAN_TCP_WINDOW_DEFAULT,4,2    ## @CHAN_TCP_WINDOW_DEFAULT
	.comm	_CHAN_TCP_PACKET_DEFAULT,4,2    ## @CHAN_TCP_PACKET_DEFAULT
	.comm	_SSH2_MSG_CHANNEL_OPEN,4,2      ## @SSH2_MSG_CHANNEL_OPEN
L_.str.4:                               ## @.str.4
	.asciz	"tun@openssh.com"

	.comm	_SSH_TUNMODE_POINTOPOINT,8,3    ## @SSH_TUNMODE_POINTOPOINT
	.comm	_options,8,3                    ## @options
	.comm	_sys_tun_infilter,4,2           ## @sys_tun_infilter
	.comm	_sys_tun_outfilter,4,2          ## @sys_tun_outfilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_request_tun_fwd         ; -- Begin function client_request_tun_fwd
	.p2align	2
_client_request_tun_fwd:                ; @client_request_tun_fwd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	mov	x0, #0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _SSH_TUNMODE_NO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_TUNMODE_NO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	stp	x22, x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x20
	bl	_tun_open
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug
Lloh7:
	adrp	x8, _SSH_CHANNEL_OPENING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_CHANNEL_OPENING@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _CHAN_TCP_WINDOW_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHAN_TCP_WINDOW_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w6, [x8]
Lloh13:
	adrp	x8, _CHAN_TCP_PACKET_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CHAN_TCP_PACKET_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w7, [x8]
	mov	w23, #1
	str	w23, [sp, #16]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	str	x1, [sp, #8]
	str	wzr, [sp]
	mov	x0, x21
	mov	x3, x22
	mov	x4, x22
	mov	w5, #-1
	bl	_channel_new
	mov	x21, x0
	str	w23, [x0]
Lloh18:
	adrp	x8, _SSH2_MSG_CHANNEL_OPEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSH2_MSG_CHANNEL_OPEN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_packet_start
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_packet_put_cstring
	ldr	w0, [x21, #4]
	bl	_packet_put_int
	ldr	w0, [x21, #8]
	bl	_packet_put_int
	ldr	w0, [x21, #12]
	bl	_packet_put_int
	mov	x0, x20
	bl	_packet_put_int
	mov	x0, x19
	bl	_packet_put_int
	bl	_packet_send
	ldr	x0, [sp, #24]
	b	LBB0_4
LBB0_3:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_TUNMODE_NO,4,2             ; @SSH_TUNMODE_NO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requesting tun unit %d in mode %d"

l_.str.1:                               ; @.str.1
	.asciz	"Tunnel device open failed."

l_.str.2:                               ; @.str.2
	.asciz	"Tunnel forwarding using interface %s"

l_.str.3:                               ; @.str.3
	.asciz	"tun"

	.comm	_SSH_CHANNEL_OPENING,4,2        ; @SSH_CHANNEL_OPENING
	.comm	_CHAN_TCP_WINDOW_DEFAULT,4,2    ; @CHAN_TCP_WINDOW_DEFAULT
	.comm	_CHAN_TCP_PACKET_DEFAULT,4,2    ; @CHAN_TCP_PACKET_DEFAULT
	.comm	_SSH2_MSG_CHANNEL_OPEN,4,2      ; @SSH2_MSG_CHANNEL_OPEN
l_.str.4:                               ; @.str.4
	.asciz	"tun@openssh.com"

	.comm	_SSH_TUNMODE_POINTOPOINT,8,3    ; @SSH_TUNMODE_POINTOPOINT
	.comm	_options,8,3                    ; @options
	.comm	_sys_tun_infilter,4,2           ; @sys_tun_infilter
	.comm	_sys_tun_outfilter,4,2          ; @sys_tun_outfilter
.subsections_via_symbols
