	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_connect_to_port        ## -- Begin function channel_connect_to_port
	.p2align	4, 0x90
_channel_connect_to_port:               ## @channel_connect_to_port
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
LBB0_1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_open_match
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$4, %r15
	cmpq	16(%r14), %r13
	jb	LBB0_3
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subq	$8, %rsp
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	pushq	16(%rbp)
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_connect_to_helper
	addq	$32, %rsp
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.7:
	movq	_SSH_CHANNEL_CONNECTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CHAN_TCP_WINDOW_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_CHAN_TCP_PACKET_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	movl	%eax, %r8d
	movl	$-1, %r9d
	pushq	$1
	pushq	%rbx
	pushq	$0
	pushq	%r11
	pushq	%r10
	callq	_channel_new
	addq	$48, %rsp
	movq	%rax, %r15
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r15)
	movq	%r12, %rdi
	callq	_xstrdup
	movl	%eax, 4(%r15)
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_18
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_logit
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.9:
	movq	_SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_10:
	cmpq	$0, 8(%r14)
	je	LBB0_19
## %bb.11:
	movl	%ebx, %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	addq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_open_match
	testq	%rax, %rax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	addq	$4, %r15
	cmpq	8(%r14), %rbx
	jb	LBB0_12
## %bb.14:
	movl	%r13d, %ebx
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_channel_connect_ctx_free
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_20:
	movl	$1, %eax
	movl	%r13d, %ebx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received request to connect to host %.100s port %d, but the request was denied."

	.comm	_SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED,4,2 ## @SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SSH_CHANNEL_CONNECTING,4,2     ## @SSH_CHANNEL_CONNECTING
	.comm	_CHAN_TCP_WINDOW_DEFAULT,4,2    ## @CHAN_TCP_WINDOW_DEFAULT
	.comm	_CHAN_TCP_PACKET_DEFAULT,4,2    ## @CHAN_TCP_PACKET_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_connect_to_port        ; -- Begin function channel_connect_to_port
	.p2align	2
_channel_connect_to_port:               ; @channel_connect_to_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x6
	mov	x24, x5
	mov	x23, x4
	str	x3, [sp, #32]                   ; 8-byte Folded Spill
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x26, [x0]
	ldr	x27, [x26]
	cbnz	x27, LBB0_6
; %bb.1:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x28, #0
	mov	x21, #0
	mov	w27, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #32]
	add	x0, x8, x28
	mov	x1, x19
	mov	x2, x20
	bl	_open_match
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [x26, #8]
	add	x28, x28, #4
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_5:
	mov	x27, #0
LBB0_6:
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x21, #0
	mov	x28, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #24]
	add	x0, x8, x21
	mov	x1, x19
	mov	x2, x20
	bl	_open_match
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	ldr	x8, [x26, #16]
	add	x21, x21, #4
	cmp	x28, x8
	b.lo	LBB0_8
	b	LBB0_13
LBB0_10:
	cbz	x27, LBB0_13
; %bb.11:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	str	x25, [sp]
	add	x6, sp, #40
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	mov	x4, x21
	mov	x5, x23
	mov	x7, x24
	bl	_connect_to_helper
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.12:
	mov	x3, x0
Lloh3:
	adrp	x8, _SSH_CHANNEL_CONNECTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_CHANNEL_CONNECTING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _CHAN_TCP_WINDOW_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAN_TCP_WINDOW_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
Lloh9:
	adrp	x8, _CHAN_TCP_PACKET_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHAN_TCP_PACKET_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
	mov	w8, #1
	str	w8, [sp, #16]
	str	x23, [sp, #8]
	str	wzr, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x4, x3
	mov	w5, #-1
	bl	_channel_new
	mov	x21, x0
	str	w20, [x0, #8]
	mov	x0, x19
	bl	_xstrdup
	ldr	w8, [sp, #40]
	stp	w8, w0, [x21]
	b	LBB0_16
LBB0_13:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_logit
	mov	x21, #0
	cbz	x24, LBB0_16
; %bb.14:
Lloh14:
	adrp	x8, _SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x24]
	b	LBB0_16
LBB0_15:
	add	x0, sp, #40
	bl	_channel_connect_ctx_free
	mov	x21, #0
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received request to connect to host %.100s port %d, but the request was denied."

	.comm	_SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED,4,2 ; @SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SSH_CHANNEL_CONNECTING,4,2     ; @SSH_CHANNEL_CONNECTING
	.comm	_CHAN_TCP_WINDOW_DEFAULT,4,2    ; @CHAN_TCP_WINDOW_DEFAULT
	.comm	_CHAN_TCP_PACKET_DEFAULT,4,2    ; @CHAN_TCP_PACKET_DEFAULT
.subsections_via_symbols
