	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_read
_remote_read:                           ## @remote_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ERR_clear_error
	decl	%ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_SSL_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_ZERO_RETURN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_ssl_err
LBB0_4:
	movslq	%ebx, %rax
	jmp	LBB0_6
LBB0_5:
	decq	%rbx
	xorl	%r15d, %r15d
	movl	%esi, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movb	$0, (%r14,%rax)
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ## @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not SSL_read"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_remote_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_read
_remote_read:                           ; @remote_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x19, x2
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_ERR_clear_error
	sub	w2, w20, #1
	mov	x0, x21
	mov	x1, x19
	bl	_SSL_read
	mov	x20, x0
	cmp	w0, #0
	b.gt	LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_SSL_get_error
Lloh0:
	adrp	x8, _SSL_ERROR_ZERO_RETURN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_ERROR_ZERO_RETURN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	sub	x2, x20, #1
	mov	x0, x1
	mov	x1, x19
	mov	w3, #0
	bl	_recv
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ssl_err
LBB0_6:
	sxtw	x0, w20
LBB0_7:
	strb	wzr, [x19, x0]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ; @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not SSL_read"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_remote_read
.subsections_via_symbols
