	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssh_init_forwarding
_ssh_init_forwarding:                   ## @ssh_init_forwarding
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_options@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rax,%r15), %edx
	movl	16(%rax,%r15), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	48(%r14), %rsi
	addq	%r15, %rsi
	leaq	40(%r14), %rdx
	movq	%r12, %rdi
	callq	_channel_setup_local_fwd_listener
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r14), %rax
	addq	$48, %r15
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rax
	movq	(%rax,%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 40(%r14)
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rax,%r15), %rcx
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rax,%r15), %rcx
	jmp	LBB0_7
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.9:
	cmpl	%r13d, %ebx
	je	LBB0_12
## %bb.10:
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	_fatal
LBB0_12:
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	callq	_error
LBB0_14:
	cmpl	$0, 4(%r14)
	jle	LBB0_26
## %bb.15:
	xorl	%r13d, %r13d
	leaq	L_.str.4(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	%r13, %rsi
	movq	_ssh_confirm_remote_forward@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_client_register_global_confirm
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	4(%r14), %rax
	addq	$56, %r13
	cmpq	%rax, %rbx
	jge	LBB0_26
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movq	(%rax,%r13), %rsi
	testq	%rsi, %rsi
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rax,%r13), %rsi
	testq	%rsi, %rsi
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rcx, %rsi
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	40(%rax,%r13), %rcx
	testq	%rcx, %rcx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	32(%rax,%r13), %rcx
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	48(%rax,%r13), %edx
	movl	24(%rax,%r13), %r8d
	movq	%r15, %rdi
	callq	_debug
	movq	32(%r14), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_channel_request_remote_forwarding
	movq	32(%r14), %rsi
	movq	%rax, 16(%rsi,%r13)
	testq	%rax, %rax
	jns	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	$0, 16(%r14)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	_fatal
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.6(%rip), %rdi
	callq	_logit
	jmp	LBB0_25
LBB0_26:
	movq	8(%r14), %rsi
	movq	_SSH_TUNMODE_NO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_30
## %bb.27:
	movl	24(%r14), %ecx
	movl	28(%r14), %edx
	movq	%r12, %rdi
	callq	_client_request_tun_fwd
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_28
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	cmpq	$0, 16(%r14)
	je	LBB0_29
