	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_handshake_later
_remote_handshake_later:                ## @remote_handshake_later
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_rc_hs_read@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_9
## %bb.2:
	movq	%rax, (%rbx)
	movq	%rdx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_comm_point_listen_for_rw
	jmp	LBB0_9
LBB0_3:
	movq	_SSL_ERROR_WANT_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_rc_hs_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_9
## %bb.5:
	movq	%rax, (%rbx)
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_comm_point_listen_for_rw
	jmp	LBB0_9
LBB0_6:
	movq	%rdi, %r14
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
LBB0_8:
	movq	8(%rbx), %rdx
	movl	(%rdx), %ecx
	addq	$4, %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_addr
	leaq	L_.str.2(%rip), %rdi
	callq	_log_crypto_err
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_clean_point
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
	.comm	_rc_hs_read,8,3                 ## @rc_hs_read
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ## @SSL_ERROR_WANT_WRITE
	.comm	_rc_hs_write,8,3                ## @rc_hs_write
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote control connection closed prematurely"

L_.str.1:                               ## @.str.1
	.asciz	"failed connection from"

L_.str.2:                               ## @.str.2
	.asciz	"remote control failed ssl"

	.no_dead_strip	_remote_handshake_later
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_handshake_later
_remote_handshake_later:                ; @remote_handshake_later
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19]
Lloh3:
	adrp	x8, _rc_hs_read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rc_hs_read@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.2:
	str	x8, [x19]
	mov	x0, x2
	mov	w1, #1
	mov	w2, #0
	bl	_comm_point_listen_for_rw
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _SSL_ERROR_WANT_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_ERROR_WANT_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x19]
Lloh9:
	adrp	x8, _rc_hs_write@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rc_hs_write@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.5:
	str	x8, [x19]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #1
	bl	_comm_point_listen_for_rw
	b	LBB0_9
LBB0_6:
	mov	x20, x0
	cbnz	w3, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
LBB0_8:
	ldr	x2, [x19, #8]
	ldr	w3, [x2], #4
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_addr
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_crypto_err
	mov	x0, x20
	mov	x1, x19
	bl	_clean_point
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
	.comm	_rc_hs_read,8,3                 ; @rc_hs_read
	.comm	_SSL_ERROR_WANT_WRITE,4,2       ; @SSL_ERROR_WANT_WRITE
	.comm	_rc_hs_write,8,3                ; @rc_hs_write
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote control connection closed prematurely"

l_.str.1:                               ; @.str.1
	.asciz	"failed connection from"

l_.str.2:                               ; @.str.2
	.asciz	"remote control failed ssl"

	.no_dead_strip	_remote_handshake_later
.subsections_via_symbols
