	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdynamic_connect_finish
_rdynamic_connect_finish:               ## @rdynamic_connect_finish
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_connect_to_helper
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	_SSH_CHANNEL_RDYNAMIC_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	-32(%rbp), %eax
	movl	%eax, (%r15)
	movl	$0, 8(%rsp)
	movl	$1, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_channel_register_fds
	jmp	LBB0_3
LBB0_1:
	leaq	-32(%rbp), %rdi
	callq	_channel_connect_ctx_free
LBB0_3:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SSH_CHANNEL_RDYNAMIC_FINISH,4,2 ## @SSH_CHANNEL_RDYNAMIC_FINISH
	.no_dead_strip	_rdynamic_connect_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdynamic_connect_finish
_rdynamic_connect_finish:               ; @rdynamic_connect_finish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	w2, w1, [x19, #8]
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	str	xzr, [sp]
	add	x6, sp, #8
	mov	x0, x20
	mov	x4, #0
	mov	x5, #0
	mov	x7, #0
	bl	_connect_to_helper
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SSH_CHANNEL_RDYNAMIC_FINISH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_CHANNEL_RDYNAMIC_FINISH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	stp	w9, w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x21
	mov	w4, #-1
	mov	w5, #0
	mov	w6, #1
	mov	w7, #0
	bl	_channel_register_fds
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	bl	_channel_connect_ctx_free
LBB0_3:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SSH_CHANNEL_RDYNAMIC_FINISH,4,2 ; @SSH_CHANNEL_RDYNAMIC_FINISH
	.no_dead_strip	_rdynamic_connect_finish
.subsections_via_symbols
