	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_data_chunk
_read_data_chunk:                       ## @read_data_chunk
	.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
	movq	%rsi, %rax
	shrq	$4, %rax
	cmpq	$268435454, %rax                ## imm = 0xFFFFFFE
	jbe	LBB0_2
LBB0_22:
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_2:
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	1(%rsi), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %eax
	addq	%rax, %rbx
	cmpq	%r13, %rbx
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbx), %rsi
	movl	%r13d, %edx
	subl	%ebx, %edx
	movq	%r15, %rdi
	callq	_SSL_read
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_verb@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_5
LBB0_9:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_11:
	movb	$0, (%r14,%r13)
LBB0_23:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.13:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_22
LBB0_14:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_ZERO_RETURN@GOTPCREL(%rip), %rdx
	movq	_verb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_18
## %bb.15:
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.16:
	leaq	L_str.6(%rip), %rdi
	jmp	LBB0_20
LBB0_18:
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.19:
	leaq	L_str.5(%rip), %rdi
LBB0_20:
	callq	_puts
LBB0_21:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,4,2                       ## @verb
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ## @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"at %d/%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"read %d data\n"

L_str:                                  ## @str
	.asciz	"out of memory"

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

L_str.6:                                ## @str.6
	.asciz	"could not SSL_read: unexpected EOF"

	.no_dead_strip	_read_data_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_data_chunk
_read_data_chunk:                       ; @read_data_chunk
	.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
	mov	w8, #-17
	cmp	x1, x8
	b.ls	LBB0_2
LBB0_1:
	mov	x19, #0
	b	LBB0_12
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	add	x0, x1, #1
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x24, _verb@GOTPAGE
Lloh1:
	ldr	x24, [x24, _verb@GOTPAGEOFF]
	cbz	x20, LBB0_9
; %bb.4:
	mov	x25, #0
	mov	x26, x20
Lloh2:
	adrp	x22, l_.str.3@PAGE
Lloh3:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, w23, uxtw
	cmp	x25, x20
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, x25
	sub	w2, w20, w25
	mov	x0, x21
	bl	_SSL_read
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	w8, #1
	b.le	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	stp	x25, x26, [sp]
	mov	x0, x22
	bl	_printf
	b	LBB0_5
LBB0_9:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_11:
	strb	wzr, [x19, x20]
LBB0_12:
	mov	x0, x19
	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_13:
Lloh6:
	adrp	x8, _verb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_1
; %bb.14:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_1
LBB0_15:
	mov	x0, x21
	mov	x1, x23
	bl	_SSL_get_error
Lloh11:
	adrp	x8, _SSL_ERROR_ZERO_RETURN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_ERROR_ZERO_RETURN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x8]
	ldr	w8, [x24]
	cmp	x0, x9
	b.ne	LBB0_18
; %bb.16:
	cbz	w8, LBB0_21
; %bb.17:
Lloh14:
	adrp	x0, l_str.6@PAGE
Lloh15:
	add	x0, x0, l_str.6@PAGEOFF
	b	LBB0_20
LBB0_18:
	cbz	w8, LBB0_21
; %bb.19:
Lloh16:
	adrp	x0, l_str.5@PAGE
Lloh17:
	add	x0, x0, l_str.5@PAGEOFF
LBB0_20:
	bl	_puts
LBB0_21:
	mov	x0, x19
	bl	_free
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,4,2                       ; @verb
	.comm	_SSL_ERROR_ZERO_RETURN,8,3      ; @SSL_ERROR_ZERO_RETURN
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"at %d/%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"read %d data\n"

l_str:                                  ; @str
	.asciz	"out of memory"

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

l_str.6:                                ; @str.6
	.asciz	"could not SSL_read: unexpected EOF"

	.no_dead_strip	_read_data_chunk
.subsections_via_symbols
