	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_read_line                  ## -- Begin function ssl_read_line
	.p2align	4, 0x90
_ssl_read_line:                         ## @ssl_read_line
	.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
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r15
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.2:
	movq	%rdi, %r12
	movq	_EINTR@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	$0, 8(%r12)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	8(%r12), %rdi
	leaq	(%r15,%r13), %rbx
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_SSL_read
	testl	%eax, %eax
	jle	LBB0_16
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$10, (%r15,%r13)
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r13
	jne	LBB0_3
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r13), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testq	%rax, %rax
	jg	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	(%r14), %rdi
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.12:
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_19
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_14:
	movb	$0, -1(%rdx,%r15)
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%edx, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_19
LBB0_15:
	movb	$0, (%r15,%r13)
	jmp	LBB0_18
LBB0_16:
	movq	8(%r12), %rdi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_ZERO_RETURN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_17:
	movb	$0, (%rbx)
LBB0_18:
	movl	$1, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_log_crypto_err
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.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,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_EAGAIN,8,3                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"could not recv: %s"

L_.str.2:                               ## @.str.2
	.asciz	"control line too long (%d): %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_read_line                  ; -- Begin function ssl_read_line
	.p2align	2
_ssl_read_line:                         ; @ssl_read_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	cbz	x2, LBB0_12
; %bb.2:
	mov	x21, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EINTR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_ERR_clear_error
	ldr	x0, [x21, #8]
	add	x22, x20, x23
	mov	x1, x22
	mov	w2, #1
	bl	_SSL_read
	cmp	w0, #0
	b.le	LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x20, x23]
	cmp	w8, #10
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, x19
	b.ne	LBB0_3
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x20, x23
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	mov	x1, x22
	mov	w2, #1
	mov	w3, #0
	bl	_recv
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	x0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x24]
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_8
; %bb.11:
	bl	_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
	add	x8, x19, x20
	sturb	wzr, [x8, #-1]
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
LBB0_13:
	bl	_log_err
LBB0_14:
	mov	w0, #0
	b	LBB0_19
LBB0_15:
	strb	wzr, [x20, x23]
	b	LBB0_18
LBB0_16:
	mov	x1, x0
	ldr	x0, [x21, #8]
	bl	_SSL_get_error
Lloh10:
	adrp	x8, _SSL_ERROR_ZERO_RETURN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_ERROR_ZERO_RETURN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
LBB0_17:
	strb	wzr, [x22]
LBB0_18:
	mov	w0, #1
LBB0_19:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_crypto_err
	b	LBB0_14
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.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,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_EAGAIN,8,3                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"could not recv: %s"

l_.str.2:                               ; @.str.2
	.asciz	"control line too long (%d): %s"

.subsections_via_symbols