## %bb.31:
	leaq	L_.str.7(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
LBB0_29:
	leaq	L_.str.7(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_options,56,3                   ## @options
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Local connections to %.200s:%d forwarded to remote address %.200s:%d"

L_.str.1:                               ## @.str.1
	.asciz	"*"

L_.str.2:                               ## @.str.2
	.asciz	"LOCALHOST"

L_.str.3:                               ## @.str.3
	.asciz	"Could not request local forwarding."

L_.str.4:                               ## @.str.4
	.asciz	"Remote connections from %.200s:%d forwarded to local address %.200s:%d"

L_.str.5:                               ## @.str.5
	.asciz	"Could not request remote forwarding."

L_.str.6:                               ## @.str.6
	.asciz	"Warning: Could not request remote forwarding."

	.comm	_ssh_confirm_remote_forward,4,2 ## @ssh_confirm_remote_forward
	.comm	_SSH_TUNMODE_NO,8,3             ## @SSH_TUNMODE_NO
L_.str.7:                               ## @.str.7
	.asciz	"Could not request tunnel forwarding."

	.no_dead_strip	_ssh_init_forwarding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssh_init_forwarding
_ssh_init_forwarding:                   ; @ssh_init_forwarding
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _options@GOTPAGE
Lloh1:
	ldr	x24, [x24, _options@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x26, #0
	mov	x23, #0
	mov	w22, #0
Lloh4:
	adrp	x27, l_.str.1@PAGE
Lloh5:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x8, #40]
	ldr	w4, [x8, #16]
	mov	x0, x21
	bl	_debug
	ldr	x8, [x24, #48]
	add	x1, x8, x26
	add	x2, x24, #40
	mov	x0, x20
	bl	_channel_setup_local_fwd_listener
	add	w22, w22, w0
	add	x23, x23, #1
	ldrsw	x8, [x24]
	add	x26, x26, #48
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #48]
	ldr	x1, [x8, x26]
	cbnz	x1, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x26
	ldr	x1, [x9, #8]
	cbnz	x1, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24, #40]
	cmp	x9, #0
	csel	x1, x25, x27, eq
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	ldr	x3, [x8, #32]
	cbnz	x3, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x3, [x8, #24]
	b	LBB0_2
LBB0_8:
	cbz	w23, LBB0_13
; %bb.9:
	ldr	x8, [x24, #16]
	cmp	w23, w22
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_11
; %bb.10:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
LBB0_11:
	cbnz	w22, LBB0_13
; %bb.12:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_13:
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.14:
	mov	x26, #0
	mov	x27, #0
Lloh12:
	adrp	x21, l_.str.4@PAGE
Lloh13:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh14:
	adrp	x22, l_.str.6@PAGE
Lloh15:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh16:
	adrp	x28, _ssh_confirm_remote_forward@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ssh_confirm_remote_forward@GOTPAGEOFF]
Lloh18:
	adrp	x23, l_.str.5@PAGE
Lloh19:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x28]
	bl	_client_register_global_confirm
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x24, #4]
	add	x26, x26, #56
	cmp	x27, x8
	b.ge	LBB0_25
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #32]
	ldr	x1, [x8, x26]
	cbnz	x1, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x9, x8, x26
	ldr	x9, [x9, #8]
	cmp	x9, #0
	csel	x1, x25, x9, eq
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x8, x8, x26
	ldr	x3, [x8, #40]
	cbnz	x3, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x3, [x8, #32]
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w2, [x8, #48]
	ldr	w4, [x8, #24]
	mov	x0, x21
	bl	_debug
	ldr	x8, [x24, #32]
	add	x1, x8, x26
	mov	x0, x20
	bl	_channel_request_remote_forwarding
	ldr	x8, [x24, #32]
	add	x1, x8, x26
	str	x0, [x1, #16]
	tbz	x0, #63, LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x23
	bl	_fatal
	b	LBB0_16
LBB0_24:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	bl	_logit
	b	LBB0_16
LBB0_25:
	ldr	x1, [x24, #8]
Lloh20:
	adrp	x8, _SSH_TUNMODE_NO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSH_TUNMODE_NO@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_27
; %bb.26:
	ldp	w3, w2, [x24, #24]
	mov	x0, x20
	bl	_client_request_tun_fwd
	str	x0, [x19]
	cbz	x0, LBB0_28
LBB0_27:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_30
; %bb.29:
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_fatal
LBB0_30:
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_error
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_options,56,3                   ; @options
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Local connections to %.200s:%d forwarded to remote address %.200s:%d"

l_.str.1:                               ; @.str.1
	.asciz	"*"

l_.str.2:                               ; @.str.2
	.asciz	"LOCALHOST"

l_.str.3:                               ; @.str.3
	.asciz	"Could not request local forwarding."

l_.str.4:                               ; @.str.4
	.asciz	"Remote connections from %.200s:%d forwarded to local address %.200s:%d"

l_.str.5:                               ; @.str.5
	.asciz	"Could not request remote forwarding."

l_.str.6:                               ; @.str.6
	.asciz	"Warning: Could not request remote forwarding."

	.comm	_ssh_confirm_remote_forward,4,2 ; @ssh_confirm_remote_forward
	.comm	_SSH_TUNMODE_NO,8,3             ; @SSH_TUNMODE_NO
l_.str.7:                               ; @.str.7
	.asciz	"Could not request tunnel forwarding."

	.no_dead_strip	_ssh_init_forwarding
.subsections_via_symbols
