	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ssl_line
_read_ssl_line:                         ## @read_ssl_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	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	movq	%rsi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movb	$1, %r15b
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_SSL_read
	testl	%eax, %eax
	jle	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movzbl	(%r14,%r13), %eax
	testb	$1, %r15b
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r15d, %r15d
	cmpb	$13, %al
	je	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, %al
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13), %rbx
	incq	%rbx
	incq	%r13
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r13
	jne	LBB0_2
LBB0_7:
	movq	_verb@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.8:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	jmp	LBB0_17
LBB0_4:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_ZERO_RETURN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.5:
	movq	_verb@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.6:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	jmp	LBB0_17
LBB0_10:
	cmpb	$10, %al
	jne	LBB0_11
LBB0_16:
	movb	$0, (%r14,%r13)
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_verb@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,8,3                       ## @verb
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ## @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"error: stray linefeeds"

L_str.3:                                ## @str.3
	.asciz	"could not SSL_read"

L_str.4:                                ## @str.4
	.asciz	"line too long"

	.no_dead_strip	_read_ssl_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ssl_line
_read_ssl_line:                         ; @read_ssl_line
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x2, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	mov	x22, x1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	w24, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	bl	_SSL_read
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldrb	w8, [x19, x23]
	tbz	w24, #0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w24, #0
	cmp	w8, #13
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #10
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	add	x22, x19, x23
	cmp	x23, x21
	b.ne	LBB0_2
LBB0_8:
Lloh0:
	adrp	x8, _verb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.9:
Lloh3:
	adrp	x0, l_str.4@PAGE
Lloh4:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_17
LBB0_10:
	mov	x1, x0
	mov	x0, x20
	bl	_SSL_get_error
Lloh5:
	adrp	x8, _SSL_ERROR_ZERO_RETURN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_ERROR_ZERO_RETURN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.11:
Lloh8:
	adrp	x8, _verb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.12:
Lloh11:
	adrp	x0, l_str.3@PAGE
Lloh12:
	add	x0, x0, l_str.3@PAGEOFF
	b	LBB0_17
LBB0_13:
	cmp	w8, #10
	b.ne	LBB0_15
LBB0_14:
	strb	wzr, [x19, x23]
	mov	w0, #1
	b	LBB0_19
LBB0_15:
Lloh13:
	adrp	x8, _verb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.16:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
LBB0_17:
	bl	_puts
LBB0_18:
	mov	w0, #0
LBB0_19:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,8,3                       ; @verb
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ; @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"error: stray linefeeds"

l_str.3:                                ; @str.3
	.asciz	"could not SSL_read"

l_str.4:                                ; @str.4
	.asciz	"line too long"

	.no_dead_strip	_read_ssl_line
.subsections_via_symbols
