	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_to
_connect_to:                            ## @connect_to
	.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	%r8, %rbx
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r13, %r8
	movq	%rbx, %r9
	callq	_connect_to_helper
	addq	$32, %rsp
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	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	%r12, %rdi
	movq	%r13, %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, %rbx
	movl	%r15d, (%rax)
	movq	%r14, %rdi
	callq	_xstrdup
	movl	%eax, 8(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_3
LBB0_1:
	leaq	-48(%rbp), %rdi
	callq	_channel_connect_ctx_free
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_connect_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_to
_connect_to:                            ; @connect_to
	.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	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	add	x0, sp, #24
	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	xzr, [sp]
	add	x6, sp, #24
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x4, x21
	mov	x5, x23
	mov	x7, #0
	bl	_connect_to_helper
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	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]
	mov	x0, x19
	bl	_xstrdup
	ldr	w8, [sp, #24]
	stp	w8, w0, [x21, #4]
	b	LBB0_3
LBB0_2:
	add	x0, sp, #24
	bl	_channel_connect_ctx_free
	mov	x21, #0
LBB0_3:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_connect_to
.subsections_via_symbols
